public abstract class AbstractServerModule<V,S> extends Object
Constructor and Description |
---|
AbstractServerModule(Class<S> clsService,
String strLogName,
V[] arrResultType,
AbstractServerModuleBase serverBase)
コンストラクタ
|
AbstractServerModule(Class<S> clsService,
String strLogName,
V[] arrResultType,
AbstractServerModuleBase serverBase,
ResultStorage<V> resultStorage)
コンストラクタ
|
Modifier and Type | Method and Description |
---|---|
protected String |
getLogClassName()
ログ表示名取得
|
V[] |
getResult()
サービス連携呼び出し(ワーカーとサービス連携を開始する)
|
abstract V[] |
sendRequest(S service)
サービス連携フレームワークより、ワーカーのサービスを呼び出す.
抽象メソッドであり、AbstractServerModuleを使用するクラスでサービスの呼び出しを実装する. |
public AbstractServerModule(Class<S> clsService, String strLogName, V[] arrResultType, AbstractServerModuleBase serverBase)
clsService
- サービスクラスstrLogName
- ログ表示名arrResultType
- サービスの結果型serverBase
- サーバサービスオブジェクトpublic AbstractServerModule(Class<S> clsService, String strLogName, V[] arrResultType, AbstractServerModuleBase serverBase, ResultStorage<V> resultStorage)
clsService
- サービスクラスstrLogName
- ログ表示名arrResultType
- サービスの結果型serverBase
- サーバサービスオブジェクトresultStorage
- 任意のResultStorageオブジェクトpublic V[] getResult() throws ProcessFailedException
ProcessFailedException
protected final String getLogClassName()
public abstract V[] sendRequest(S service) throws ProcessFailedException
service
- サービスのインスタンスProcessFailedException
Copyright (C) 2014 Information Analysis Laboratory, NICT
RaSC is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 2.1 of the License, or (at your option) any later version.
RaSC is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this program. If not, see (http://www.gnu.org/licenses/) .