11 | 12 | 13 | -------------------------------------------------------------------------------- /src/main/java/jp/ossc/nimbus/util/sql/package.html: -------------------------------------------------------------------------------- 1 | 4 | 5 |
6 | 7 |11 | 12 | 13 | -------------------------------------------------------------------------------- /src/main/java/jp/ossc/nimbus/service/http/proxy/package.html: -------------------------------------------------------------------------------- 1 | 4 | 5 |
6 | 7 |11 | 12 | 13 | -------------------------------------------------------------------------------- /src/main/java/jp/ossc/nimbus/service/scheduler/package.html: -------------------------------------------------------------------------------- 1 | 4 | 5 |
6 | 7 |11 | 12 | 13 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled class file 2 | #*.class 3 | 4 | # Log file 5 | *.log 6 | 7 | # BlueJ files 8 | *.ctxt 9 | 10 | # Mobile Tools for Java (J2ME) 11 | .mtj.tmp/ 12 | 13 | # Package Files # 14 | #*.jar 15 | *.war 16 | *.ear 17 | *.zip 18 | *.tar.gz 19 | *.rar 20 | 21 | # virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml 22 | hs_err_pid* 23 | /target/ 24 | 25 | -------------------------------------------------------------------------------- /src/main/java/jp/ossc/nimbus/servlet/package.html: -------------------------------------------------------------------------------- 1 | 4 | 5 |
6 | 7 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/src/test/resources/jp/ossc/nimbus/core/resources/nimbus-service.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
11 | Javaの入出力ライブラリで、不足している機能をサポートします。
12 |
13 |
14 |
--------------------------------------------------------------------------------
/src/test/resources/jp/ossc/nimbus/core/resources/nimbus-service1.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
11 | 12 | 13 | -------------------------------------------------------------------------------- /src/main/java/jp/ossc/nimbus/service/crypt/package.html: -------------------------------------------------------------------------------- 1 | 4 | 5 |
6 | 7 |
11 | このパッケージでは、暗号化、複合化、ハッシュ等の、暗号サービスを提供します。
12 |
13 |
14 |
--------------------------------------------------------------------------------
/src/main/java/jp/ossc/nimbus/service/http/package.html:
--------------------------------------------------------------------------------
1 |
4 |
5 |
11 | このパッケージでは、HTTPプロトコルによる外部接続機能を提供します。
11 | 任意のソースコードをインタプリタ的に実行する機能を提供します。
11 | JMSへの書き込みを行うMessageWriterサービスを提供します。
11 | このパッケージでは、JFreeChartを使ったグラフ生成機能を提供します。
11 | データベースへの書き込みを行うMessageWriterサービスを提供します。
11 | オブジェクトを登録して管理する機能を提供します。
11 | Java Mailを使って、SMTPサーバにメールを送信するMessageWriterサービスを提供します。
11 | バリデータは任意のオブジェクトを検証する機能です。
11 | 任意のフォーマットの通番を発番する機能を抽象化したインタフェースが、Sequenceです。
13 | このパッケージでは、そのSequenceインタフェースを実装したサービスを提供します。
11 | Converterインタフェースを実装したサービスを提供します。
11 | Validatorインタフェースを実装したサービスを提供します。
11 | マルチスレッドで、限られたリソースにアクセスする際の、同期制御を行う機能
12 | を抽象化したインタフェースが、Semaphoreです。
14 | このパッケージでは、そのSemaphoreインタフェースを実装したサービスを提供します。
11 | The Apache Jakarta ProjectのLog4JのAppenderを使用したMessageWriterサービスを提供します。
11 | Javaのスレッドは、デッドロックを回避するために、スレッドの一時停止及び再開、
12 | 停止などの操作をフラグ操作によって自前で実装する事を推奨しています。
11 | このパッケージでは、Jakarta Commons HttpClientを使ったHTTPプロトコルによる外部接続機能を提供します。
11 | jp.ossc.nimbus.service.schedulerパッケージのスケジューラは、
12 | 単体のサーバ上でのスケジュール実行しかサポートしていませんでしたが、
13 | このパッケージのスケジューラは、分散環境のサポート、スケジュールの依存関係、
14 | スケジュールのリトライなど、エンタープライズなスケジュール機能をサポートしています。
11 | コンバータは任意のオブジェクトを別の任意のオブジェクトに変換する機能です。
11 | ジャーナルに出力する任意のオブジェクトを毎に出力編集を行うJournalEditorをマッピングする機能を抽象化したインタフェースが、EditorFinderです。
13 | このパッケージでは、EditorFinderインタフェースを実装したサービスを提供します。
11 | アスペクト指向を考える時、利用用途として最も重要な概念は、
12 | 「任意の処理の前または後もしくはその両方で、特定の処理を行う」でしょう。
15 | このパッケージでは、そのInterceptorインタフェースを実装したサービスを提供します。
11 | アスペクト指向プログラミングでは、「本来の処理」を横断的に捉えて、それに対して「特定の処理」を行います。
15 | このパッケージでは、そのInvokerインタフェースを実装したサービスを提供します。
11 | アプリケーションを開発する上で、一意なキーに関連付けられたオブジェクトを保持する場所が必要になります。
16 | このパッケージでは、そのContextインタフェースを実装したサービスを提供します。
11 | アスペクト指向における「横断要素」を、Javaクラスのメソッドに対して定義し、
12 | クラスファイルのバイトコードを操作する事で、
13 | そこにInterceptorChainを挟み込むサービスを提供します。
11 | 業務設計者が業務フローを定義し、その詳細実装をプログラマーが行うという、
12 | 業務設計者とプログラマーの分業をサポートするための業務フロー機能を提供します。
11 | アプリケーションは、任意のオブジェクトをジャーナルに出力します。
17 | このパッケージでは、JournalEditorインタフェースを実装したサービスを提供します。
11 | 通常、アプリケーションで使用するデータ構造には、1次元で表現できるデータと、2次元で表現できるデータ、またその組み合わせで表現できるデータがあります。
11 | FIFOのキュー機能を抽象化したインタフェースがQueueです。
14 | このパッケージでは、Queueインタフェースを実装したサービスを提供します。
16 | また、Queueは、通常非同期処理を行うために使用します。
11 | プロキシのInvokerとして、以下のものを用意してます。
7 | *
8 | * @author M.Takata
9 | */
10 | public interface CodeMasterConverterServiceMBean extends ServiceBaseMBean{
11 |
12 | public void setThreadContextServiceName(ServiceName name);
13 | public ServiceName getThreadContextServiceName();
14 |
15 | public void setThreadContextKey(String key);
16 | public String getThreadContextKey();
17 |
18 | public void setCodeMasterFinderServiceName(ServiceName name);
19 | public ServiceName getCodeMasterFinderServiceName();
20 |
21 | public void setMasterName(String name);
22 | public String getMasterName();
23 |
24 | public void setCodeMasterConverterServiceName(ServiceName name);
25 | public ServiceName getCodeMasterConverterServiceName();
26 | }
--------------------------------------------------------------------------------
/src/main/java/jp/ossc/nimbus/service/jndi/package.html:
--------------------------------------------------------------------------------
1 |
4 |
5 |
11 | JNDI(Java Naming and Directory Interface)の接続には、接続先のJNDIサーバ等の接続情報を引数で指定する必要があります。
12 | (jndi.propertiesで設定する方法もありますが、その場合接続先が1つに限られるので複数のJNDIサーバに接続する場合などに問題になります)
16 | このように、JNDIからのリモートオブジェクトの取得は、複雑なパラメータの指定や、性能対策などが必要になり、簡単に取得できるとは言いがたいものがあります。
21 | このパッケージでは、そのJndiFinderインタフェースを実装したサービスを提供します。
11 | EJB2.0までのEJBは、EJBの参照を取得するのに、以下のような複雑なAPIの呼び出し手続きが必要になる。
22 | このようなEJBの取得に際して発生し得る問題を隠蔽し、EJBの参照を取得するという簡潔な手段だけを抽象化したインタフェースが、
23 | EJBFactoryです。
25 | このパッケージでは、そのEJBFactoryインタフェースを実装したサービスを提供します。
9 | * ファイルのコピーやリネームと言った操作を行う
10 | * @version $Name: $
11 | * @author H.Nakano
12 | * @since 1.0
13 | * @see
14 | */
15 | public class RecordSetTest extends TestCase {
16 | //メッセージファイルパスを1個指定した場合
17 | public void testInsertRecord() throws Exception{
18 | TestRecSet tmp = new TestRecSet() ;
19 | RowData rd = tmp.createNewRecord() ;
20 | rd.setValue("OPERATIONDATE","20030303");
21 | rd.setValue("GYOUMUCD","111") ;
22 | rd.setValue("MEMOSEQ",1) ;
23 | rd.setValue("LINENO",1) ;
24 | rd.setValue("MEMODATA","aaaa") ;
25 | tmp.insertRecord(rd);
26 | rd = tmp.createNewRecord() ;
27 | rd.setValue("OPERATIONDATE","20030303");
28 | rd.setValue("GYOUMUCD","111") ;
29 | rd.setValue("MEMOSEQ",1) ;
30 | rd.setValue("LINENO",1) ;
31 | rd.setValue("MEMODATA","aaaa") ;
32 | tmp.insertRecord(rd);
33 | }
34 |
35 | }
36 |
--------------------------------------------------------------------------------
/src/test/java/jp/ossc/nimbus/recset/TestRecSet.java:
--------------------------------------------------------------------------------
1 | // パッケージ
2 | // インポート
3 | package jp.ossc.nimbus.recset;
4 |
5 | /**
6 | * ファイル操作クラス
7 | * ファイルのコピーやリネームと言った操作を行う
8 | * @version $Name: $
9 | * @author H.Nakano
10 | * @since 1.0
11 | * @see
12 | */
13 | public class TestRecSet extends RecordSet {
14 |
15 | private static final long serialVersionUID = -393903869827407791L;
16 | /** スキーマ定義 */
17 | private static final String C_SCHEMA =
18 | "OPERATIONDATE,CHAR,8,3,0" + C_SEPARATOR
19 | + "GYOUMUCD,CHAR,3,3,0" + C_SEPARATOR
20 | + "MEMOSEQ,INT,2,3,0" + C_SEPARATOR
21 | + "LINENO,INT,3,3,0" + C_SEPARATOR
22 | + "MEMODATA,VARCHAR,100,3,0" + C_SEPARATOR
23 | + "ROWVERSION,INT,9,1,0";
24 | /** テーブル名 */
25 | private static final String TABLE_NAME = "COMMON_MEMO_DATA";
26 | public TestRecSet() {
27 | /**
28 | * コンストラクター
29 | */
30 | super();
31 | super.initSchema(C_SCHEMA);
32 | super.setFromTable(TABLE_NAME);
33 | super.setOrderbyStr("MEMOSEQ,LINENO");
34 | }
35 |
36 | }
37 |
--------------------------------------------------------------------------------
/src/test/resources/jp/ossc/nimbus/io/split0:
--------------------------------------------------------------------------------
1 | tetttttetttttetttttetttttetttttetttttettttaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
2 | tetttttetttttetttttetttttetttttetttttettttaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
3 | tetttttetttttetttttetttttetttttetttttettttaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
4 | tetttttetttttetttttetttttetttttetttttettttaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
5 | tetttttetttttetttttetttttetttttetttttettttaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
6 | tetttttetttttetttttetttttetttttetttttettttaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
7 | tetttttetttttetttttetttttetttttetttttettttaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
8 | tetttttetttttetttttetttttetttttetttttettttaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
9 | tetttttetttttetttttetttttetttttetttttettttaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
10 | tetttttetttttetttttetttttetttttetttttettttaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
11 | tetttttett
--------------------------------------------------------------------------------
/src/test/resources/jp/ossc/nimbus/io/split1:
--------------------------------------------------------------------------------
1 | tttetttttetttttetttttetttttettttaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
2 | tetttttetttttetttttetttttetttttetttttettttaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
3 | tetttttetttttetttttetttttetttttetttttettttaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
4 | tetttttetttttetttttetttttetttttetttttettttaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
5 | tetttttetttttetttttetttttetttttetttttettttaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
6 | tetttttetttttetttttetttttetttttetttttettttaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
7 | tetttttetttttetttttetttttetttttetttttettttaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
8 | tetttttetttttetttttetttttetttttetttttettttaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
9 | tetttttetttttetttttetttttetttttetttttettttaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
10 | tetttttetttttetttttetttttetttttetttttettttaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
11 | tetttttetttttettttte
--------------------------------------------------------------------------------
/src/main/java/jp/ossc/nimbus/service/message/package.html:
--------------------------------------------------------------------------------
1 |
4 |
5 |
11 | アプリケーションで何らかのメッセージ出力を行う場合、必要となる要件を列挙します。
22 | このパッケージでは、これらのインタフェースを実装したサービスを提供します。
11 | 出力するという概念を抽象化すると、「どこにどのように出力するか」でしょう。
13 | 「どのように出力するか」という概念を抽象化すると、順序性とマッピングが考えられます。
20 | 次は、このようにしてフォーマットされたWritableRecordを「どこに出力するか」となります。
23 | さらに、これらの大きな2つの概念、「どこにどのように出力するか」をまとめて抽象化したインタフェースがCategoryです。
25 | このパッケージでは、これらの概念を具体化したサービスを提供します。
11 | NimbusアスペクトのInterceptorの中でも、サーブレット層に特化したInterceptorを提供します。
11 | リモートサーバ上のサービスをあたかもローカルにあるサービスのように呼び出すプロキシ機能を提供します。
16 | クライアントプロキシとしては、RemoteClientServiceを用意しています。
11 | キャッシュとは、一般的には使用頻度の高いデータを高速な記憶装置に蓄えておく事により、
12 | いちいち低速な装置から読み出す無駄を省いて高速化することを指します。
17 | また、ここで言う「一時的に保持する」とは、ある条件において、保持しておいたオブジェクトが揮発したり、
18 | 実際に保持する場所(メモリ、ファイル等)が変わってしまう可能性がある事を示唆します。
21 | また、あふれ制御は、大きく3つの概念に分ける事ができます。
11 | JDBCのコネクション取得方法は、JDBCの標準的手法として2種類あります。
14 | 前者は、JDBCドライバを直接使用する低レベルなAPIで、DBMSに接続するためのプロパティ等を引数で指定する必要があります。
17 | 後者は、アプリケーションサーバ等の中間層を挟んでJDBCドライバを使用するAPIで、DBMSに接続するためのプロパティは、アプリケーションサーバの設定ファイル等に記述します。
22 | このように、JDBCコネクションを取得するのは、複数の方法、複雑なパラメータの指定や設定が必要になり、簡単に取得できるとは言いがたいものがあります。
25 | このパッケージでは、そのConnectionFactoryインタフェースを実装したサービスを提供します。
11 | サービス基盤とは、POJO(Plain Old Java Objects)オブジェクトを、WindowsのサービスのようにJavaVM上に、ホスティングする基盤機能である。
13 | サービス基盤上にホスティングされるPOJOは、サービスと呼ばれる。
17 | サービス基盤上にホスティングされたサービスは、サービス管理によって管理される。
21 | サービスやサービス管理の定義は、サービスローダによってロードされる。
25 | Nimbusプロジェクトでは、様々な機能が提供されているが、それぞれの機能は、サービスとして実装されている。
26 | そのため、ユーザは必要な機能だけを、プロパティをカスタマイズしてJavaVM上にホスティングして、使用する事ができる。
11 | JMSのインタフェースは、JMSクライアントの観点から見ると、javax.jms.Connection、javax.jms.Session、javax.jms.MessageConsumer、javax.jms.MessageProducer、javax.jms.Queue、javax.jms.Topicが主なインタフェースでしょう。
12 | これらのインタフェースを使用する上で、各インタフェース毎に、パラメータが必要になります。
13 | そのパラメータは、ある使用意図の元では、固定の値である事の方が多いと言えます。
14 | つまり、アプリケーションからJMSを使用する場合、それらのパラメータは、
15 | アプリケーションの業務要件ではなく、アプリケーションの方式設計から決まる基盤的な要件と言えるでしょう。
19 | JMS Connectionを取得する簡潔な手段を抽象化したインタフェースがJMSConnectionFactoryです。
21 | JMS Sessionを取得する簡潔な手段を抽象化したインタフェースがJMSSessionFactoryです。
23 | JMS MessageConsumerを取得する簡潔な手段を抽象化したインタフェースがJMSMessageConsumerFactoryです。
25 | JMS MessageProducerを取得する簡潔な手段を抽象化したインタフェースがJMSMessageProducerFactoryです。
27 | このパッケージでは、これらのインタフェースを実装したサービスを提供します。
11 | エンタープライズなシステムを構築する場合、各層でジャーナルを取得する必要があります。
23 | まず、アプリケーションは、任意のオブジェクトをジャーナルに出力します。
30 | 次に実際の媒体への出力ですが、その機能はWriterパッケージのCategoryを使用します。
32 | これらの要件を満たしつつ、ジャーナルを取得する機能を抽象化したのがJournalインタフェースです。
34 | このパッケージでは、Journalインタフェースを実装したサービスを提供します。
11 |
12 | Java Beans規約に則ったBeanのプロパティ編集、及びJava Beans規約を拡張したBeanのプロパティアクセスをサポートするライブラリを提供します。
13 |
14 | Java Beans規約に則ったBeanのプロパティを編集する機能として、J2SEにはjava.beans.PropertyEditorインタフェースが定義されています。
17 |
18 | Java Beans規約を拡張したBeanのプロパティに、汎用的にアクセスする機能が、The Apache Jakarta Projectの Commons BeanUtils(http://jakarta.apache.org/beanutils/)で提供されています。
7 | */
8 | public class CryptElement extends SimpleElement {
9 |
10 | private static final long serialVersionUID = -1736395385754458771L;
11 |
12 | /** 暗号化サービス */
13 | private Crypt crypt;
14 |
15 | /**
16 | * 暗号化サービスを設定する。
17 | *
18 | * @param crypt 暗号化サービス
19 | */
20 | public void setCrypt(Crypt crypt){
21 | this.crypt = crypt;
22 | }
23 |
24 | /**
25 | * 暗号化サービスを取得する。
26 | *
27 | * @return 暗号化サービス
28 | */
29 | public Crypt getCrypt(){
30 | return crypt;
31 | }
32 |
33 | /**
34 | * この要素(文字列)を暗号化して取得する。
35 | *
36 | * @return この要素(文字列)を暗号化したもの
37 | */
38 | public String toString(){
39 | if(mValue == null){
40 | return null;
41 | }
42 |
43 | String ret = null;
44 | if(crypt != null
45 | && mValue instanceof String){
46 | ret = crypt.doEncode((String) mValue);
47 | }
48 |
49 | return convertString(ret);
50 | }
51 |
52 | /**
53 | * この要素(文字列)を暗号化して取得する。
54 | * {@link #toString()}と同じ値を返す。
11 | ロギングと言えば、The Apache Jakarta ProjectのCommons LoggingやLog4Jなどが有名です。
12 | それらのロギングの概念は、クライアント側が出力するメッセージを決め、メッセージの出力レベルに合ったメソッドを呼び出すと言うものです。
13 | 以下にその実装例を示します。
37 | このパッケージでは、Loggerインタフェースを実装したサービスを提供します。
36 | *
37 | * @author M.Takata
38 | */
39 | public interface FTPClientFactory{
40 |
41 | public FTPClient createFTPClient() throws FTPException;
42 | }
--------------------------------------------------------------------------------
/src/main/java/jp/ossc/nimbus/service/scp/SCPClientFactory.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This software is distributed under following license based on modified BSD
3 | * style license.
4 | * ----------------------------------------------------------------------
5 | *
6 | * Copyright 2003 The Nimbus Project. All rights reserved.
7 | *
8 | * Redistribution and use in source and binary forms, with or without
9 | * modification, are permitted provided that the following conditions are met:
10 | *
11 | * 1. Redistributions of source code must retain the above copyright notice,
12 | * this list of conditions and the following disclaimer.
13 | * 2. Redistributions in binary form must reproduce the above copyright notice,
14 | * this list of conditions and the following disclaimer in the documentation
15 | * and/or other materials provided with the distribution.
16 | *
17 | * THIS SOFTWARE IS PROVIDED BY THE NIMBUS PROJECT ``AS IS'' AND ANY EXPRESS
18 | * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
20 | * NO EVENT SHALL THE NIMBUS PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY
21 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
22 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
23 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
24 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 | *
28 | * The views and conclusions contained in the software and documentation are
29 | * those of the authors and should not be interpreted as representing official
30 | * policies, either expressed or implied, of the Nimbus Project.
31 | */
32 | package jp.ossc.nimbus.service.scp;
33 |
34 | /**
35 | * SCPクライアントファクトリ。
36 | *
37 | * @author M.Takata
38 | */
39 | public interface SCPClientFactory{
40 |
41 | public SCPClient createSCPClient() throws SCPException;
42 | }
--------------------------------------------------------------------------------
/src/main/java/jp/ossc/nimbus/service/sftp/SFTPClientFactory.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This software is distributed under following license based on modified BSD
3 | * style license.
4 | * ----------------------------------------------------------------------
5 | *
6 | * Copyright 2003 The Nimbus Project. All rights reserved.
7 | *
8 | * Redistribution and use in source and binary forms, with or without
9 | * modification, are permitted provided that the following conditions are met:
10 | *
11 | * 1. Redistributions of source code must retain the above copyright notice,
12 | * this list of conditions and the following disclaimer.
13 | * 2. Redistributions in binary form must reproduce the above copyright notice,
14 | * this list of conditions and the following disclaimer in the documentation
15 | * and/or other materials provided with the distribution.
16 | *
17 | * THIS SOFTWARE IS PROVIDED BY THE NIMBUS PROJECT ``AS IS'' AND ANY EXPRESS
18 | * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
20 | * NO EVENT SHALL THE NIMBUS PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY
21 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
22 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
23 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
24 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 | *
28 | * The views and conclusions contained in the software and documentation are
29 | * those of the authors and should not be interpreted as representing official
30 | * policies, either expressed or implied, of the Nimbus Project.
31 | */
32 | package jp.ossc.nimbus.service.sftp;
33 |
34 | /**
35 | * SFTPクライアントファクトリ。
36 | *
37 | * @author M.Takata
38 | */
39 | public interface SFTPClientFactory{
40 |
41 | public SFTPClient createSFTPClient() throws SFTPException;
42 | }
--------------------------------------------------------------------------------
/src/main/java/jp/ossc/nimbus/service/converter/CodeMasterConverter.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This software is distributed under following license based on modified BSD
3 | * style license.
4 | * ----------------------------------------------------------------------
5 | *
6 | * Copyright 2003 The Nimbus Project. All rights reserved.
7 | *
8 | * Redistribution and use in source and binary forms, with or without
9 | * modification, are permitted provided that the following conditions are met:
10 | *
11 | * 1. Redistributions of source code must retain the above copyright notice,
12 | * this list of conditions and the following disclaimer.
13 | * 2. Redistributions in binary form must reproduce the above copyright notice,
14 | * this list of conditions and the following disclaimer in the documentation
15 | * and/or other materials provided with the distribution.
16 | *
17 | * THIS SOFTWARE IS PROVIDED BY THE NIMBUS PROJECT ``AS IS'' AND ANY EXPRESS
18 | * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
20 | * NO EVENT SHALL THE NIMBUS PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY
21 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
22 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
23 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
24 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 | *
28 | * The views and conclusions contained in the software and documentation are
29 | * those of the authors and should not be interpreted as representing official
30 | * policies, either expressed or implied, of the Nimbus Project.
31 | */
32 | package jp.ossc.nimbus.service.converter;
33 |
34 | import jp.ossc.nimbus.util.converter.ConvertException;
35 |
36 | public interface CodeMasterConverter{
37 | public Object convert(Object master, Object obj) throws ConvertException;
38 | }
39 |
--------------------------------------------------------------------------------
/src/main/java/jp/ossc/nimbus/service/cui/Display.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This software is distributed under following license based on modified BSD
3 | * style license.
4 | * ----------------------------------------------------------------------
5 | *
6 | * Copyright 2003 The Nimbus Project. All rights reserved.
7 | *
8 | * Redistribution and use in source and binary forms, with or without
9 | * modification, are permitted provided that the following conditions are met:
10 | *
11 | * 1. Redistributions of source code must retain the above copyright notice,
12 | * this list of conditions and the following disclaimer.
13 | * 2. Redistributions in binary form must reproduce the above copyright notice,
14 | * this list of conditions and the following disclaimer in the documentation
15 | * and/or other materials provided with the distribution.
16 | *
17 | * THIS SOFTWARE IS PROVIDED BY THE NIMBUS PROJECT ``AS IS'' AND ANY EXPRESS
18 | * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
20 | * NO EVENT SHALL THE NIMBUS PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY
21 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
22 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
23 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
24 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 | *
28 | * The views and conclusions contained in the software and documentation are
29 | * those of the authors and should not be interpreted as representing official
30 | * policies, either expressed or implied, of the Nimbus Project.
31 | */
32 | package jp.ossc.nimbus.service.cui;
33 |
34 | /**
35 | * Displayインターフェイス
36 | * @author y-tokuda
37 | * @version 1.00 作成:2003/10/29- y-tokuda
36 | *
37 | * @author M.Takata
38 | */
39 | public class ByeMessage extends ClientMessage{
40 |
41 | public ByeMessage(){
42 | super(MESSAGE_BYE);
43 | }
44 | }
--------------------------------------------------------------------------------
/src/main/java/jp/ossc/nimbus/service/cache/PersistableCache.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This software is distributed under following license based on modified BSD
3 | * style license.
4 | * ----------------------------------------------------------------------
5 | *
6 | * Copyright 2003 The Nimbus Project. All rights reserved.
7 | *
8 | * Redistribution and use in source and binary forms, with or without
9 | * modification, are permitted provided that the following conditions are met:
10 | *
11 | * 1. Redistributions of source code must retain the above copyright notice,
12 | * this list of conditions and the following disclaimer.
13 | * 2. Redistributions in binary form must reproduce the above copyright notice,
14 | * this list of conditions and the following disclaimer in the documentation
15 | * and/or other materials provided with the distribution.
16 | *
17 | * THIS SOFTWARE IS PROVIDED BY THE NIMBUS PROJECT ``AS IS'' AND ANY EXPRESS
18 | * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
20 | * NO EVENT SHALL THE NIMBUS PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY
21 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
22 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
23 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
24 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 | *
28 | * The views and conclusions contained in the software and documentation are
29 | * those of the authors and should not be interpreted as representing official
30 | * policies, either expressed or implied, of the Nimbus Project.
31 | */
32 | package jp.ossc.nimbus.service.cache;
33 |
34 | /**
35 | * 永続化可能キャッシュ。
36 | *
37 | * @author M.Takata
38 | */
39 | public interface PersistableCache{
40 |
41 | public void load() throws Exception;
42 |
43 | public void save() throws Exception;
44 | }
45 |
--------------------------------------------------------------------------------
/src/main/java/jp/ossc/nimbus/service/cui/CuiFactory.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This software is distributed under following license based on modified BSD
3 | * style license.
4 | * ----------------------------------------------------------------------
5 | *
6 | * Copyright 2003 The Nimbus Project. All rights reserved.
7 | *
8 | * Redistribution and use in source and binary forms, with or without
9 | * modification, are permitted provided that the following conditions are met:
10 | *
11 | * 1. Redistributions of source code must retain the above copyright notice,
12 | * this list of conditions and the following disclaimer.
13 | * 2. Redistributions in binary form must reproduce the above copyright notice,
14 | * this list of conditions and the following disclaimer in the documentation
15 | * and/or other materials provided with the distribution.
16 | *
17 | * THIS SOFTWARE IS PROVIDED BY THE NIMBUS PROJECT ``AS IS'' AND ANY EXPRESS
18 | * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
20 | * NO EVENT SHALL THE NIMBUS PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY
21 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
22 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
23 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
24 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 | *
28 | * The views and conclusions contained in the software and documentation are
29 | * those of the authors and should not be interpreted as representing official
30 | * policies, either expressed or implied, of the Nimbus Project.
31 | */
32 | package jp.ossc.nimbus.service.cui;
33 |
34 | /**
35 | * Cuiファクトリーサービス
36 | * @author y-tokuda
37 | * @version 1.00 作成:2003/10/20- y-tokuda
36 | *
37 | * @author M.Takata
38 | */
39 | public interface TickUnitAdjustCommonDivisorMap{
40 | public double getCommonDivisor(double val);
41 | }
42 |
--------------------------------------------------------------------------------
/src/main/java/jp/ossc/nimbus/service/mail/MailSenderFactory.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This software is distributed under following license based on modified BSD
3 | * style license.
4 | * ----------------------------------------------------------------------
5 | *
6 | * Copyright 2003 The Nimbus Project. All rights reserved.
7 | *
8 | * Redistribution and use in source and binary forms, with or without
9 | * modification, are permitted provided that the following conditions are met:
10 | *
11 | * 1. Redistributions of source code must retain the above copyright notice,
12 | * this list of conditions and the following disclaimer.
13 | * 2. Redistributions in binary form must reproduce the above copyright notice,
14 | * this list of conditions and the following disclaimer in the documentation
15 | * and/or other materials provided with the distribution.
16 | *
17 | * THIS SOFTWARE IS PROVIDED BY THE NIMBUS PROJECT ``AS IS'' AND ANY EXPRESS
18 | * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
20 | * NO EVENT SHALL THE NIMBUS PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY
21 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
22 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
23 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
24 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 | *
28 | * The views and conclusions contained in the software and documentation are
29 | * those of the authors and should not be interpreted as representing official
30 | * policies, either expressed or implied, of the Nimbus Project.
31 | */
32 | package jp.ossc.nimbus.service.mail;
33 |
34 | //
35 | /**
36 | * メールセンダーファクトリインターフェイス
37 | * @author NRI. Hirotaka Nakano
38 | * @version 1.00 作成: 2003/10/09 - H.Nakano
39 | */
40 | public interface MailSenderFactory {
41 | public MailSender createMailSender() ;
42 | }
43 |
--------------------------------------------------------------------------------
/src/test/java/jp/ossc/nimbus/service/beancontrol/TestBeanFlow1.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This software is distributed under following license based on modified BSD
3 | * style license.
4 | * ----------------------------------------------------------------------
5 | *
6 | * Copyright 2003 The Nimbus Project. All rights reserved.
7 | *
8 | * Redistribution and use in source and binary forms, with or without
9 | * modification, are permitted provided that the following conditions are met:
10 | *
11 | * 1. Redistributions of source code must retain the above copyright notice,
12 | * this list of conditions and the following disclaimer.
13 | * 2. Redistributions in binary form must reproduce the above copyright notice,
14 | * this list of conditions and the following disclaimer in the documentation
15 | * and/or other materials provided with the distribution.
16 | *
17 | * THIS SOFTWARE IS PROVIDED BY THE NIMBUS PROJECT ``AS IS'' AND ANY EXPRESS
18 | * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
20 | * NO EVENT SHALL THE NIMBUS PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY
21 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
22 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
23 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
24 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 | *
28 | * The views and conclusions contained in the software and documentation are
29 | * those of the authors and should not be interpreted as representing official
30 | * policies, either expressed or implied, of the Nimbus Project.
31 | */
32 | package jp.ossc.nimbus.service.beancontrol;
33 |
34 | public class TestBeanFlow1 {
35 |
36 | public int getValue(){
37 | return 1;
38 | }
39 |
40 | public void execute() {
41 | System.out.println("TestBeanFlow1#execute() was called.");
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/src/test/java/jp/ossc/nimbus/beans/dataset/HeaderTest.java:
--------------------------------------------------------------------------------
1 | package jp.ossc.nimbus.beans.dataset;
2 |
3 | import junit.framework.TestCase;
4 | //
5 | /**
6 | *
7 | * @author S.Teshima
8 | * @version 1.00 作成: 2008/01/22 - S.Teshima
9 | */
10 |
11 | public class HeaderTest extends TestCase {
12 |
13 | public HeaderTest(String arg0) {
14 | super(arg0);
15 | }
16 |
17 | public static void main(String[] args) {
18 | junit.textui.TestRunner.run(HeaderTest.class);
19 | }
20 |
21 | /**
22 | * 同じスキーマを持ちデータを持たない空のヘッダを複製するテスト。
23 | *
24 | * 条件:
25 | *
53 | * 条件:
54 | *
36 | *
37 | * @author M.Takata
38 | * @see DefaultServiceManagerService
39 | */
40 | public interface DefaultServiceManagerServiceMBean
41 | extends Service, ServiceManager{
42 | }
--------------------------------------------------------------------------------
/src/main/java/jp/ossc/nimbus/service/system/Time.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This software is distributed under following license based on modified BSD
3 | * style license.
4 | * ----------------------------------------------------------------------
5 | *
6 | * Copyright 2003 The Nimbus Project. All rights reserved.
7 | *
8 | * Redistribution and use in source and binary forms, with or without
9 | * modification, are permitted provided that the following conditions are met:
10 | *
11 | * 1. Redistributions of source code must retain the above copyright notice,
12 | * this list of conditions and the following disclaimer.
13 | * 2. Redistributions in binary form must reproduce the above copyright notice,
14 | * this list of conditions and the following disclaimer in the documentation
15 | * and/or other materials provided with the distribution.
16 | *
17 | * THIS SOFTWARE IS PROVIDED BY THE NIMBUS PROJECT ``AS IS'' AND ANY EXPRESS
18 | * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
20 | * NO EVENT SHALL THE NIMBUS PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY
21 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
22 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
23 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
24 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 | *
28 | * The views and conclusions contained in the software and documentation are
29 | * those of the authors and should not be interpreted as representing official
30 | * policies, either expressed or implied, of the Nimbus Project.
31 | */
32 | package jp.ossc.nimbus.service.system;
33 |
34 | /**
35 | * システム時刻。
36 | *
37 | * @author M.Takata
38 | */
39 | public interface Time{
40 |
41 | /**
42 | * ミリ秒で表される現在の時間を返す。
43 | *
44 | * @return ミリ秒で表される現在の時間
45 | */
46 | public long currentTimeMillis();
47 | }
--------------------------------------------------------------------------------
/src/test/java/jp/ossc/nimbus/util/TestMain.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This software is distributed under following license based on modified BSD
3 | * style license.
4 | * ----------------------------------------------------------------------
5 | *
6 | * Copyright 2003 The Nimbus Project. All rights reserved.
7 | *
8 | * Redistribution and use in source and binary forms, with or without
9 | * modification, are permitted provided that the following conditions are met:
10 | *
11 | * 1. Redistributions of source code must retain the above copyright notice,
12 | * this list of conditions and the following disclaimer.
13 | * 2. Redistributions in binary form must reproduce the above copyright notice,
14 | * this list of conditions and the following disclaimer in the documentation
15 | * and/or other materials provided with the distribution.
16 | *
17 | * THIS SOFTWARE IS PROVIDED BY THE NIMBUS PROJECT ``AS IS'' AND ANY EXPRESS
18 | * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
20 | * NO EVENT SHALL THE NIMBUS PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY
21 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
22 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
23 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
24 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 | *
28 | * The views and conclusions contained in the software and documentation are
29 | * those of the authors and should not be interpreted as representing official
30 | * policies, either expressed or implied, of the Nimbus Project.
31 | */
32 | package jp.ossc.nimbus.util;
33 |
34 | /**
35 | * @author nakano
36 | *
37 | * この生成されたコメントの挿入されるテンプレートを変更するため
38 | * ウィンドウ > 設定 > Java > コード生成 > コードとコメント
39 | */
40 | public class TestMain {
41 |
42 | public static void main(String[] args) {
43 | System.out.print("Main Start!!") ;
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/src/main/java/jp/ossc/nimbus/service/ioccall/UnsynchFacadeCallerServiceMBean.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This software is distributed under following license based on modified BSD
3 | * style license.
4 | * ----------------------------------------------------------------------
5 | *
6 | * Copyright 2003 The Nimbus Project. All rights reserved.
7 | *
8 | * Redistribution and use in source and binary forms, with or without
9 | * modification, are permitted provided that the following conditions are met:
10 | *
11 | * 1. Redistributions of source code must retain the above copyright notice,
12 | * this list of conditions and the following disclaimer.
13 | * 2. Redistributions in binary form must reproduce the above copyright notice,
14 | * this list of conditions and the following disclaimer in the documentation
15 | * and/or other materials provided with the distribution.
16 | *
17 | * THIS SOFTWARE IS PROVIDED BY THE NIMBUS PROJECT ``AS IS'' AND ANY EXPRESS
18 | * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
20 | * NO EVENT SHALL THE NIMBUS PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY
21 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
22 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
23 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
24 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 | *
28 | * The views and conclusions contained in the software and documentation are
29 | * those of the authors and should not be interpreted as representing official
30 | * policies, either expressed or implied, of the Nimbus Project.
31 | */
32 | package jp.ossc.nimbus.service.ioccall;
33 |
34 | import jp.ossc.nimbus.core.*;
35 |
36 | /**
37 | * {@link UnsynchFacadeCallerService}のMBeanインタフェース。
38 | *
39 | * @author M.Takata
40 | */
41 | public interface UnsynchFacadeCallerServiceMBean extends ServiceBaseMBean{
42 | }
43 |
--------------------------------------------------------------------------------
/src/main/java/jp/ossc/nimbus/service/scheduler2/DefaultScheduleMakerServiceMBean.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This software is distributed under following license based on modified BSD
3 | * style license.
4 | * ----------------------------------------------------------------------
5 | *
6 | * Copyright 2003 The Nimbus Project. All rights reserved.
7 | *
8 | * Redistribution and use in source and binary forms, with or without
9 | * modification, are permitted provided that the following conditions are met:
10 | *
11 | * 1. Redistributions of source code must retain the above copyright notice,
12 | * this list of conditions and the following disclaimer.
13 | * 2. Redistributions in binary form must reproduce the above copyright notice,
14 | * this list of conditions and the following disclaimer in the documentation
15 | * and/or other materials provided with the distribution.
16 | *
17 | * THIS SOFTWARE IS PROVIDED BY THE NIMBUS PROJECT ``AS IS'' AND ANY EXPRESS
18 | * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
20 | * NO EVENT SHALL THE NIMBUS PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY
21 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
22 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
23 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
24 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 | *
28 | * The views and conclusions contained in the software and documentation are
29 | * those of the authors and should not be interpreted as representing official
30 | * policies, either expressed or implied, of the Nimbus Project.
31 | */
32 | package jp.ossc.nimbus.service.scheduler2;
33 |
34 | import jp.ossc.nimbus.core.*;
35 |
36 | /**
37 | * {@link DefaultScheduleMakerService}のMBeanインタフェース。
38 | *
39 | * @author M.Takata
40 | */
41 | public interface DefaultScheduleMakerServiceMBean extends ServiceBaseMBean{
42 | }
--------------------------------------------------------------------------------
/src/main/java/jp/ossc/nimbus/service/codemaster/PartUpdate.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This software is distributed under following license based on modified BSD
3 | * style license.
4 | * ----------------------------------------------------------------------
5 | *
6 | * Copyright 2003 The Nimbus Project. All rights reserved.
7 | *
8 | * Redistribution and use in source and binary forms, with or without
9 | * modification, are permitted provided that the following conditions are met:
10 | *
11 | * 1. Redistributions of source code must retain the above copyright notice,
12 | * this list of conditions and the following disclaimer.
13 | * 2. Redistributions in binary form must reproduce the above copyright notice,
14 | * this list of conditions and the following disclaimer in the documentation
15 | * and/or other materials provided with the distribution.
16 | *
17 | * THIS SOFTWARE IS PROVIDED BY THE NIMBUS PROJECT ``AS IS'' AND ANY EXPRESS
18 | * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
20 | * NO EVENT SHALL THE NIMBUS PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY
21 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
22 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
23 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
24 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 | *
28 | * The views and conclusions contained in the software and documentation are
29 | * those of the authors and should not be interpreted as representing official
30 | * policies, either expressed or implied, of the Nimbus Project.
31 | */
32 | // パッケージ
33 | package jp.ossc.nimbus.service.codemaster;
34 |
35 | /**
36 | * 部分更新マスター
37 | * @version $Name: $
38 | * @author H.Nakano
39 | * @since 1.0
40 | */
41 | public interface PartUpdate{
42 |
43 | public PartUpdate cloneAndUpdate(PartUpdateRecords records) throws Exception;
44 | }
45 |
--------------------------------------------------------------------------------
/src/main/java/jp/ossc/nimbus/service/crypt/NullCryptServiceMBean.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This software is distributed under following license based on modified BSD
3 | * style license.
4 | * ----------------------------------------------------------------------
5 | *
6 | * Copyright 2003 The Nimbus Project. All rights reserved.
7 | *
8 | * Redistribution and use in source and binary forms, with or without
9 | * modification, are permitted provided that the following conditions are met:
10 | *
11 | * 1. Redistributions of source code must retain the above copyright notice,
12 | * this list of conditions and the following disclaimer.
13 | * 2. Redistributions in binary form must reproduce the above copyright notice,
14 | * this list of conditions and the following disclaimer in the documentation
15 | * and/or other materials provided with the distribution.
16 | *
17 | * THIS SOFTWARE IS PROVIDED BY THE NIMBUS PROJECT ``AS IS'' AND ANY EXPRESS
18 | * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
20 | * NO EVENT SHALL THE NIMBUS PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY
21 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
22 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
23 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
24 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 | *
28 | * The views and conclusions contained in the software and documentation are
29 | * those of the authors and should not be interpreted as representing official
30 | * policies, either expressed or implied, of the Nimbus Project.
31 | */
32 | package jp.ossc.nimbus.service.crypt;
33 |
34 | import jp.ossc.nimbus.core.ServiceBaseMBean;
35 |
36 | /**
37 | * {@link NullCryptService}のMBeanインタフェース
38 | *
39 | * @author A.Kokubu
40 | * @see NullCryptService
41 | */
42 | public interface NullCryptServiceMBean extends ServiceBaseMBean{
43 | }
44 |
--------------------------------------------------------------------------------
/src/main/java/jp/ossc/nimbus/service/publish/udp/ConnectionFactoryFactoryServiceMBean.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This software is distributed under following license based on modified BSD
3 | * style license.
4 | * ----------------------------------------------------------------------
5 | *
6 | * Copyright 2003 The Nimbus Project. All rights reserved.
7 | *
8 | * Redistribution and use in source and binary forms, with or without
9 | * modification, are permitted provided that the following conditions are met:
10 | *
11 | * 1. Redistributions of source code must retain the above copyright notice,
12 | * this list of conditions and the following disclaimer.
13 | * 2. Redistributions in binary form must reproduce the above copyright notice,
14 | * this list of conditions and the following disclaimer in the documentation
15 | * and/or other materials provided with the distribution.
16 | *
17 | * THIS SOFTWARE IS PROVIDED BY THE NIMBUS PROJECT ``AS IS'' AND ANY EXPRESS
18 | * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
20 | * NO EVENT SHALL THE NIMBUS PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY
21 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
22 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
23 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
24 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 | *
28 | * The views and conclusions contained in the software and documentation are
29 | * those of the authors and should not be interpreted as representing official
30 | * policies, either expressed or implied, of the Nimbus Project.
31 | */
32 | package jp.ossc.nimbus.service.publish.udp;
33 |
34 | /**
35 | * {@link ConnectionFactoryFactoryService}のMBeanインタフェース。
36 | *
37 | * @author m-ishida
38 | *
39 | */
40 | public interface ConnectionFactoryFactoryServiceMBean extends ConnectionFactoryServiceMBean {
41 |
42 | }
43 |
--------------------------------------------------------------------------------
/src/main/java/jp/ossc/nimbus/service/cui/DisplayConstructer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This software is distributed under following license based on modified BSD
3 | * style license.
4 | * ----------------------------------------------------------------------
5 | *
6 | * Copyright 2003 The Nimbus Project. All rights reserved.
7 | *
8 | * Redistribution and use in source and binary forms, with or without
9 | * modification, are permitted provided that the following conditions are met:
10 | *
11 | * 1. Redistributions of source code must retain the above copyright notice,
12 | * this list of conditions and the following disclaimer.
13 | * 2. Redistributions in binary form must reproduce the above copyright notice,
14 | * this list of conditions and the following disclaimer in the documentation
15 | * and/or other materials provided with the distribution.
16 | *
17 | * THIS SOFTWARE IS PROVIDED BY THE NIMBUS PROJECT ``AS IS'' AND ANY EXPRESS
18 | * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
20 | * NO EVENT SHALL THE NIMBUS PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY
21 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
22 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
23 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
24 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 | *
28 | * The views and conclusions contained in the software and documentation are
29 | * those of the authors and should not be interpreted as representing official
30 | * policies, either expressed or implied, of the Nimbus Project.
31 | */
32 | package jp.ossc.nimbus.service.cui;
33 |
34 | /**
35 | * Displayインターフェイス
36 | * @author y-tokuda
37 | * @version 1.00 作成:2003/10/29- y-tokuda
38 | */
39 | public interface TickUnitAdjuster {
40 |
41 | /**
42 | * 軸の目盛りを調節する。
43 | *
44 | * @param xyPlot XYPlot
45 | */
46 | public void adjust(XYPlot xyPlot);
47 | }
48 |
--------------------------------------------------------------------------------
/src/main/java/jp/ossc/nimbus/service/queue/DistributedQueueSelector.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This software is distributed under following license based on modified BSD
3 | * style license.
4 | * ----------------------------------------------------------------------
5 | *
6 | * Copyright 2003 The Nimbus Project. All rights reserved.
7 | *
8 | * Redistribution and use in source and binary forms, with or without
9 | * modification, are permitted provided that the following conditions are met:
10 | *
11 | * 1. Redistributions of source code must retain the above copyright notice,
12 | * this list of conditions and the following disclaimer.
13 | * 2. Redistributions in binary form must reproduce the above copyright notice,
14 | * this list of conditions and the following disclaimer in the documentation
15 | * and/or other materials provided with the distribution.
16 | *
17 | * THIS SOFTWARE IS PROVIDED BY THE NIMBUS PROJECT ``AS IS'' AND ANY EXPRESS
18 | * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
20 | * NO EVENT SHALL THE NIMBUS PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY
21 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
22 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
23 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
24 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 | *
28 | * The views and conclusions contained in the software and documentation are
29 | * those of the authors and should not be interpreted as representing official
30 | * policies, either expressed or implied, of the Nimbus Project.
31 | */
32 | package jp.ossc.nimbus.service.queue;
33 |
34 | /**
35 | * 分散Queueセレクター。
36 | *
37 | * @author M.Takata
38 | */
39 | public interface DistributedQueueSelector{
40 |
41 | public Queue selectQueue(Object obj);
42 |
43 | public Queue[] getQueues();
44 |
45 | public void clear();
46 | }
--------------------------------------------------------------------------------
/src/main/java/jp/ossc/nimbus/service/keepalive/KeepAliveListener.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This software is distributed under following license based on modified BSD
3 | * style license.
4 | * ----------------------------------------------------------------------
5 | *
6 | * Copyright 2003 The Nimbus Project. All rights reserved.
7 | *
8 | * Redistribution and use in source and binary forms, with or without
9 | * modification, are permitted provided that the following conditions are met:
10 | *
11 | * 1. Redistributions of source code must retain the above copyright notice,
12 | * this list of conditions and the following disclaimer.
13 | * 2. Redistributions in binary form must reproduce the above copyright notice,
14 | * this list of conditions and the following disclaimer in the documentation
15 | * and/or other materials provided with the distribution.
16 | *
17 | * THIS SOFTWARE IS PROVIDED BY THE NIMBUS PROJECT ``AS IS'' AND ANY EXPRESS
18 | * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
20 | * NO EVENT SHALL THE NIMBUS PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY
21 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
22 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
23 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
24 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 | *
28 | * The views and conclusions contained in the software and documentation are
29 | * those of the authors and should not be interpreted as representing official
30 | * policies, either expressed or implied, of the Nimbus Project.
31 | */
32 | package jp.ossc.nimbus.service.keepalive;
33 |
34 | /**
35 | * サーバの稼動状態を知らせてもらうリスナーインタフェース。
36 | *
37 | * @author M.Takata
38 | */
39 | public interface KeepAliveListener {
40 |
41 | public void onDead(KeepAliveChecker checker);
42 |
43 | public void onRecover(KeepAliveChecker checker);
44 | }
45 |
--------------------------------------------------------------------------------
/src/main/java/jp/ossc/nimbus/service/publish/MessageListener.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This software is distributed under following license based on modified BSD
3 | * style license.
4 | * ----------------------------------------------------------------------
5 | *
6 | * Copyright 2003 The Nimbus Project. All rights reserved.
7 | *
8 | * Redistribution and use in source and binary forms, with or without
9 | * modification, are permitted provided that the following conditions are met:
10 | *
11 | * 1. Redistributions of source code must retain the above copyright notice,
12 | * this list of conditions and the following disclaimer.
13 | * 2. Redistributions in binary form must reproduce the above copyright notice,
14 | * this list of conditions and the following disclaimer in the documentation
15 | * and/or other materials provided with the distribution.
16 | *
17 | * THIS SOFTWARE IS PROVIDED BY THE NIMBUS PROJECT ``AS IS'' AND ANY EXPRESS
18 | * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
20 | * NO EVENT SHALL THE NIMBUS PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY
21 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
22 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
23 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
24 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 | *
28 | * The views and conclusions contained in the software and documentation are
29 | * those of the authors and should not be interpreted as representing official
30 | * policies, either expressed or implied, of the Nimbus Project.
31 | */
32 | package jp.ossc.nimbus.service.publish;
33 |
34 | /**
35 | * メッセージリスナインタフェース。
36 | *
37 | * @author M.Takata
38 | */
39 | public interface MessageListener{
40 |
41 | /**
42 | * メッセージを受信する。
36 | *
37 | * @author M.Takata
38 | */
39 | public class ServerCloseRequestMessage extends ServerMessage{
40 |
41 | public ServerCloseRequestMessage(){
42 | super(MESSAGE_SERVER_CLOSE_REQ);
43 | }
44 | }
--------------------------------------------------------------------------------
/src/main/java/jp/ossc/nimbus/service/resource/jmstopic/JmsTopicSession.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This software is distributed under following license based on modified BSD
3 | * style license.
4 | * ----------------------------------------------------------------------
5 | *
6 | * Copyright 2003 The Nimbus Project. All rights reserved.
7 | *
8 | * Redistribution and use in source and binary forms, with or without
9 | * modification, are permitted provided that the following conditions are met:
10 | *
11 | * 1. Redistributions of source code must retain the above copyright notice,
12 | * this list of conditions and the following disclaimer.
13 | * 2. Redistributions in binary form must reproduce the above copyright notice,
14 | * this list of conditions and the following disclaimer in the documentation
15 | * and/or other materials provided with the distribution.
16 | *
17 | * THIS SOFTWARE IS PROVIDED BY THE NIMBUS PROJECT ``AS IS'' AND ANY EXPRESS
18 | * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
20 | * NO EVENT SHALL THE NIMBUS PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY
21 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
22 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
23 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
24 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 | *
28 | * The views and conclusions contained in the software and documentation are
29 | * those of the authors and should not be interpreted as representing official
30 | * policies, either expressed or implied, of the Nimbus Project.
31 | */
32 | package jp.ossc.nimbus.service.resource.jmstopic;
33 |
34 | import jp.ossc.nimbus.service.resource.*;
35 |
36 | /**
37 | * JMSトピックセッション
38 | * @author y-tokuda
39 | * @version 1.00 作成:2003/10/27- y-tokuda
36 | *
37 | * @author M.Takata
38 | */
39 | public interface ScheduleTask{
40 |
41 | /**
42 | * タスクを実行する。
43 | *
44 | * @exception Exception タスクの実行に失敗した場合
45 | */
46 | public void run() throws Exception;
47 | }
--------------------------------------------------------------------------------
/src/main/java/jp/ossc/nimbus/service/test/TestReporter.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This software is distributed under following license based on modified BSD
3 | * style license.
4 | * ----------------------------------------------------------------------
5 | *
6 | * Copyright 2003 The Nimbus Project. All rights reserved.
7 | *
8 | * Redistribution and use in source and binary forms, with or without
9 | * modification, are permitted provided that the following conditions are met:
10 | *
11 | * 1. Redistributions of source code must retain the above copyright notice,
12 | * this list of conditions and the following disclaimer.
13 | * 2. Redistributions in binary form must reproduce the above copyright notice,
14 | * this list of conditions and the following disclaimer in the documentation
15 | * and/or other materials provided with the distribution.
16 | *
17 | * THIS SOFTWARE IS PROVIDED BY THE NIMBUS PROJECT ``AS IS'' AND ANY EXPRESS
18 | * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
20 | * NO EVENT SHALL THE NIMBUS PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY
21 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
22 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
23 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
24 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 | *
28 | * The views and conclusions contained in the software and documentation are
29 | * those of the authors and should not be interpreted as representing official
30 | * policies, either expressed or implied, of the Nimbus Project.
31 | */
32 | package jp.ossc.nimbus.service.test;
33 |
34 | /**
35 | * テストレポータ。
36 | *
37 | * @author M.Takata
38 | */
39 | public interface TestReporter{
40 |
41 | /**
42 | * レポートを出力する。
43 | *
44 | * @param controller テストコントローラ
45 | */
46 | public void report(TestController controller);
47 | }
48 |
--------------------------------------------------------------------------------
/src/main/java/jp/ossc/nimbus/service/test/swing/TestCaseControlListener.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This software is distributed under following license based on modified BSD
3 | * style license.
4 | * ----------------------------------------------------------------------
5 | *
6 | * Copyright 2003 The Nimbus Project. All rights reserved.
7 | *
8 | * Redistribution and use in source and binary forms, with or without
9 | * modification, are permitted provided that the following conditions are met:
10 | *
11 | * 1. Redistributions of source code must retain the above copyright notice,
12 | * this list of conditions and the following disclaimer.
13 | * 2. Redistributions in binary form must reproduce the above copyright notice,
14 | * this list of conditions and the following disclaimer in the documentation
15 | * and/or other materials provided with the distribution.
16 | *
17 | * THIS SOFTWARE IS PROVIDED BY THE NIMBUS PROJECT ``AS IS'' AND ANY EXPRESS
18 | * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
20 | * NO EVENT SHALL THE NIMBUS PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY
21 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
22 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
23 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
24 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 | *
28 | * The views and conclusions contained in the software and documentation are
29 | * those of the authors and should not be interpreted as representing official
30 | * policies, either expressed or implied, of the Nimbus Project.
31 | */
32 | package jp.ossc.nimbus.service.test.swing;
33 |
34 | import jp.ossc.nimbus.service.test.TestCase;
35 |
36 | public interface TestCaseControlListener {
37 |
38 | public void startTestCase(TestCase testcase) throws Exception;
39 | public void endTestCase(TestCase testcase) throws Exception;
40 |
41 | }
42 |
--------------------------------------------------------------------------------
/src/main/java/jp/ossc/nimbus/service/beancontrol/BeanFlowAsynchInvokeCallback.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This software is distributed under following license based on modified BSD
3 | * style license.
4 | * ----------------------------------------------------------------------
5 | *
6 | * Copyright 2003 The Nimbus Project. All rights reserved.
7 | *
8 | * Redistribution and use in source and binary forms, with or without
9 | * modification, are permitted provided that the following conditions are met:
10 | *
11 | * 1. Redistributions of source code must retain the above copyright notice,
12 | * this list of conditions and the following disclaimer.
13 | * 2. Redistributions in binary form must reproduce the above copyright notice,
14 | * this list of conditions and the following disclaimer in the documentation
15 | * and/or other materials provided with the distribution.
16 | *
17 | * THIS SOFTWARE IS PROVIDED BY THE NIMBUS PROJECT ``AS IS'' AND ANY EXPRESS
18 | * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
20 | * NO EVENT SHALL THE NIMBUS PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY
21 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
22 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
23 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
24 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 | *
28 | * The views and conclusions contained in the software and documentation are
29 | * those of the authors and should not be interpreted as representing official
30 | * policies, either expressed or implied, of the Nimbus Project.
31 | */
32 | package jp.ossc.nimbus.service.beancontrol;
33 |
34 | import java.rmi.*;
35 |
36 | /**
37 | * 業務フロー非同期実行コールバック。
38 | *
39 | * @author M.Takata
40 | */
41 | public interface BeanFlowAsynchInvokeCallback extends Remote{
42 |
43 | public void reply(Object output, Throwable th) throws RemoteException;
44 | }
--------------------------------------------------------------------------------
/src/main/java/jp/ossc/nimbus/service/test/TestActionEstimation.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This software is distributed under following license based on modified BSD
3 | * style license.
4 | * ----------------------------------------------------------------------
5 | *
6 | * Copyright 2003 The Nimbus Project. All rights reserved.
7 | *
8 | * Redistribution and use in source and binary forms, with or without
9 | * modification, are permitted provided that the following conditions are met:
10 | *
11 | * 1. Redistributions of source code must retain the above copyright notice,
12 | * this list of conditions and the following disclaimer.
13 | * 2. Redistributions in binary form must reproduce the above copyright notice,
14 | * this list of conditions and the following disclaimer in the documentation
15 | * and/or other materials provided with the distribution.
16 | *
17 | * THIS SOFTWARE IS PROVIDED BY THE NIMBUS PROJECT ``AS IS'' AND ANY EXPRESS
18 | * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
20 | * NO EVENT SHALL THE NIMBUS PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY
21 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
22 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
23 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
24 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 | *
28 | * The views and conclusions contained in the software and documentation are
29 | * those of the authors and should not be interpreted as representing official
30 | * policies, either expressed or implied, of the Nimbus Project.
31 | */
32 | package jp.ossc.nimbus.service.test;
33 |
34 | /**
35 | * テストアクション見積もり。
36 | *
37 | * @author M.Ishida
38 | */
39 | public interface TestActionEstimation {
40 |
41 | /**
42 | * このアクションのリソース定義を作成する際の想定コストを取得する。
43 | *
44 | * @return 想定コスト
45 | */
46 | public double getExpectedCost();
47 | }
48 |
--------------------------------------------------------------------------------
/src/main/java/jp/ossc/nimbus/service/cache/KeyCachedReference.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This software is distributed under following license based on modified BSD
3 | * style license.
4 | * ----------------------------------------------------------------------
5 | *
6 | * Copyright 2003 The Nimbus Project. All rights reserved.
7 | *
8 | * Redistribution and use in source and binary forms, with or without
9 | * modification, are permitted provided that the following conditions are met:
10 | *
11 | * 1. Redistributions of source code must retain the above copyright notice,
12 | * this list of conditions and the following disclaimer.
13 | * 2. Redistributions in binary form must reproduce the above copyright notice,
14 | * this list of conditions and the following disclaimer in the documentation
15 | * and/or other materials provided with the distribution.
16 | *
17 | * THIS SOFTWARE IS PROVIDED BY THE NIMBUS PROJECT ``AS IS'' AND ANY EXPRESS
18 | * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
20 | * NO EVENT SHALL THE NIMBUS PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY
21 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
22 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
23 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
24 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 | *
28 | * The views and conclusions contained in the software and documentation are
29 | * those of the authors and should not be interpreted as representing official
30 | * policies, either expressed or implied, of the Nimbus Project.
31 | */
32 | package jp.ossc.nimbus.service.cache;
33 |
34 | /**
35 | * キー付きキャッシュ参照インタフェース。
36 | *
37 | * @author M.Takata
38 | */
39 | public interface KeyCachedReference extends CachedReference{
40 |
41 | /**
42 | * キャッシュのキー情報を取得する。
43 | *
44 | * @return キャッシュのキー
45 | */
46 | public Object getKey();
47 | }
--------------------------------------------------------------------------------
/src/main/java/jp/ossc/nimbus/service/performance/ResourceUsage.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This software is distributed under following license based on modified BSD
3 | * style license.
4 | * ----------------------------------------------------------------------
5 | *
6 | * Copyright 2003 The Nimbus Project. All rights reserved.
7 | *
8 | * Redistribution and use in source and binary forms, with or without
9 | * modification, are permitted provided that the following conditions are met:
10 | *
11 | * 1. Redistributions of source code must retain the above copyright notice,
12 | * this list of conditions and the following disclaimer.
13 | * 2. Redistributions in binary form must reproduce the above copyright notice,
14 | * this list of conditions and the following disclaimer in the documentation
15 | * and/or other materials provided with the distribution.
16 | *
17 | * THIS SOFTWARE IS PROVIDED BY THE NIMBUS PROJECT ``AS IS'' AND ANY EXPRESS
18 | * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
20 | * NO EVENT SHALL THE NIMBUS PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY
21 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
22 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
23 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
24 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 | *
28 | * The views and conclusions contained in the software and documentation are
29 | * those of the authors and should not be interpreted as representing official
30 | * policies, either expressed or implied, of the Nimbus Project.
31 | */
32 | package jp.ossc.nimbus.service.performance;
33 |
34 | /**
35 | * パフォーマンスに関わるリソースの利用量。
36 | *
37 | * @author M.Takata
38 | */
39 | public interface ResourceUsage{
40 |
41 | /**
42 | * パフォーマンスに関わるリソースの利用量を取得する。
43 | *
44 | * @return リソース利用量
45 | */
46 | public Comparable getUsage();
47 | }
48 |
--------------------------------------------------------------------------------
/src/main/java/jp/ossc/nimbus/service/context/ServerInfoServiceMBean.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This software is distributed under following license based on modified BSD
3 | * style license.
4 | * ----------------------------------------------------------------------
5 | *
6 | * Copyright 2003 The Nimbus Project. All rights reserved.
7 | *
8 | * Redistribution and use in source and binary forms, with or without
9 | * modification, are permitted provided that the following conditions are met:
10 | *
11 | * 1. Redistributions of source code must retain the above copyright notice,
12 | * this list of conditions and the following disclaimer.
13 | * 2. Redistributions in binary form must reproduce the above copyright notice,
14 | * this list of conditions and the following disclaimer in the documentation
15 | * and/or other materials provided with the distribution.
16 | *
17 | * THIS SOFTWARE IS PROVIDED BY THE NIMBUS PROJECT ``AS IS'' AND ANY EXPRESS
18 | * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
20 | * NO EVENT SHALL THE NIMBUS PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY
21 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
22 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
23 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
24 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 | *
28 | * The views and conclusions contained in the software and documentation are
29 | * those of the authors and should not be interpreted as representing official
30 | * policies, either expressed or implied, of the Nimbus Project.
31 | */
32 | package jp.ossc.nimbus.service.context;
33 |
34 | /**
35 | * {@link ServerInfoService}のMBeanインタフェース。
36 | *
37 | * @author M.Takata
38 | * @see ServerInfoService
39 | */
40 | public interface ServerInfoServiceMBean
41 | extends DefaultContextServiceMBean, ServerInfo {
42 |
43 | public String listSystemProperties();
44 | }
45 |
--------------------------------------------------------------------------------
/src/main/java/jp/ossc/nimbus/service/journal/editor/ObjectKeyMapEditorServiceMBean.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This software is distributed under following license based on modified BSD
3 | * style license.
4 | * ----------------------------------------------------------------------
5 | *
6 | * Copyright 2003 The Nimbus Project. All rights reserved.
7 | *
8 | * Redistribution and use in source and binary forms, with or without
9 | * modification, are permitted provided that the following conditions are met:
10 | *
11 | * 1. Redistributions of source code must retain the above copyright notice,
12 | * this list of conditions and the following disclaimer.
13 | * 2. Redistributions in binary form must reproduce the above copyright notice,
14 | * this list of conditions and the following disclaimer in the documentation
15 | * and/or other materials provided with the distribution.
16 | *
17 | * THIS SOFTWARE IS PROVIDED BY THE NIMBUS PROJECT ``AS IS'' AND ANY EXPRESS
18 | * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
20 | * NO EVENT SHALL THE NIMBUS PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY
21 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
22 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
23 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
24 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 | *
28 | * The views and conclusions contained in the software and documentation are
29 | * those of the authors and should not be interpreted as representing official
30 | * policies, either expressed or implied, of the Nimbus Project.
31 | */
32 | // パッケージ
33 | package jp.ossc.nimbus.service.journal.editor;
34 | // インポート
35 |
36 | /**
37 | * OBject型エディタサービスMBeanインターフェイス
38 | * @version $Name: $
39 | * @author H.Nakano
40 | * @since 1.0
41 | */
42 | public interface ObjectKeyMapEditorServiceMBean
43 | extends ImmutableJournalEditorServiceBaseMBean {
44 |
45 | }
46 |
--------------------------------------------------------------------------------
/src/main/java/jp/ossc/nimbus/service/cache/RemoveOverflowActionServiceMBean.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This software is distributed under following license based on modified BSD
3 | * style license.
4 | * ----------------------------------------------------------------------
5 | *
6 | * Copyright 2003 The Nimbus Project. All rights reserved.
7 | *
8 | * Redistribution and use in source and binary forms, with or without
9 | * modification, are permitted provided that the following conditions are met:
10 | *
11 | * 1. Redistributions of source code must retain the above copyright notice,
12 | * this list of conditions and the following disclaimer.
13 | * 2. Redistributions in binary form must reproduce the above copyright notice,
14 | * this list of conditions and the following disclaimer in the documentation
15 | * and/or other materials provided with the distribution.
16 | *
17 | * THIS SOFTWARE IS PROVIDED BY THE NIMBUS PROJECT ``AS IS'' AND ANY EXPRESS
18 | * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
20 | * NO EVENT SHALL THE NIMBUS PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY
21 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
22 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
23 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
24 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 | *
28 | * The views and conclusions contained in the software and documentation are
29 | * those of the authors and should not be interpreted as representing official
30 | * policies, either expressed or implied, of the Nimbus Project.
31 | */
32 | package jp.ossc.nimbus.service.cache;
33 |
34 | import jp.ossc.nimbus.core.ServiceBaseMBean;
35 |
36 | /**
37 | * {@link RemoveOverflowActionService}のMBeanインタフェース
38 | *
39 | * @author M.Takata
40 | * @see RemoveOverflowActionService
41 | */
42 | public interface RemoveOverflowActionServiceMBean extends ServiceBaseMBean{
43 | }
44 |
--------------------------------------------------------------------------------
12 |
13 |
14 |
--------------------------------------------------------------------------------
/src/test/resources/jp/ossc/nimbus/core/resources/nimbus-service12.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/src/main/java/jp/ossc/nimbus/service/writer/jms/package.html:
--------------------------------------------------------------------------------
1 |
4 |
5 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/src/main/java/jp/ossc/nimbus/service/graph/package.html:
--------------------------------------------------------------------------------
1 |
4 |
5 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/.settings/org.eclipse.core.resources.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | encoding//src/main/java=UTF-8
3 | encoding//src/main/java/jp/ossc/nimbus/beans/dataset/DataSet.java=UTF-8
4 | encoding//src/main/java/jp/ossc/nimbus/beans/dataset/Record.java=UTF-8
5 | encoding//src/main/java/jp/ossc/nimbus/beans/dataset/RecordSchema.java=UTF-8
6 | encoding//src/main/resources=UTF-8
7 | encoding//src/test/java=UTF-8
8 | encoding//src/test/resources=UTF-8
9 | encoding/
12 |
13 |
14 |
--------------------------------------------------------------------------------
/src/main/java/jp/ossc/nimbus/service/repository/package.html:
--------------------------------------------------------------------------------
1 |
4 |
5 |
12 | 登録する先が事なる場合でも、このインタフェースによって隠蔽する事で、登録先を意識せずにオブジェクトの管理を行う事ができます。
13 |
14 |
15 |
--------------------------------------------------------------------------------
/src/main/java/jp/ossc/nimbus/service/writer/mail/package.html:
--------------------------------------------------------------------------------
1 |
4 |
5 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/src/test/resources/jp/ossc/nimbus/core/resources/nimbus-service4.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
12 | バリデータは、通常再入可能です。従って、バリデータのインスタンスは再利用可能です。
13 |
14 |
15 |
--------------------------------------------------------------------------------
/src/main/java/jp/ossc/nimbus/service/sequence/package.html:
--------------------------------------------------------------------------------
1 |
4 |
5 |
12 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/src/test/resources/jp/ossc/nimbus/service/aop/interceptor/servlet/service-definition_Invalid.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
12 | Converterは、本来ユーティリティとして位置づけられてますが、他のサービスとの連携が必要な複雑な実装をサービスとして実装しています。
13 |
14 |
15 |
--------------------------------------------------------------------------------
/src/test/resources/jp/ossc/nimbus/service/http/httpclient/service-conv.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
12 | Validatorは、本来ユーティリティとして位置づけられてますが、他のサービスとの連携が必要な複雑な実装をサービスとして実装しています。
13 |
14 |
15 |
--------------------------------------------------------------------------------
/src/main/java/jp/ossc/nimbus/service/semaphore/package.html:
--------------------------------------------------------------------------------
1 |
4 |
5 |
13 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/src/main/java/jp/ossc/nimbus/service/writer/log4j/package.html:
--------------------------------------------------------------------------------
1 |
4 |
5 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/src/test/java/jp/ossc/nimbus/service/log/def/logserviceTest.def:
--------------------------------------------------------------------------------
1 | TST000001,MESSAGE_1_@0,55,CATEGORY1
2 | TST000002,MESSAGE_2_@0_@1_@2_@3_@4,55,CATEGORY1
3 | TST000003,MESSAGE_3,50,CATEGORY1
4 | TST000004,MESSAGE_4,51,CATEGORY1
5 | TST000005,MESSAGE_5,100,CATEGORY1
6 | TST000006,MESSAGE_6,101,CATEGORY1
7 | TST000007,MESSAGE_7,150,CATEGORY1
8 | TST000008,MESSAGE_8,151,CATEGORY1
9 | TST000009,MESSAGE_9,200,CATEGORY1
10 | TST000010,MESSAGE_10,201,CATEGORY1
11 | TST999998,==========START==========,999999,CATEGORY1
12 | TST999999,==========END==========,999999,CATEGORY1
--------------------------------------------------------------------------------
/src/test/resources/jp/ossc/nimbus/service/log/def/logserviceTest.def:
--------------------------------------------------------------------------------
1 | TST000001,MESSAGE_1_@0,55,CATEGORY1
2 | TST000002,MESSAGE_2_@0_@1_@2_@3_@4,55,CATEGORY1
3 | TST000003,MESSAGE_3,50,CATEGORY1
4 | TST000004,MESSAGE_4,51,CATEGORY1
5 | TST000005,MESSAGE_5,100,CATEGORY1
6 | TST000006,MESSAGE_6,101,CATEGORY1
7 | TST000007,MESSAGE_7,150,CATEGORY1
8 | TST000008,MESSAGE_8,151,CATEGORY1
9 | TST000009,MESSAGE_9,200,CATEGORY1
10 | TST000010,MESSAGE_10,201,CATEGORY1
11 | TST999998,==========START==========,999999,CATEGORY1
12 | TST999999,==========END==========,999999,CATEGORY1
--------------------------------------------------------------------------------
/src/main/java/jp/ossc/nimbus/daemon/package.html:
--------------------------------------------------------------------------------
1 |
4 |
5 |
13 | そのため、スレッドAPIの使用には、テクニックを要求されます。
14 | Nimbusでは、そのような煩雑なスレッドの操作を簡単に行えるように、このライブラリ
15 | を提供しています。
16 |
17 |
18 |
--------------------------------------------------------------------------------
/src/main/java/jp/ossc/nimbus/service/http/httpclient/package.html:
--------------------------------------------------------------------------------
1 |
4 |
5 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/src/test/resources/jp/ossc/nimbus/service/http/httpclient/help_output.txt:
--------------------------------------------------------------------------------
1 | POST http://10.250.1.12:8180/cds/user_contents/web/html/tilettl_help_actcusemldelaccept_desc.html HTTP/1.1
2 | Content-Type: application/xml;charset=Shift_JIS
3 | User-Agent: Jakarta Commons-HttpClient/3.1
4 | Host: 10.250.1.12:8180
5 | Proxy-Connection: Keep-Alive
6 | Content-Length: 241
7 |
8 |
15 | 従って、バッチフレームワークとして使用可能なレベルになっています。
16 |
17 |
18 |
--------------------------------------------------------------------------------
/src/main/java/jp/ossc/nimbus/util/converter/package.html:
--------------------------------------------------------------------------------
1 |
4 |
5 |
12 | コンバータは、通常再入可能です。従って、コンバータのインスタンスは再利用可能です。
13 | シングルトンなコンバータのインスタンスを取得できるようにConvertersクラスを提供しています。
14 |
15 |
16 |
--------------------------------------------------------------------------------
/src/main/resources/jp/ossc/nimbus/service/test/TestSwingRunnerUsage.txt:
--------------------------------------------------------------------------------
1 | コマンド使用方法:
2 | java jp.ossc.nimbus.service.test.TestSwingRunner [options] [service paths]
3 |
4 | [options]
5 |
6 | [-validate]
7 | サービス定義をDTDで検証する。
8 |
9 | [-servicedir]
10 | ロードするサービス定義ファイルのディレクトリとサービス定義ファイルを特定するフィルタを指定する。
11 |
12 | [-postservicedir]
13 | 最後にロードするサービス定義ファイルのディレクトリとサービス定義ファイルを特定するフィルタを指定する。
14 |
15 | [-help]
16 | ヘルプを表示します。
17 |
18 | [service paths]
19 | ロードするサービス定義ファイルのパス
20 |
21 | 使用例 :
22 | java -classpath nimbus.jar jp.ossc.nimbus.service.test.TestSwingRunner service-definition.xml
23 |
--------------------------------------------------------------------------------
/src/main/java/jp/ossc/nimbus/service/journal/editorfinder/package.html:
--------------------------------------------------------------------------------
1 |
4 |
5 |
12 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/src/test/resources/jp/ossc/nimbus/core/resources/nimbus-service5.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
13 | その概念を抽象化したインタフェースが、Interceptorです。
14 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/src/test/resources/jp/ossc/nimbus/service/aop/interceptor/servlet/service-definitionTestdef.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
12 | その「特定の処理」の先には、「本来の処理」があります。
13 | そのアスペクトされた「本来の処理」を呼び出すという概念を抽象化したインタフェースが、Invokerです。
14 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/.project:
--------------------------------------------------------------------------------
1 |
2 |
12 | また、その場所は、一般的にスコープと呼ばれる概念で、ライフサイクルが異なったり、意味付けが異なったりします。
13 | しかしながら、アプリケーションから見ると「一意なキーに関連付けられたオブジェクトを保持する場所」という概念だけは、一定です。
14 | そこで、その概念を抽象化したインタフェースが、Contextです。
15 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/src/main/java/jp/ossc/nimbus/service/aop/javassist/package.html:
--------------------------------------------------------------------------------
1 |
4 |
5 |
14 | クラスファイルのバイトコード操作には、アスペクト指向プログラミングのオープンソースライブラリ
15 | Javassist
16 | を使います。
17 |
18 |
19 |
--------------------------------------------------------------------------------
/src/test/resources/jp/ossc/nimbus/service/performance/nimbus-service.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
13 | 業務フローの定義は、構造化言語であるXMLで行います。
14 | そこでは、通常フローチャートで記述可能な、ステップ単位での処理、条件分岐、繰り返し処理などが可能です。
15 | また、Java Beanの操作を主眼に置いているため、様々なBeanのプロパティ操作によるインジェクションが可能です。
16 | さらに、J2EEアプリケーションサーバ上では、JTAを使ったトランザクション制御もサポートします。
17 | (詳細は、ここを参照)
18 |
19 |
20 |
--------------------------------------------------------------------------------
/src/main/java/jp/ossc/nimbus/service/journal/editor/package.html:
--------------------------------------------------------------------------------
1 |
4 |
5 |
12 | その際、渡したオブジェクト毎に違うフォーマットで出力したくなるかもしれません。
13 | 例えば、文字列はそのままだけど、java.util.Dateオブジェクトは一定の日付フォーマットで出力したいとか。
14 | 例外オブジェクトならば、スタックトレースを出力したいとか。
15 | そのようなオブジェクト毎の出力編集を行う概念を抽象化したインタフェースが、JournalEditorです。
16 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/src/main/resources/jp/ossc/nimbus/beans/dataset/DataSetCodeGeneratorUsage.txt:
--------------------------------------------------------------------------------
1 | コマンド使用方法:
2 | java jp.ossc.nimbus.beans.dataset.DataSetCodeGenerator [options] [definition files]
3 |
4 | [options]
5 |
6 | [-validate true|false]
7 | 定義ファイルのXMLバリデーションを行うかどうかを指定します。
8 | このオプションの指定がない場合は、バリデーションを行います。
9 |
10 | [-encoding encoding]
11 | 生成するソースファイルの文字コードを指定します。
12 | このオプションの指定がない場合は、OSの文字コードに依存します。
13 |
14 | [-d directory]
15 | 出力先のディレクトリを指定します。
16 | このオプションの指定がない場合は、実行時のカレントに出力します。
17 |
18 | [-v]
19 | 実行の詳細を表示します。
20 |
21 | [-help]
22 | ヘルプを表示します。
23 |
24 | [definition files]
25 | 定義ファイル名を指定します。
26 | スペース区切りで複数指定可能です。
27 |
28 | 使用例 :
29 | java -classpath classes;lib/nimbus.jar jp.ossc.nimbus.beans.dataset.DataSetCodeGenerator dataset-definition.xml
30 |
--------------------------------------------------------------------------------
/src/test/resources/jp/ossc/nimbus/service/jndi/nimbus-service.xml:
--------------------------------------------------------------------------------
1 |
2 |
12 | Nimbusでは、このような汎用的なデータ構造を表現するクラスを、その時々に応じてクラスを実装して開発するコストを削減するために、データ構造を動的に定義して、汎用的なデータ構造を表現できる機能を提供します。
13 | 汎用データセットでは、データ構造を文字列で指定する事で、データ構造をプログラミングする事が可能となります。
14 | データ構造の定義では、通常、名前、型の情報がありますが、汎用データセットでは、データ構造の定義に様々な付加的情報を与える事が可能です。また、データ構造の定義情報自体も拡張可能です。
15 |
16 |
17 |
--------------------------------------------------------------------------------
/src/test/java/jp/ossc/nimbus/service/aop/interceptor/servlet/MockFilterChain.javapp_sapi:
--------------------------------------------------------------------------------
1 | package jp.ossc.nimbus.service.aop.interceptor.servlet;
2 |
3 | import java.io.IOException;
4 |
5 | @START
12 | FIFOの概念はもちろん、マルチスレッドによる取得待ちに対して、取得待ち順序通りにキューデータを渡していきます。
13 |
15 |
17 | その際に、Queueに詰められた事を検知して、非同期に任意の処理を行う機能が必要になります。
18 | そのような非同期処理コンテナ機能を実装したQueueHandlerContainerServiceを提供します。
19 | また、非同期処理コンテナ上で「任意の処理を行う」機能を抽象化したインタフェースが、QueueHandlerです。
20 |
21 |
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Nimbusとは
2 |
3 | Nimbus は、SIerによるSIerのためのSI部品ライブラリです。
4 |
5 | 部品は、サービスと呼ばれるライフサイクルを持ったJavaアプリケーションで、JMXのMBeanとして実装する事で、JMXからも管理できます。
6 |
7 | 基盤としてDIコンテナを持ちます。 XMLの定義ファイルによって、ホスティングするサービスを定義し、サービス間の依存関係や、サービスへのインジェクションを行います。
8 |
9 | # 機能一覧
10 |
11 | [こちら](https://osdn.net/projects/nimbus/wiki/FunctionList "機能一覧")
12 |
13 | # インストール
14 |
15 | jarをクラスパス上に配置して利用します。
16 |
17 | # 使用方法
18 |
19 | サービス定義XMLファイルを記述して、Nimbusに読み込ませる事で、サービスをホスティングし、利用可能な状態にします。詳細は、Wikiを参照。
20 |
21 | # JavaDoc
22 |
23 | [こちら](https://nimbus-org.github.io/gh-pages/javadoc/1.2.5/index.html "JavaDoc")
24 |
25 |
26 | # ドキュメント
27 |
28 | [こちら](https://nimbus-org.github.io/gh-pages/documents/index.html "ドキュメント")
29 |
30 | # サンプル
31 |
32 | [こちら](https://github.com/nimbus-org/nimbus-sample "Nimbusサンプル")
33 |
34 | # FAQ
35 |
36 | [こちら](https://osdn.net/projects/nimbus/wiki/FAQ "FAQ")
37 |
38 |
--------------------------------------------------------------------------------
/src/test/resources/jp/ossc/nimbus/service/sequence/nimbus-service.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
12 |
13 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/src/main/java/jp/ossc/nimbus/service/converter/CodeMasterConverterServiceMBean.java:
--------------------------------------------------------------------------------
1 | package jp.ossc.nimbus.service.converter;
2 |
3 | import jp.ossc.nimbus.core.*;
4 |
5 | /**
6 | * {@link CodeMasterConverterService}サービスMBeanインタフェース。
13 | また、接続したJNDIコンテキストからリモートオブジェクトを取得するのは、通常は通信コストがかかるため、処理性能に影響します。
14 | この問題を解決するために、JNDIコンテキストから取得したリモートオブジェクトを保持しておいて、毎回取得しないでも済むように対策したりします。
15 |
17 | そこで、取得方法やパラメータの設定等を、サービスの実装や属性設定に置き換える事で、
18 | JNDIからリモートオブジェクトを取得するという簡潔な手段だけを抽象化したインタフェースが、
19 | JndiFinderです。
20 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/src/main/java/jp/ossc/nimbus/service/ejb/package.html:
--------------------------------------------------------------------------------
1 |
4 |
5 |
12 |
13 |
19 | また、毎回JNDIコンテキストからEJBホームオブジェクトをlookupすると、
20 | そのたびにJNDIサーバとの通信が発生するため、通常はEJBホームオブジェクトをキャッシュする仕組み等を考える必要もある。
21 |
24 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/src/test/java/jp/ossc/nimbus/recset/RecordSetTest.java:
--------------------------------------------------------------------------------
1 | // パッケージ
2 | package jp.ossc.nimbus.recset;
3 | //インポート
4 |
5 | import junit.framework.TestCase;
6 |
7 | /**
8 | * ファイル操作クラス
12 |
13 |
19 | 1から4の要件を満たすべく抽象化されたインタフェースが、MessageRecordFactoryです。
また、動的に変わる部分は、実運用上マスクする必要がある場合があります。
20 | また、5の要件を満たすべく抽象化されたインタフェースが、MessageRecordとMessageRecordOperatorです。
21 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/src/main/java/jp/ossc/nimbus/service/writer/package.html:
--------------------------------------------------------------------------------
1 |
4 |
5 |
12 |
14 | こういう順番で、この項目とこの項目を出力したいといった感じです。
15 | この概念を抽象化したインタフェースがWritableRecordです。
16 | ここで、任意のオブジェクトを出力するためには、任意のオブジェクトを入力として受け取って、
17 | 特定のフォーマットに従ったWritableRecordに変換する必要があります。
18 | この概念を抽象化したインタフェースがWritableRecordFactoryです。
19 |
21 | その概念を抽象化したインタフェースがMessageWriterです。
22 |
24 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/src/test/resources/jp/ossc/nimbus/service/resource/jmsqueue/nimbus-service.xml:
--------------------------------------------------------------------------------
1 |
2 |
12 | 従来のJ2EEのサーブレットフィルタでは、web.xmlで初期化パラメータを渡す程度しかできず、フィルタに細かな設定を行う事が困難でした。
13 | Nimbusでは、InterceptorChainCallFilterを使って、
14 | サーブレットフィルタの役割をNimbusアスペクトのInterceptorに委譲する事で、多機能なインジェクション、Nimbusサービスとの親和性を得る事ができます。
15 | このパッケージのInterceptorは、InterceptorChainCallFilterを使って、サーブレットフィルタに挟み込まれる事を前提としており、抽象サービスServletFilterInterceptorServiceを継承しています。
16 | そのため、サーブレットフィルタと同様に、インターセプタ毎にリクエストパスに対してマッピングする事が可能です。
17 | 更に、サーブレットフィルタのような中途半端な正規表現ではなく、java.util.regexを使った正規表現によるパスマッピングが可能です。
18 |
19 |
20 |
--------------------------------------------------------------------------------
/src/test/resources/jp/ossc/nimbus/service/properties/nimbus-service.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
12 | クライアント側のプロキシと、サーバ側のプロキシが存在し、各プロキシには、インターセプタを挟み込む機能を持ちます。
13 | また、クライアントプロキシには、サーバプロキシを呼び出すためのInvoker機能があり、自由に差し替える事ができます。
14 | 同様に、サーバプロキシにも、呼び出し対象のサービスを呼び出すためのInvoker機能があり、自由に差し替える事ができます。
15 |
17 | サーバプロキシとしては、以下のものを用意してます。
18 |
19 |
22 | また、プロキシのInvokerについては、プロキシサービス用のInvokerサービスを参照して下さい。
23 |
24 |
25 |
--------------------------------------------------------------------------------
/src/test/resources/jp/ossc/nimbus/service/message/nimbus-service.xml:
--------------------------------------------------------------------------------
1 |
2 |
13 | Nimbusのキャッシュは、あるオブジェクトを一時的に保持しておく機能を抽象化したインタフェースです。
14 | オブジェクトを集合的にキャッシュするCacheインタフェースと、
15 | オブジェクトをキーに関連付けてキャッシュするCacheMapインタフェースがあります。
16 |
19 | この事をNimbusのキャッシュでは「あふれ」と呼び、あふれの制御を行う概念を抽象化したインタフェースがOverflowControllerです。
20 |
22 |
23 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/src/main/java/jp/ossc/nimbus/service/connection/package.html:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
7 |
12 | java.sql.DriverManagerを使って取得する方法と、javax.sql.DataSourceを使って取得する方法です。
13 |
15 | そのため、ソース内にDBMSに接続するためのプロパティ等を直接コーディングするか、自前で外出しする仕組みを作る必要があります。
16 |
18 | そのため、前者のような、DBMSに接続するためのプロパティ等を外出しする仕組みを自前で作る必要はありません。
19 | しかし、分散環境対応などのために、DataSourceの取得は、JNDIを経由します。
20 | JNDIの接続には、接続先のJNDIサーバ等の接続情報を引数で指定する必要があります。(jndi.propertiesで設定する方法もありますが、その場合接続先が1つに限られるので複数のJNDIサーバに接続する場合などに問題になります)
21 |
23 | そこで、取得方法やパラメータの設定等を、サービスの実装や属性設定に置き換える事で、コネクションを取得するという概念だけを抽出したConnectionFactoryインタフェースを定義しました。
24 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/src/test/resources/jp/ossc/nimbus/service/context/nimbus-service3.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
12 |
14 | サービスは、Java Beansで言うプロパティの設定、サービス間の依存関係の設定を行う事ができる。
15 | また、「生成」、「起動」、「停止」、「破棄」の4つの状態遷移を制御する事ができる。サービスはJ2EEのJMX(Java Management Extension)に対応しており、JMX管理リソースとして制御可能である。
16 |
18 | サービス管理は、ネーミングサービス機能を持ち、サービスの名前を指定する事で、ホスティングされたサービスを提供する。
19 | また、サービス管理は、サービスをグルーピングする役割を持ち、サービス基盤上に複数のサービス管理を起動する事ができる。
20 |
22 | サービスローダの実装によって、定義の方法は入れ替え可能であるが、デフォルトの実装としては、XMLファイルによるサービス定義の読み込みをサポートしている。
23 | サービス定義XMLの詳細は、サービス定義ファイルDTDを参照。
24 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/src/main/java/jp/ossc/nimbus/service/jms/package.html:
--------------------------------------------------------------------------------
1 |
4 |
5 |
16 | NimbusのJMSラップサービスは、これらのパラメータをサービスの属性で設定する事によって、
17 | アプリケーションがパラメータを意識する事なく、定型的にJMSを利用できるようにラップしたものです。
18 |
20 |
22 |
24 |
26 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/src/main/java/jp/ossc/nimbus/service/journal/package.html:
--------------------------------------------------------------------------------
1 |
4 |
5 |
12 | ジャーナルには、
13 |
14 |
20 | などのある程度決まった情報を取得します。
21 | 但し、入出力情報はシステムや取得する層によって異なり、出力するフォーマットや媒体も様々です。
22 |
24 | その際、渡したオブジェクト毎に違うフォーマットで出力したくなるかもしれません。
25 | 例えば、文字列はそのままだけど、java.util.Dateオブジェクトは一定の日付フォーマットで出力したいとか。
26 | 例外オブジェクトならば、スタックトレースを出力したいとか。
27 | そのようなオブジェクト毎の出力編集を行う概念を抽象化したインタフェースが、JournalEditorです。
28 | また、オブジェクト毎に出力編集を行うJournalEditorをマッピングする機能を抽象化したインタフェースが、EditorFinderです。
29 |
31 |
33 |
35 |
36 |
37 |
--------------------------------------------------------------------------------
/src/main/java/jp/ossc/nimbus/service/trade/MovingAvgCalc.java:
--------------------------------------------------------------------------------
1 | package jp.ossc.nimbus.service.trade;
2 |
3 | import java.util.ArrayList;
4 | import java.util.HashMap;
5 | import java.util.Iterator;
6 | import java.util.List;
7 | import java.util.Map;
8 | import java.util.Set;
9 |
10 | import jp.ossc.nimbus.service.trade.TradeSignCalcUtil.PeriodicPrice;
11 |
12 | public class MovingAvgCalc implements IndexCalc{
13 |
14 | @Override
15 | public Map
15 | しかしながら、その実装クラスは、公開されておらず、実装されているクラスもわずかです。そこで、Nimbusでは、java.beans.PropertyEditorインタフェースの実装クラスを拡充して提供します。
16 | また、それらの実装クラスは、Nimbusのサービス定義やBeanFlow定義のインジェクションで使用します。
19 | BeanUtilsでは、プロパティにアクセスする際に、インタプリタ的にプロパティ文字列を解析して、リフレクションを利用してプロパティにアクセスします。
20 | しかしながら、実際の用途としては、ある特定のプロパティに対して、プログラムが動作する度にアクセスするため、インタプリタ的に毎回プロパティ文字列の解析を行うのは無駄であるし、その後のリフレクションメソッドを毎回検索するのも無駄になってしまいます。
21 | これは、staticに簡単に呼び出せる利便性を追求した一つの形ではありますが、エンタープライズシステムを構築するプログラマとしては、性能への悪影響を考えざる得ません。
22 | そこで、Nimbusでは、プロパティ文字列の解析をプリコンパイル的に行い、更にリフレクションメソッドをキャッシュすることで、性能への影響を低減させたプロパティ汎用アクセス機能を提供します。
23 | また、Java Beans規約の拡張という意味でも、BeanUtilsよりも拡張したアクセス機能を持っています。
24 | さらに、オーバーロードメソッドの呼び出しや、publicなインタフェースを実装したpublicでないクラスのプロパティへのアクセスなど、細かな点が考慮されています。
25 |
26 |
27 |
--------------------------------------------------------------------------------
/src/main/java/jp/ossc/nimbus/service/writer/CryptElement.java:
--------------------------------------------------------------------------------
1 | package jp.ossc.nimbus.service.writer;
2 |
3 | import jp.ossc.nimbus.service.crypt.Crypt;
4 |
5 | /**
6 | * 任意の文字列を暗号化する{@link WritableElement}実装クラス。
55 | *
56 | * @return この要素(文字列)を暗号化したもの
57 | */
58 | public Object toObject(){
59 | return toString();
60 | }
61 |
62 | }
63 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | BSD 3-Clause License
2 |
3 | Copyright (c) 2018, nimbus-org
4 | All rights reserved.
5 |
6 | Redistribution and use in source and binary forms, with or without
7 | modification, are permitted provided that the following conditions are met:
8 |
9 | * Redistributions of source code must retain the above copyright notice, this
10 | list of conditions and the following disclaimer.
11 |
12 | * Redistributions in binary form must reproduce the above copyright notice,
13 | this list of conditions and the following disclaimer in the documentation
14 | and/or other materials provided with the distribution.
15 |
16 | * Neither the name of the copyright holder nor the names of its
17 | contributors may be used to endorse or promote products derived from
18 | this software without specific prior written permission.
19 |
20 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
24 | FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 | DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26 | SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
28 | OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 |
--------------------------------------------------------------------------------
/src/test/java/jp/ossc/nimbus/service/aop/interceptor/servlet/MockServletInputStream.javapp_sapi:
--------------------------------------------------------------------------------
1 | package jp.ossc.nimbus.service.aop.interceptor.servlet;
2 |
3 | import java.io.ByteArrayInputStream;
4 | import java.io.IOException;
5 |
6 | @START
14 |
15 | Logger logger = Logger.getInstance(this.getClass());
16 | logger.info("Information Level Message");
17 | logger.error("Error Level Message");
18 |
19 | このロギングのインタフェースは、非常にシンプルで使いやすい事は分かります。
20 | しかし、実際のエンタープライズなアプリケーションにおいて、運用・保守まで考えてロギングを行う場合、このようなインタフェースでは、以下のような問題が生じます。
21 |
22 |
26 | Nimbusのロギングの概念は、メッセージには、文言や出力レベル、出力先など様々な付加情報があり、それを意識するのは、ロギングを行うアプリケーションではないと言うものです。
27 | そのため、Nimbusのロギングのインタフェースでは、メッセージに一意に付与されるIDを渡して、出力を依頼するというだけです。
28 | そのインタフェースには、出力レベルどころか、メッセージすら現れません。
29 |
30 | Logger logger = (Logger)ServiceManagerFactory.getServiceObject("LogService");
31 | logger.write("NIMBUS_0001");
32 | logger.write("NIMBUS_0002");
33 |
34 | それらの付加情報は、別の場所で定義するのです。付加情報を外出しにする事で、メッセージの管理や、出力レベル・出力先の変更など、メッセージに付加される情報の変更が、アプリケーションに影響を及ぼさなくなります。
35 | このように、一意なメッセージIDのみでログの出力を依頼する簡潔な機能を抽象化したインタフェースが、Loggerです。
36 |
38 |
39 |
40 |
--------------------------------------------------------------------------------
/src/test/resources/jp/ossc/nimbus/service/beancontrol/nimbus-service.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
38 | * 更新:
39 | */
40 | public interface Display {
41 | public String display();
42 | public String check(String input);
43 | }
44 |
--------------------------------------------------------------------------------
/src/main/java/jp/ossc/nimbus/service/publish/tcp/ByeMessage.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This software is distributed under following license based on modified BSD
3 | * style license.
4 | * ----------------------------------------------------------------------
5 | *
6 | * Copyright 2003 The Nimbus Project. All rights reserved.
7 | *
8 | * Redistribution and use in source and binary forms, with or without
9 | * modification, are permitted provided that the following conditions are met:
10 | *
11 | * 1. Redistributions of source code must retain the above copyright notice,
12 | * this list of conditions and the following disclaimer.
13 | * 2. Redistributions in binary form must reproduce the above copyright notice,
14 | * this list of conditions and the following disclaimer in the documentation
15 | * and/or other materials provided with the distribution.
16 | *
17 | * THIS SOFTWARE IS PROVIDED BY THE NIMBUS PROJECT ``AS IS'' AND ANY EXPRESS
18 | * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
20 | * NO EVENT SHALL THE NIMBUS PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY
21 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
22 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
23 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
24 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 | *
28 | * The views and conclusions contained in the software and documentation are
29 | * those of the authors and should not be interpreted as representing official
30 | * policies, either expressed or implied, of the Nimbus Project.
31 | */
32 | package jp.ossc.nimbus.service.publish.tcp;
33 |
34 | /**
35 | * クライアントからの切断要求メッセージクラス。
38 | * 更新:
39 | */
40 | public interface CuiFactory {
41 | /** Cuiインスタンスを返す */
42 | public Cui findInstance(String key);
43 | }
44 |
--------------------------------------------------------------------------------
/src/main/java/jp/ossc/nimbus/service/graph/TickUnitAdjustCommonDivisorMap.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This software is distributed under following license based on modified BSD
3 | * style license.
4 | * ----------------------------------------------------------------------
5 | *
6 | * Copyright 2003 The Nimbus Project. All rights reserved.
7 | *
8 | * Redistribution and use in source and binary forms, with or without
9 | * modification, are permitted provided that the following conditions are met:
10 | *
11 | * 1. Redistributions of source code must retain the above copyright notice,
12 | * this list of conditions and the following disclaimer.
13 | * 2. Redistributions in binary form must reproduce the above copyright notice,
14 | * this list of conditions and the following disclaimer in the documentation
15 | * and/or other materials provided with the distribution.
16 | *
17 | * THIS SOFTWARE IS PROVIDED BY THE NIMBUS PROJECT ``AS IS'' AND ANY EXPRESS
18 | * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
20 | * NO EVENT SHALL THE NIMBUS PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY
21 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
22 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
23 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
24 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 | *
28 | * The views and conclusions contained in the software and documentation are
29 | * those of the authors and should not be interpreted as representing official
30 | * policies, either expressed or implied, of the Nimbus Project.
31 | */
32 | package jp.ossc.nimbus.service.graph;
33 |
34 | /**
35 | * {@link TickUnitAdjuster}で調整するメモリの公約数のマッピングを提供するサービス。
26 | *
31 | * 確認:
32 | *
33 | *
36 | */
37 | public void testCloneSchema() {
38 | try{
39 | Header header = new Header("Testheader", ":A,java.lang.String,,,");
40 | Record rec = header.cloneSchema();
41 | Header header2 = (Header)rec;
42 | assertEquals("Testheader", header2.getName());
43 | assertEquals(":A,java.lang.String,,,", header2.getSchema());
44 | }catch(Exception e){
45 | e.printStackTrace();
46 | }
47 | }
48 |
49 |
50 | /**
51 | * ヘッダ名を設定するテスト。
52 | *
55 | *
61 | * 確認:
62 | *
63 | *
65 | */
66 | public void testSetName() {
67 | try{
68 | Header header = new Header("Testheader", ":A,java.lang.String,,,");
69 | header.setName("TestheaderNew");
70 | assertEquals("TestheaderNew", header.getName());
71 | }catch(Exception e){
72 | e.printStackTrace();
73 | }
74 | }
75 |
76 | }
77 |
--------------------------------------------------------------------------------
/src/main/java/jp/ossc/nimbus/core/DefaultServiceManagerServiceMBean.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This software is distributed under following license based on modified BSD
3 | * style license.
4 | * ----------------------------------------------------------------------
5 | *
6 | * Copyright 2003 The Nimbus Project. All rights reserved.
7 | *
8 | * Redistribution and use in source and binary forms, with or without
9 | * modification, are permitted provided that the following conditions are met:
10 | *
11 | * 1. Redistributions of source code must retain the above copyright notice,
12 | * this list of conditions and the following disclaimer.
13 | * 2. Redistributions in binary form must reproduce the above copyright notice,
14 | * this list of conditions and the following disclaimer in the documentation
15 | * and/or other materials provided with the distribution.
16 | *
17 | * THIS SOFTWARE IS PROVIDED BY THE NIMBUS PROJECT ``AS IS'' AND ANY EXPRESS
18 | * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
20 | * NO EVENT SHALL THE NIMBUS PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY
21 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
22 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
23 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
24 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 | *
28 | * The views and conclusions contained in the software and documentation are
29 | * those of the authors and should not be interpreted as representing official
30 | * policies, either expressed or implied, of the Nimbus Project.
31 | */
32 | package jp.ossc.nimbus.core;
33 |
34 | /**
35 | * {@link DefaultServiceManagerService}のMBeanインタフェース
38 | * 更新:
39 | */
40 | public interface DisplayConstructer {
41 | /**
42 | * 出力したいデータをリターンする
43 | * @return
44 | */
45 | public String display();
46 | }
47 |
--------------------------------------------------------------------------------
/src/main/java/jp/ossc/nimbus/service/graph/TickUnitAdjuster.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This software is distributed under following license based on modified BSD
3 | * style license.
4 | * ----------------------------------------------------------------------
5 | *
6 | * Copyright 2003 The Nimbus Project. All rights reserved.
7 | *
8 | * Redistribution and use in source and binary forms, with or without
9 | * modification, are permitted provided that the following conditions are met:
10 | *
11 | * 1. Redistributions of source code must retain the above copyright notice,
12 | * this list of conditions and the following disclaimer.
13 | * 2. Redistributions in binary form must reproduce the above copyright notice,
14 | * this list of conditions and the following disclaimer in the documentation
15 | * and/or other materials provided with the distribution.
16 | *
17 | * THIS SOFTWARE IS PROVIDED BY THE NIMBUS PROJECT ``AS IS'' AND ANY EXPRESS
18 | * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
20 | * NO EVENT SHALL THE NIMBUS PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY
21 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
22 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
23 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
24 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 | *
28 | * The views and conclusions contained in the software and documentation are
29 | * those of the authors and should not be interpreted as representing official
30 | * policies, either expressed or implied, of the Nimbus Project.
31 | */
32 | package jp.ossc.nimbus.service.graph;
33 |
34 | import org.jfree.chart.plot.XYPlot;
35 |
36 | /**
37 | * 軸の目盛り調節。
43 | *
44 | * @param message メッセージ
45 | */
46 | public void onMessage(Message message);
47 | }
--------------------------------------------------------------------------------
/src/main/java/jp/ossc/nimbus/service/publish/udp/ServerCloseRequestMessage.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This software is distributed under following license based on modified BSD
3 | * style license.
4 | * ----------------------------------------------------------------------
5 | *
6 | * Copyright 2003 The Nimbus Project. All rights reserved.
7 | *
8 | * Redistribution and use in source and binary forms, with or without
9 | * modification, are permitted provided that the following conditions are met:
10 | *
11 | * 1. Redistributions of source code must retain the above copyright notice,
12 | * this list of conditions and the following disclaimer.
13 | * 2. Redistributions in binary form must reproduce the above copyright notice,
14 | * this list of conditions and the following disclaimer in the documentation
15 | * and/or other materials provided with the distribution.
16 | *
17 | * THIS SOFTWARE IS PROVIDED BY THE NIMBUS PROJECT ``AS IS'' AND ANY EXPRESS
18 | * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
20 | * NO EVENT SHALL THE NIMBUS PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY
21 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
22 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
23 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
24 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 | *
28 | * The views and conclusions contained in the software and documentation are
29 | * those of the authors and should not be interpreted as representing official
30 | * policies, either expressed or implied, of the Nimbus Project.
31 | */
32 | package jp.ossc.nimbus.service.publish.udp;
33 |
34 | /**
35 | * サーバからの終了要求メッセージクラス。
40 | * 更新:
41 | */
42 | public interface JmsTopicSession
43 | extends ResourceFactory{
44 | }
45 |
--------------------------------------------------------------------------------
/src/main/java/jp/ossc/nimbus/service/scheduler/ScheduleTask.java:
--------------------------------------------------------------------------------
1 | /*
2 | * This software is distributed under following license based on modified BSD
3 | * style license.
4 | * ----------------------------------------------------------------------
5 | *
6 | * Copyright 2003 The Nimbus Project. All rights reserved.
7 | *
8 | * Redistribution and use in source and binary forms, with or without
9 | * modification, are permitted provided that the following conditions are met:
10 | *
11 | * 1. Redistributions of source code must retain the above copyright notice,
12 | * this list of conditions and the following disclaimer.
13 | * 2. Redistributions in binary form must reproduce the above copyright notice,
14 | * this list of conditions and the following disclaimer in the documentation
15 | * and/or other materials provided with the distribution.
16 | *
17 | * THIS SOFTWARE IS PROVIDED BY THE NIMBUS PROJECT ``AS IS'' AND ANY EXPRESS
18 | * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
20 | * NO EVENT SHALL THE NIMBUS PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY
21 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
22 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
23 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
24 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 | *
28 | * The views and conclusions contained in the software and documentation are
29 | * those of the authors and should not be interpreted as representing official
30 | * policies, either expressed or implied, of the Nimbus Project.
31 | */
32 | package jp.ossc.nimbus.service.scheduler;
33 |
34 | /**
35 | * スケジュールタスク。