001/*
002 * Copyright (c) 2009 The openGion Project.
003 *
004 * Licensed under the Apache License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 *     http://www.apache.org/licenses/LICENSE-2.0
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
013 * either express or implied. See the License for the specific language
014 * governing permissions and limitations under the License.
015 */
016package org.opengion.hayabusa.common;
017
018import java.util.Date;
019
020/**
021 * このシステム全体のリリース状況を表すデータを直接コーディングしています。
022 * バージョン番号は、X.X.X.X という管理体系をあらわしています。
023 * バージョン変更時には、WEB-INF/lib/hayabusaX.X.X.X.jar ファイルと、
024 * jsp/common フォルダ、jsp/menu フォルダ、jsp/image フォルダの変更が必要です。
025 * 以前、使用していました、WEB-INF/hybs-taglib.tld ファイルは、hayabusaX.X.X.X.jar に
026 * 組み込まれた為、導入する必要はなくなりました。
027 * ただし、影響度合いも考慮していますので、厳密に下記の通りの変更になるとは限りません
028 * ので、置換え時には、RELEASE-NOTES.txt をご確認の上、対応願います。
029 *
030 *<pre>
031 *        X.X.X
032 *        | | |_____ システム修正、変更、マイナーリリース
033 *        | |_______ システム新機能追加、DBなど外部環境の変更必要
034 *        |_________ システムアーキテクチャの変更(アプリケーションの修正必要)
035 *
036 * </pre>
037 *
038 * @og.rev 3.5.5.3 (2004/04/09) インターフェースを、クラスに変更します。
039 * @og.rev 4.0.0.0 (2004/12/31) 項目追加
040 *
041 * @version  0.9.0  2000/10/17
042 * @author   Kazuhiko Hasegawa
043 * @since    JDK1.1,
044 */
045public final class BuildNumber {
046
047        /**
048         * エンジンバージョン番号。
049         * このエンジンのバージョン番号を設定します。
050         * @og.paramLevel 9:自動設定
051         */
052        public static final String VERSION_NO = "5.9.20.0";
053
054        /**
055         * エンジンビルドタイプ。
056         * このエンジンのビルドタイプを設定します。
057         * @og.paramLevel 9:自動設定
058         */
059        public static final String BUILD_TYPE = "Release5 Builds (2017122)" ;
060
061        /**
062         * エンジンバージョンNo。
063         * このエンジンのバージョン番号 + ビルドタイプ を設定します。
064         * [例: 4.0.0.0 Release4 Builds (04273)]
065         * @og.paramLevel 9:自動設定
066         */
067        public static final String ENGINE_INFO = "openGion " + VERSION_NO + " " + BUILD_TYPE ;
068
069        /**
070         * エンジンビルド時刻。
071         * このエンジンのビルド時刻を設定します。
072         * @og.paramLevel 9:自動設定
073         */
074        public static final String TIMESTAMP = "2017/05/02 08:45:14" ;
075
076        /**
077         * 稼動しているサーバーのOS情報。
078         * いま、稼動しているサーバーのOS情報を設定します。
079         * [例: Windows 2000 Service Pack 4]
080         *
081         * @og.rev 5.6.7.3 (2013/08/23) os.arch と、sun.arch.data.model を追加します。
082         *
083         * @og.paramLevel 9:自動設定
084         */
085//      public static final String OS_INFO = System.getProperty( "os.name" ) + " " + System.getProperty( "sun.os.patch.level" ) ;
086        public static final String OS_INFO = System.getProperty( "os.name" )
087                                                                + " " +  System.getProperty( "sun.os.patch.level" )
088                                                                + " " +  System.getProperty( "os.arch" )
089                                                                + " (" +  System.getProperty( "sun.arch.data.model" ) + ")" ;
090
091        /**
092         * JDKバージョン。
093         * いま、稼動しているJavaのバージョン情報を設定します。
094         * [例: Java HotSpot(TM) Server VM 1.4.2_05-b04 ]
095         *
096         * @og.rev 5.6.7.3 (2013/08/23) java.vm.version を、java.runtime.version に変更します。
097         *
098         * @og.paramLevel 9:自動設定
099         */
100//      public static final String JDK_INFO = System.getProperty( "java.vm.name" ) + " " + System.getProperty( "java.vm.version" ) ;
101        public static final String JDK_INFO = System.getProperty( "java.vm.name" )
102                                                                + " " + System.getProperty( "java.runtime.version" ) ;
103
104        /**
105         * コンテキストの稼動開始時刻。
106         * このコンテキスト(システム)の稼動開始時刻(初めてロードされた時刻)を設定します。
107         * [例: 2004/09/29 17:52:31]
108         * @og.paramLevel 9:自動設定
109         */
110        public static final String STARTING_TIME = String.valueOf( new Date() ) ;
111
112        /**
113         * エンジンビルドID
114         * このエンジンのビルドIDを設定します。
115         * キャッシュコントロールを行う際のキー情報として使用します。
116         *
117         * @og.rev 4.3.5.3 (2008/02/22)
118         *
119         * @og.paramLevel 9:自動設定
120         */
121        public static final String BUILD_ID = "20170502084514" ;
122
123        /**
124         *      デフォルトコンストラクターをprivateにして、
125         *      オブジェクトの生成をさせないようにする。
126         *
127         * @og.rev 3.5.5.3 (2004/04/09) インターフェースを、クラスに変更します。
128         */
129        private BuildNumber() {}
130}