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 = "6.0.1.3";
053
054        /**
055         * エンジンビルドタイプ。
056         * このエンジンのビルドタイプを設定します。
057         * @og.paramLevel 9:自動設定
058         */
059        public static final String BUILD_TYPE = "Release6 Builds (2014246)" ;
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 = "2014/09/03 13:13:19" ;
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" )
086                                                                + " " +  System.getProperty( "sun.os.patch.level" )
087                                                                + " " +  System.getProperty( "os.arch" )
088                                                                + " (" +  System.getProperty( "sun.arch.data.model" ) + ")" ;
089
090        /**
091         * JDKバージョン。
092         * いま、稼動しているJavaのバージョン情報を設定します。
093         * [例: Java HotSpot(TM) Server VM 1.4.2_05-b04 ]
094         *
095         * @og.rev 5.6.7.3 (2013/08/23) java.vm.version を、java.runtime.version に変更します。
096         *
097         * @og.paramLevel 9:自動設定
098         */
099        public static final String JDK_INFO = System.getProperty( "java.vm.name" )
100                                                                + " " + System.getProperty( "java.runtime.version" ) ;
101
102        /**
103         * コンテキストの稼動開始時刻。
104         * このコンテキスト(システム)の稼動開始時刻(初めてロードされた時刻)を設定します。
105         * [例: 2004/09/29 17:52:31]
106         * @og.paramLevel 9:自動設定
107         */
108        public static final String STARTING_TIME = String.valueOf( new Date() ) ;
109
110        /**
111         * エンジンビルドID
112         * このエンジンのビルドIDを設定します。
113         * キャッシュコントロールを行う際のキー情報として使用します。
114         *
115         * @og.rev 4.3.5.3 (2008/02/22)
116         *
117         * @og.paramLevel 9:自動設定
118         */
119        public static final String BUILD_ID = "20140903131319" ;
120
121        /**
122         *      デフォルトコンストラクターをprivateにして、
123         *      オブジェクトの生成をさせないようにする。
124         *
125         * @og.rev 3.5.5.3 (2004/04/09) インターフェースを、クラスに変更します。
126         */
127        private BuildNumber() {}
128}