11 | 通常、アプリケーションで使用するデータ構造には、1次元で表現できるデータと、2次元で表現できるデータ、またその組み合わせで表現できるデータがあります。
12 | Nimbusでは、このような汎用的なデータ構造を表現するクラスを、その時々に応じてクラスを実装して開発するコストを削減するために、データ構造を動的に定義して、汎用的なデータ構造を表現できる機能を提供します。
13 | 汎用データセットでは、データ構造を文字列で指定する事で、データ構造をプログラミングする事が可能となります。
14 | データ構造の定義では、通常、名前、型の情報がありますが、汎用データセットでは、データ構造の定義に様々な付加的情報を与える事が可能です。また、データ構造の定義情報自体も拡張可能です。
15 |
16 |
17 |
--------------------------------------------------------------------------------
/src/main/java/jp/ossc/nimbus/beans/package.html:
--------------------------------------------------------------------------------
1 |
4 |
5 |
11 | 12 | Java Beans規約に則ったBeanのプロパティ編集、及びJava Beans規約を拡張したBeanのプロパティアクセスをサポートするライブラリを提供します。
13 |
14 | Java Beans規約に則ったBeanのプロパティを編集する機能として、J2SEにはjava.beans.PropertyEditorインタフェースが定義されています。
15 | しかしながら、その実装クラスは、公開されておらず、実装されているクラスもわずかです。そこで、Nimbusでは、java.beans.PropertyEditorインタフェースの実装クラスを拡充して提供します。
16 | また、それらの実装クラスは、Nimbusのサービス定義やBeanFlow定義のインジェクションで使用します。
17 |
18 | Java Beans規約を拡張したBeanのプロパティに、汎用的にアクセスする機能が、The Apache Jakarta Projectの Commons BeanUtils(http://jakarta.apache.org/beanutils/)で提供されています。
19 | BeanUtilsでは、プロパティにアクセスする際に、インタプリタ的にプロパティ文字列を解析して、リフレクションを利用してプロパティにアクセスします。
20 | しかしながら、実際の用途としては、ある特定のプロパティに対して、プログラムが動作する度にアクセスするため、インタプリタ的に毎回プロパティ文字列の解析を行うのは無駄であるし、その後のリフレクションメソッドを毎回検索するのも無駄になってしまいます。
21 | これは、staticに簡単に呼び出せる利便性を追求した一つの形ではありますが、エンタープライズシステムを構築するプログラマとしては、性能への悪影響を考えざる得ません。
22 | そこで、Nimbusでは、プロパティ文字列の解析をプリコンパイル的に行い、更にリフレクションメソッドをキャッシュすることで、性能への影響を低減させたプロパティ汎用アクセス機能を提供します。
23 | また、Java Beans規約の拡張という意味でも、BeanUtilsよりも拡張したアクセス機能を持っています。
24 | さらに、オーバーロードメソッドの呼び出しや、publicなインタフェースを実装したpublicでないクラスのプロパティへのアクセスなど、細かな点が考慮されています。
25 |
26 |
27 |
--------------------------------------------------------------------------------
/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インタフェース
36 | * 37 | * @author M.Takata 38 | * @see DefaultServiceManagerService 39 | */ 40 | public interface DefaultServiceManagerServiceMBean 41 | extends Service, ServiceManager{ 42 | } -------------------------------------------------------------------------------- /src/main/java/jp/ossc/nimbus/core/ServiceManagerFactoryUsage.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimbus-org/nimbus/233a79a4c0f0e6de8c3aa857223a5b4a4ef0da7d/src/main/java/jp/ossc/nimbus/core/ServiceManagerFactoryUsage.txt -------------------------------------------------------------------------------- /src/main/java/jp/ossc/nimbus/core/package.html: -------------------------------------------------------------------------------- 1 | 4 | 5 |
6 | 7 |
11 | サービス基盤とは、POJO(Plain Old Java Objects)オブジェクトを、WindowsのサービスのようにJavaVM上に、ホスティングする基盤機能である。
12 |
13 | サービス基盤上にホスティングされるPOJOは、サービスと呼ばれる。
14 | サービスは、Java Beansで言うプロパティの設定、サービス間の依存関係の設定を行う事ができる。
15 | また、「生成」、「起動」、「停止」、「破棄」の4つの状態遷移を制御する事ができる。サービスはJ2EEのJMX(Java Management Extension)に対応しており、JMX管理リソースとして制御可能である。
16 |
17 | サービス基盤上にホスティングされたサービスは、サービス管理によって管理される。
18 | サービス管理は、ネーミングサービス機能を持ち、サービスの名前を指定する事で、ホスティングされたサービスを提供する。
19 | また、サービス管理は、サービスをグルーピングする役割を持ち、サービス基盤上に複数のサービス管理を起動する事ができる。
20 |
21 | サービスやサービス管理の定義は、サービスローダによってロードされる。
22 | サービスローダの実装によって、定義の方法は入れ替え可能であるが、デフォルトの実装としては、XMLファイルによるサービス定義の読み込みをサポートしている。
23 | サービス定義XMLの詳細は、サービス定義ファイルDTDを参照。
24 |
25 | Nimbusプロジェクトでは、様々な機能が提供されているが、それぞれの機能は、サービスとして実装されている。
26 | そのため、ユーザは必要な機能だけを、プロパティをカスタマイズしてJavaVM上にホスティングして、使用する事ができる。
27 |
28 |
29 |
--------------------------------------------------------------------------------
/src/main/java/jp/ossc/nimbus/daemon/package.html:
--------------------------------------------------------------------------------
1 |
4 |
5 |
11 | Javaのスレッドは、デッドロックを回避するために、スレッドの一時停止及び再開、
12 | 停止などの操作をフラグ操作によって自前で実装する事を推奨しています。
13 | そのため、スレッドAPIの使用には、テクニックを要求されます。
14 | Nimbusでは、そのような煩雑なスレッドの操作を簡単に行えるように、このライブラリ
15 | を提供しています。
16 |
17 |
18 |
--------------------------------------------------------------------------------
/src/main/java/jp/ossc/nimbus/io/package.html:
--------------------------------------------------------------------------------
1 |
4 |
5 |
11 | Javaの入出力ライブラリで、不足している機能をサポートします。
12 |
13 |
14 |
--------------------------------------------------------------------------------
/src/main/java/jp/ossc/nimbus/service/aop/interceptor/package.html:
--------------------------------------------------------------------------------
1 |
4 |
5 |
11 | アスペクト指向を考える時、利用用途として最も重要な概念は、
12 | 「任意の処理の前または後もしくはその両方で、特定の処理を行う」でしょう。
13 | その概念を抽象化したインタフェースが、Interceptorです。
14 |
15 | このパッケージでは、そのInterceptorインタフェースを実装したサービスを提供します。
16 |
17 |
18 |
--------------------------------------------------------------------------------
/src/main/java/jp/ossc/nimbus/service/aop/interceptor/servlet/package.html:
--------------------------------------------------------------------------------
1 |
4 |
5 |
11 | NimbusアスペクトのInterceptorの中でも、サーブレット層に特化したInterceptorを提供します。
12 | 従来のJ2EEのサーブレットフィルタでは、web.xmlで初期化パラメータを渡す程度しかできず、フィルタに細かな設定を行う事が困難でした。
13 | Nimbusでは、InterceptorChainCallFilterを使って、
14 | サーブレットフィルタの役割をNimbusアスペクトのInterceptorに委譲する事で、多機能なインジェクション、Nimbusサービスとの親和性を得る事ができます。
15 | このパッケージのInterceptorは、InterceptorChainCallFilterを使って、サーブレットフィルタに挟み込まれる事を前提としており、抽象サービスServletFilterInterceptorServiceを継承しています。
16 | そのため、サーブレットフィルタと同様に、インターセプタ毎にリクエストパスに対してマッピングする事が可能です。
17 | 更に、サーブレットフィルタのような中途半端な正規表現ではなく、java.util.regexを使った正規表現によるパスマッピングが可能です。
18 |
19 |
20 |
--------------------------------------------------------------------------------
/src/main/java/jp/ossc/nimbus/service/aop/invoker/package.html:
--------------------------------------------------------------------------------
1 |
4 |
5 |
11 | アスペクト指向プログラミングでは、「本来の処理」を横断的に捉えて、それに対して「特定の処理」を行います。
12 | その「特定の処理」の先には、「本来の処理」があります。
13 | そのアスペクトされた「本来の処理」を呼び出すという概念を抽象化したインタフェースが、Invokerです。
14 |
15 | このパッケージでは、そのInvokerインタフェースを実装したサービスを提供します。
16 |
17 |
18 |
--------------------------------------------------------------------------------
/src/main/java/jp/ossc/nimbus/service/aop/javassist/package.html:
--------------------------------------------------------------------------------
1 |
4 |
5 |
11 | アスペクト指向における「横断要素」を、Javaクラスのメソッドに対して定義し、
12 | クラスファイルのバイトコードを操作する事で、
13 | そこにInterceptorChainを挟み込むサービスを提供します。
14 | クラスファイルのバイトコード操作には、アスペクト指向プログラミングのオープンソースライブラリ
15 | Javassist
16 | を使います。
17 |
18 |
19 |
--------------------------------------------------------------------------------
/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/beancontrol/BeanFlowCoverageRepoter.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 interface BeanFlowCoverageRepoter{ 35 | 36 | public void report() throws Exception; 37 | } 38 | -------------------------------------------------------------------------------- /src/main/java/jp/ossc/nimbus/service/beancontrol/CompilerUsage.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimbus-org/nimbus/233a79a4c0f0e6de8c3aa857223a5b4a4ef0da7d/src/main/java/jp/ossc/nimbus/service/beancontrol/CompilerUsage.txt -------------------------------------------------------------------------------- /src/main/java/jp/ossc/nimbus/service/beancontrol/package.html: -------------------------------------------------------------------------------- 1 | 4 | 5 |
6 | 7 |
11 | 業務設計者が業務フローを定義し、その詳細実装をプログラマーが行うという、
12 | 業務設計者とプログラマーの分業をサポートするための業務フロー機能を提供します。
13 | 業務フローの定義は、構造化言語であるXMLで行います。
14 | そこでは、通常フローチャートで記述可能な、ステップ単位での処理、条件分岐、繰り返し処理などが可能です。
15 | また、Java Beanの操作を主眼に置いているため、様々なBeanのプロパティ操作によるインジェクションが可能です。
16 | さらに、J2EEアプリケーションサーバ上では、JTAを使ったトランザクション制御もサポートします。
17 | (詳細は、ここを参照)
18 |
19 |
20 |
--------------------------------------------------------------------------------
/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/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/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 | -------------------------------------------------------------------------------- /src/main/java/jp/ossc/nimbus/service/cache/package.html: -------------------------------------------------------------------------------- 1 | 4 | 5 |
6 | 7 |
11 | キャッシュとは、一般的には使用頻度の高いデータを高速な記憶装置に蓄えておく事により、
12 | いちいち低速な装置から読み出す無駄を省いて高速化することを指します。
13 | Nimbusのキャッシュは、あるオブジェクトを一時的に保持しておく機能を抽象化したインタフェースです。
14 | オブジェクトを集合的にキャッシュするCacheインタフェースと、
15 | オブジェクトをキーに関連付けてキャッシュするCacheMapインタフェースがあります。
16 |
17 | また、ここで言う「一時的に保持する」とは、ある条件において、保持しておいたオブジェクトが揮発したり、
18 | 実際に保持する場所(メモリ、ファイル等)が変わってしまう可能性がある事を示唆します。
19 | この事をNimbusのキャッシュでは「あふれ」と呼び、あふれの制御を行う概念を抽象化したインタフェースがOverflowControllerです。
20 |
21 | また、あふれ制御は、大きく3つの概念に分ける事ができます。
22 |
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/connection/package.html: -------------------------------------------------------------------------------- 1 | 4 | 5 |
6 | 7 |
11 | JDBCのコネクション取得方法は、JDBCの標準的手法として2種類あります。
12 | java.sql.DriverManagerを使って取得する方法と、javax.sql.DataSourceを使って取得する方法です。
13 |
14 | 前者は、JDBCドライバを直接使用する低レベルなAPIで、DBMSに接続するためのプロパティ等を引数で指定する必要があります。
15 | そのため、ソース内にDBMSに接続するためのプロパティ等を直接コーディングするか、自前で外出しする仕組みを作る必要があります。
16 |
17 | 後者は、アプリケーションサーバ等の中間層を挟んでJDBCドライバを使用するAPIで、DBMSに接続するためのプロパティは、アプリケーションサーバの設定ファイル等に記述します。
18 | そのため、前者のような、DBMSに接続するためのプロパティ等を外出しする仕組みを自前で作る必要はありません。
19 | しかし、分散環境対応などのために、DataSourceの取得は、JNDIを経由します。
20 | JNDIの接続には、接続先のJNDIサーバ等の接続情報を引数で指定する必要があります。(jndi.propertiesで設定する方法もありますが、その場合接続先が1つに限られるので複数のJNDIサーバに接続する場合などに問題になります)
21 |
22 | このように、JDBCコネクションを取得するのは、複数の方法、複雑なパラメータの指定や設定が必要になり、簡単に取得できるとは言いがたいものがあります。
23 | そこで、取得方法やパラメータの設定等を、サービスの実装や属性設定に置き換える事で、コネクションを取得するという概念だけを抽出したConnectionFactoryインタフェースを定義しました。
24 |
25 | このパッケージでは、そのConnectionFactoryインタフェースを実装したサービスを提供します。
26 |
27 |
28 |
--------------------------------------------------------------------------------
/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/context/package.html: -------------------------------------------------------------------------------- 1 | 4 | 5 |
6 | 7 |
11 | アプリケーションを開発する上で、一意なキーに関連付けられたオブジェクトを保持する場所が必要になります。
12 | また、その場所は、一般的にスコープと呼ばれる概念で、ライフサイクルが異なったり、意味付けが異なったりします。
13 | しかしながら、アプリケーションから見ると「一意なキーに関連付けられたオブジェクトを保持する場所」という概念だけは、一定です。
14 | そこで、その概念を抽象化したインタフェースが、Contextです。
15 |
16 | このパッケージでは、そのContextインタフェースを実装したサービスを提供します。
17 |
18 |
19 |
--------------------------------------------------------------------------------
/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/converter/CodeMasterConverterServiceMBean.java:
--------------------------------------------------------------------------------
1 | package jp.ossc.nimbus.service.converter;
2 |
3 | import jp.ossc.nimbus.core.*;
4 |
5 | /**
6 | * {@link CodeMasterConverterService}サービスMBeanインタフェース。
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/converter/package.html: -------------------------------------------------------------------------------- 1 | 4 | 5 |
6 | 7 |
11 | Converterインタフェースを実装したサービスを提供します。
12 | Converterは、本来ユーティリティとして位置づけられてますが、他のサービスとの連携が必要な複雑な実装をサービスとして実装しています。
13 |
14 |
15 |
--------------------------------------------------------------------------------
/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/crypt/package.html: -------------------------------------------------------------------------------- 1 | 4 | 5 |
6 | 7 |
11 | このパッケージでは、暗号化、複合化、ハッシュ等の、暗号サービスを提供します。
12 |
13 |
14 |
--------------------------------------------------------------------------------
/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
38 | * 更新:
39 | */
40 | public interface CuiFactory {
41 | /** Cuiインスタンスを返す */
42 | public Cui findInstance(String key);
43 | }
44 |
--------------------------------------------------------------------------------
/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
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/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 | */
40 | public interface DisplayConstructer {
41 | /**
42 | * 出力したいデータをリターンする
43 | * @return
44 | */
45 | public String display();
46 | }
47 |
--------------------------------------------------------------------------------
/src/main/java/jp/ossc/nimbus/service/ejb/package.html:
--------------------------------------------------------------------------------
1 |
4 |
5 |
11 | EJB2.0までのEJBは、EJBの参照を取得するのに、以下のような複雑なAPIの呼び出し手続きが必要になる。
12 |
22 | このようなEJBの取得に際して発生し得る問題を隠蔽し、EJBの参照を取得するという簡潔な手段だけを抽象化したインタフェースが、
23 | EJBFactoryです。
24 |
25 | このパッケージでは、そのEJBFactoryインタフェースを実装したサービスを提供します。
26 |
27 |
28 |
--------------------------------------------------------------------------------
/src/main/java/jp/ossc/nimbus/service/ftp/FTPClientFactory.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.ftp;
33 |
34 | /**
35 | * FTPクライアントファクトリ。
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/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}で調整するメモリの公約数のマッピングを提供するサービス。
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/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 | * 軸の目盛り調節。
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/graph/package.html: -------------------------------------------------------------------------------- 1 | 4 | 5 |
6 | 7 |
11 | このパッケージでは、JFreeChartを使ったグラフ生成機能を提供します。
12 |
13 |
14 |
--------------------------------------------------------------------------------
/src/main/java/jp/ossc/nimbus/service/http/httpclient/package.html:
--------------------------------------------------------------------------------
1 |
4 |
5 |
11 | このパッケージでは、Jakarta Commons HttpClientを使ったHTTPプロトコルによる外部接続機能を提供します。
12 |
13 |
14 |
--------------------------------------------------------------------------------
/src/main/java/jp/ossc/nimbus/service/http/package.html:
--------------------------------------------------------------------------------
1 |
4 |
5 |
11 | このパッケージでは、HTTPプロトコルによる外部接続機能を提供します。
12 |
13 |
14 |
--------------------------------------------------------------------------------
/src/main/java/jp/ossc/nimbus/service/http/proxy/package.html:
--------------------------------------------------------------------------------
1 |
4 |
5 |
11 | 12 | 13 | -------------------------------------------------------------------------------- /src/main/java/jp/ossc/nimbus/service/interpreter/package.html: -------------------------------------------------------------------------------- 1 | 4 | 5 |
6 | 7 |
11 | 任意のソースコードをインタプリタ的に実行する機能を提供します。
12 |
13 |
14 |
--------------------------------------------------------------------------------
/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/jms/package.html: -------------------------------------------------------------------------------- 1 | 4 | 5 |
6 | 7 |
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 | アプリケーションの業務要件ではなく、アプリケーションの方式設計から決まる基盤的な要件と言えるでしょう。
16 | NimbusのJMSラップサービスは、これらのパラメータをサービスの属性で設定する事によって、
17 | アプリケーションがパラメータを意識する事なく、定型的にJMSを利用できるようにラップしたものです。
18 |
19 | JMS Connectionを取得する簡潔な手段を抽象化したインタフェースがJMSConnectionFactoryです。
20 |
21 | JMS Sessionを取得する簡潔な手段を抽象化したインタフェースがJMSSessionFactoryです。
22 |
23 | JMS MessageConsumerを取得する簡潔な手段を抽象化したインタフェースがJMSMessageConsumerFactoryです。
24 |
25 | JMS MessageProducerを取得する簡潔な手段を抽象化したインタフェースがJMSMessageProducerFactoryです。
26 |
27 | このパッケージでは、これらのインタフェースを実装したサービスを提供します。
28 |
29 |
30 |
--------------------------------------------------------------------------------
/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サーバに接続する場合などに問題になります)
13 | また、接続したJNDIコンテキストからリモートオブジェクトを取得するのは、通常は通信コストがかかるため、処理性能に影響します。
14 | この問題を解決するために、JNDIコンテキストから取得したリモートオブジェクトを保持しておいて、毎回取得しないでも済むように対策したりします。
15 |
16 | このように、JNDIからのリモートオブジェクトの取得は、複雑なパラメータの指定や、性能対策などが必要になり、簡単に取得できるとは言いがたいものがあります。
17 | そこで、取得方法やパラメータの設定等を、サービスの実装や属性設定に置き換える事で、
18 | JNDIからリモートオブジェクトを取得するという簡潔な手段だけを抽象化したインタフェースが、
19 | JndiFinderです。
20 |
21 | このパッケージでは、そのJndiFinderインタフェースを実装したサービスを提供します。
22 |
23 |
24 |
--------------------------------------------------------------------------------
/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/journal/editor/package.html:
--------------------------------------------------------------------------------
1 |
4 |
5 |
11 | アプリケーションは、任意のオブジェクトをジャーナルに出力します。
12 | その際、渡したオブジェクト毎に違うフォーマットで出力したくなるかもしれません。
13 | 例えば、文字列はそのままだけど、java.util.Dateオブジェクトは一定の日付フォーマットで出力したいとか。
14 | 例外オブジェクトならば、スタックトレースを出力したいとか。
15 | そのようなオブジェクト毎の出力編集を行う概念を抽象化したインタフェースが、JournalEditorです。
16 |
17 | このパッケージでは、JournalEditorインタフェースを実装したサービスを提供します。
18 |
19 |
20 |
--------------------------------------------------------------------------------
/src/main/java/jp/ossc/nimbus/service/journal/editorfinder/package.html:
--------------------------------------------------------------------------------
1 |
4 |
5 |
11 | ジャーナルに出力する任意のオブジェクトを毎に出力編集を行うJournalEditorをマッピングする機能を抽象化したインタフェースが、EditorFinderです。
12 |
13 | このパッケージでは、EditorFinderインタフェースを実装したサービスを提供します。
14 |
15 |
16 |
--------------------------------------------------------------------------------
/src/main/java/jp/ossc/nimbus/service/journal/package.html:
--------------------------------------------------------------------------------
1 |
4 |
5 |
11 | エンタープライズなシステムを構築する場合、各層でジャーナルを取得する必要があります。
12 | ジャーナルには、
13 |
23 | まず、アプリケーションは、任意のオブジェクトをジャーナルに出力します。
24 | その際、渡したオブジェクト毎に違うフォーマットで出力したくなるかもしれません。
25 | 例えば、文字列はそのままだけど、java.util.Dateオブジェクトは一定の日付フォーマットで出力したいとか。
26 | 例外オブジェクトならば、スタックトレースを出力したいとか。
27 | そのようなオブジェクト毎の出力編集を行う概念を抽象化したインタフェースが、JournalEditorです。
28 | また、オブジェクト毎に出力編集を行うJournalEditorをマッピングする機能を抽象化したインタフェースが、EditorFinderです。
29 |
30 | 次に実際の媒体への出力ですが、その機能はWriterパッケージのCategoryを使用します。
31 |
32 | これらの要件を満たしつつ、ジャーナルを取得する機能を抽象化したのがJournalインタフェースです。
33 |
34 | このパッケージでは、Journalインタフェースを実装したサービスを提供します。
35 |
36 |
37 |
--------------------------------------------------------------------------------
/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/log/package.html: -------------------------------------------------------------------------------- 1 | 4 | 5 |
6 | 7 |
11 | ロギングと言えば、The Apache Jakarta ProjectのCommons LoggingやLog4Jなどが有名です。
12 | それらのロギングの概念は、クライアント側が出力するメッセージを決め、メッセージの出力レベルに合ったメソッドを呼び出すと言うものです。
13 | 以下にその実装例を示します。
14 |
15 | Logger logger = Logger.getInstance(this.getClass()); 16 | logger.info("Information Level Message"); 17 | logger.error("Error Level Message"); 18 |19 | このロギングのインタフェースは、非常にシンプルで使いやすい事は分かります。 20 | しかし、実際のエンタープライズなアプリケーションにおいて、運用・保守まで考えてロギングを行う場合、このようなインタフェースでは、以下のような問題が生じます。
30 | Logger logger = (Logger)ServiceManagerFactory.getServiceObject("LogService"); 31 | logger.write("NIMBUS_0001"); 32 | logger.write("NIMBUS_0002"); 33 |34 | それらの付加情報は、別の場所で定義するのです。付加情報を外出しにする事で、メッセージの管理や、出力レベル・出力先の変更など、メッセージに付加される情報の変更が、アプリケーションに影響を及ぼさなくなります。
37 | このパッケージでは、Loggerインタフェースを実装したサービスを提供します。
38 |
39 |
40 |
--------------------------------------------------------------------------------
/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/main/java/jp/ossc/nimbus/service/message/package.html:
--------------------------------------------------------------------------------
1 |
4 |
5 |
11 | アプリケーションで何らかのメッセージ出力を行う場合、必要となる要件を列挙します。
12 |
22 | このパッケージでは、これらのインタフェースを実装したサービスを提供します。
23 |
24 |
25 |
--------------------------------------------------------------------------------
/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/proxy/invoker/package.html: -------------------------------------------------------------------------------- 1 | 4 | 5 |
6 | 7 |
11 | プロキシのInvokerとして、以下のものを用意してます。
12 |
11 | リモートサーバ上のサービスをあたかもローカルにあるサービスのように呼び出すプロキシ機能を提供します。
12 | クライアント側のプロキシと、サーバ側のプロキシが存在し、各プロキシには、インターセプタを挟み込む機能を持ちます。
13 | また、クライアントプロキシには、サーバプロキシを呼び出すためのInvoker機能があり、自由に差し替える事ができます。
14 | 同様に、サーバプロキシにも、呼び出し対象のサービスを呼び出すためのInvoker機能があり、自由に差し替える事ができます。
15 |
16 | クライアントプロキシとしては、RemoteClientServiceを用意しています。
17 | サーバプロキシとしては、以下のものを用意してます。
18 |
36 | *
37 | * @author M.Takata
38 | */
39 | public interface MessageListener{
40 |
41 | /**
42 | * メッセージを受信する。
43 | *
44 | * @param message メッセージ
45 | */
46 | public void onMessage(Message message);
47 | }
--------------------------------------------------------------------------------
/src/main/java/jp/ossc/nimbus/service/publish/PublishContainerFactory.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 | public interface PublishContainerFactory{
35 |
36 | public PublishContainer createContainer() throws Exception;
37 |
38 | }
39 |
--------------------------------------------------------------------------------
/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 | * クライアントからの切断要求メッセージクラス。
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/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/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 | * サーバからの終了要求メッセージクラス。
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/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/queue/package.html: -------------------------------------------------------------------------------- 1 | 4 | 5 |
6 | 7 |
11 | FIFOのキュー機能を抽象化したインタフェースがQueueです。
12 | FIFOの概念はもちろん、マルチスレッドによる取得待ちに対して、取得待ち順序通りにキューデータを渡していきます。
13 |
14 | このパッケージでは、Queueインタフェースを実装したサービスを提供します。
15 |
16 | また、Queueは、通常非同期処理を行うために使用します。
17 | その際に、Queueに詰められた事を検知して、非同期に任意の処理を行う機能が必要になります。
18 | そのような非同期処理コンテナ機能を実装したQueueHandlerContainerServiceを提供します。
19 | また、非同期処理コンテナ上で「任意の処理を行う」機能を抽象化したインタフェースが、QueueHandlerです。
20 |
21 |
22 |
--------------------------------------------------------------------------------
/src/main/java/jp/ossc/nimbus/service/repository/package.html:
--------------------------------------------------------------------------------
1 |
4 |
5 |
11 | オブジェクトを登録して管理する機能を提供します。
12 | 登録する先が事なる場合でも、このインタフェースによって隠蔽する事で、登録先を意識せずにオブジェクトの管理を行う事ができます。
13 |
14 |
15 |
--------------------------------------------------------------------------------
/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
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 | * スケジュールタスク。
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/scheduler/package.html: -------------------------------------------------------------------------------- 1 | 4 | 5 |
6 | 7 |11 | 12 | 13 | -------------------------------------------------------------------------------- /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/scheduler2/package.html: -------------------------------------------------------------------------------- 1 | 4 | 5 |
6 | 7 |
11 | jp.ossc.nimbus.service.schedulerパッケージのスケジューラは、
12 | 単体のサーバ上でのスケジュール実行しかサポートしていませんでしたが、
13 | このパッケージのスケジューラは、分散環境のサポート、スケジュールの依存関係、
14 | スケジュールのリトライなど、エンタープライズなスケジュール機能をサポートしています。
15 | 従って、バッチフレームワークとして使用可能なレベルになっています。
16 |
17 |
18 |
--------------------------------------------------------------------------------
/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/semaphore/package.html: -------------------------------------------------------------------------------- 1 | 4 | 5 |
6 | 7 |
11 | マルチスレッドで、限られたリソースにアクセスする際の、同期制御を行う機能
12 | を抽象化したインタフェースが、Semaphoreです。
13 |
14 | このパッケージでは、そのSemaphoreインタフェースを実装したサービスを提供します。
15 |
16 |
17 |
--------------------------------------------------------------------------------
/src/main/java/jp/ossc/nimbus/service/sequence/package.html:
--------------------------------------------------------------------------------
1 |
4 |
5 |
11 | 任意のフォーマットの通番を発番する機能を抽象化したインタフェースが、Sequenceです。
12 |
13 | このパッケージでは、そのSequenceインタフェースを実装したサービスを提供します。
14 |
15 |
16 |
--------------------------------------------------------------------------------
/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/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/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/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/TestSwingRunnerUsage.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nimbus-org/nimbus/233a79a4c0f0e6de8c3aa857223a5b4a4ef0da7d/src/main/java/jp/ossc/nimbus/service/test/TestSwingRunnerUsage.txt
--------------------------------------------------------------------------------
/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/trade/IndexCalc.java:
--------------------------------------------------------------------------------
1 | package jp.ossc.nimbus.service.trade;
2 |
3 | import java.util.List;
4 | import java.util.Map;
5 |
6 | public interface IndexCalc {
7 |
8 |
9 | /**
10 | * 引数に設定されている各keyに対する時系列データを計算する。
11 | * @param param
12 | * @return
13 | */
14 | public Map
11 | Validatorインタフェースを実装したサービスを提供します。
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 | データベースへの書き込みを行うMessageWriterサービスを提供します。
11 | JMSへの書き込みを行うMessageWriterサービスを提供します。
11 | The Apache Jakarta ProjectのLog4JのAppenderを使用したMessageWriterサービスを提供します。
11 | Java Mailを使って、SMTPサーバにメールを送信するMessageWriterサービスを提供します。
11 | 出力するという概念を抽象化すると、「どこにどのように出力するか」でしょう。
13 | 「どのように出力するか」という概念を抽象化すると、順序性とマッピングが考えられます。
20 | 次は、このようにしてフォーマットされたWritableRecordを「どこに出力するか」となります。
23 | さらに、これらの大きな2つの概念、「どこにどのように出力するか」をまとめて抽象化したインタフェースがCategoryです。
25 | このパッケージでは、これらの概念を具体化したサービスを提供します。
11 |
12 |
13 |
--------------------------------------------------------------------------------
/src/main/java/jp/ossc/nimbus/util/converter/package.html:
--------------------------------------------------------------------------------
1 |
4 |
5 |
11 | コンバータは任意のオブジェクトを別の任意のオブジェクトに変換する機能です。
11 |
12 |
13 |
--------------------------------------------------------------------------------
/src/main/java/jp/ossc/nimbus/util/package.html:
--------------------------------------------------------------------------------
1 |
4 |
5 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/src/main/java/jp/ossc/nimbus/util/sql/package.html:
--------------------------------------------------------------------------------
1 |
4 |
5 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/src/main/java/jp/ossc/nimbus/util/validator/package.html:
--------------------------------------------------------------------------------
1 |
4 |
5 |
11 | バリデータは任意のオブジェクトを検証する機能です。
24 | * 条件:
25 | *
53 | * 条件:
54 | *
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/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 | Validatorは、本来ユーティリティとして位置づけられてますが、他のサービスとの連携が必要な複雑な実装をサービスとして実装しています。
13 |
14 |
15 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/src/main/java/jp/ossc/nimbus/service/writer/db/package.html:
--------------------------------------------------------------------------------
1 |
4 |
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/writer/log4j/package.html:
--------------------------------------------------------------------------------
1 |
4 |
5 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/src/main/java/jp/ossc/nimbus/service/writer/mail/package.html:
--------------------------------------------------------------------------------
1 |
4 |
5 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/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/main/java/jp/ossc/nimbus/service/writer/prometheus/HelpProvider.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.writer.prometheus;
33 |
34 | public interface HelpProvider{
35 | public String getHelp();
36 | public String getHelp(String key);
37 | }
--------------------------------------------------------------------------------
/src/main/java/jp/ossc/nimbus/servlet/package.html:
--------------------------------------------------------------------------------
1 |
4 |
5 |
12 | コンバータは、通常再入可能です。従って、コンバータのインスタンスは再利用可能です。
13 | シングルトンなコンバータのインスタンスを取得できるようにConvertersクラスを提供しています。
14 |
15 |
16 |
--------------------------------------------------------------------------------
/src/main/java/jp/ossc/nimbus/util/crypt/package.html:
--------------------------------------------------------------------------------
1 |
4 |
5 |
12 | バリデータは、通常再入可能です。従って、バリデータのインスタンスは再利用可能です。
13 |
14 |
15 |
--------------------------------------------------------------------------------
/src/main/resources/META-INF/LICENSE.txt:
--------------------------------------------------------------------------------
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 |
--------------------------------------------------------------------------------
/src/main/resources/META-INF/MANIFEST.MF:
--------------------------------------------------------------------------------
1 | Extension-Name: nimbus
2 | Specification-Title: Nimbus - Application server indendent service ...
3 | Specification-Vendor: Nimbus Project
4 | Implementation-Title: jp.ossc.nimbus
5 | Implementation-Vendor: Nimbus Project
6 |
--------------------------------------------------------------------------------
/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/main/resources/jp/ossc/nimbus/core/ServiceManagerFactoryUsage.txt:
--------------------------------------------------------------------------------
1 | コマンド使用方法:
2 | java jp.ossc.nimbus.core.ServiceManagerFactory [options] [paths]
3 |
4 | [options]
5 |
6 | [-validate]
7 | サービス定義をDTDで検証する。
8 |
9 | [-server]
10 | メインスレッドを待機させて、サーバとして動かす。
11 |
12 | [-dir path]
13 | サービス定義ファイルのディレクトリとサービス定義ファイルを特定するフィルタを指定する。
14 |
15 | [-postdir path]
16 | 最後に読み込むサービス定義ファイルのディレクトリとサービス定義ファイルを特定するフィルタを指定する。
17 |
18 | [-help]
19 | ヘルプを表示します。
20 |
21 | [paths]
22 | ロードするサービス定義ファイルのパス
23 |
24 | 使用例 :
25 | java -classpath classes;lib/nimbus.jar jp.ossc.nimbus.core.ServiceManagerFactory service-definition.xml
26 |
--------------------------------------------------------------------------------
/src/main/resources/jp/ossc/nimbus/service/aop/CompilerUsage.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nimbus-org/nimbus/233a79a4c0f0e6de8c3aa857223a5b4a4ef0da7d/src/main/resources/jp/ossc/nimbus/service/aop/CompilerUsage.txt
--------------------------------------------------------------------------------
/src/main/resources/jp/ossc/nimbus/service/beancontrol/CompilerUsage.txt:
--------------------------------------------------------------------------------
1 | コマンド使用方法:
2 | java jp.ossc.nimbus.service.beancontrol.Compiler [options] [beanflow files]
3 |
4 | [options]
5 |
6 | [-v]
7 | 実行の詳細を表示します。
8 |
9 | [-class]
10 | jp.ossc.nimbus.service.beancontrol.interfaces.BeanFlowInvokerの実装クラス。
11 |
12 | [-interpreterClass]
13 | jp.ossc.nimbus.service.interpreter.Interpreterの実装クラス。
14 |
15 | [-testInterpreterClass]
16 | jp.ossc.nimbus.service.interpreter.Interpreterの実装クラス。
17 |
18 | [-expressionInterpreterClass]
19 | jp.ossc.nimbus.service.interpreter.Interpreterの実装クラス。
20 |
21 | [-servicedir path filter]
22 | DefaultBeanFlowInvokerFactoryServiceの起動に必要なサービス定義ファイルのディレクトリとサービス定義ファイルを特定するフィルタを指定します。
23 |
24 | [-servicepath paths]
25 | DefaultBeanFlowInvokerFactoryServiceの起動に必要なサービス定義ファイルのパスを指定します。
26 | パスセパレータ区切りで複数指定可能です。
27 | 指定しない場合は、自動で生成します。
28 |
29 | [-servicename name]
30 | DefaultBeanFlowInvokerFactoryServiceのサービス名を指定します。
31 | 指定しない場合はNimbus#BeanFlowInvokerFactoryとみなします。
32 |
33 | [-help]
34 | ヘルプを表示します。
35 |
36 | [beanflow files]
37 | コンパイルする業務フロー定義ファイル、またはディレクトリを指定します。
38 | スペース区切りで複数指定可能です。
39 |
40 | 使用例 :
41 | java -classpath classes;lib/nimbus.jar jp.ossc.nimbus.service.beancontrol.Compiler beanflow-def.xml
42 |
--------------------------------------------------------------------------------
/src/main/resources/jp/ossc/nimbus/service/beancontrol/coverage_ng.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nimbus-org/nimbus/233a79a4c0f0e6de8c3aa857223a5b4a4ef0da7d/src/main/resources/jp/ossc/nimbus/service/beancontrol/coverage_ng.png
--------------------------------------------------------------------------------
/src/main/resources/jp/ossc/nimbus/service/beancontrol/coverage_ok.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nimbus-org/nimbus/233a79a4c0f0e6de8c3aa857223a5b4a4ef0da7d/src/main/resources/jp/ossc/nimbus/service/beancontrol/coverage_ok.png
--------------------------------------------------------------------------------
/src/main/resources/jp/ossc/nimbus/service/test/TestRunnerUsage.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nimbus-org/nimbus/233a79a4c0f0e6de8c3aa857223a5b4a4ef0da7d/src/main/resources/jp/ossc/nimbus/service/test/TestRunnerUsage.txt
--------------------------------------------------------------------------------
/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/resources/jp/ossc/nimbus/service/test/testrunner_1_0.dtd:
--------------------------------------------------------------------------------
1 |
29 |
30 |
32 |
33 |
34 |
38 |
39 |
40 |
43 |
44 |
45 |
48 |
49 |
50 |
52 |
53 |
54 |
56 |
57 |
58 |
60 |
61 |
62 |
64 |
65 |
66 |
68 |
69 |
70 |
72 |
73 |
74 |
76 |
77 |
--------------------------------------------------------------------------------
/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 | *
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/test/java/jp/ossc/nimbus/core/TestApplication.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 | public interface TestApplication{
35 |
36 | public void call(String message);
37 | }
--------------------------------------------------------------------------------
/src/test/java/jp/ossc/nimbus/core/TestServiceBaseMBean.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 | public interface TestServiceBaseMBean extends TestServiceMBean{
35 | }
36 |
--------------------------------------------------------------------------------
/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 | * ファイル操作クラス