Class FlowDeployClient
java.lang.Object
com.infoteria.asteria.flowengine2.thinclient.AsteriaClient
com.infoteria.asteria.flowengine2.thinclient.FlowDeployClient
外部のJavaプログラムからフロー情報を取得するためのクライアントクラスです。
-
Field Summary
Fields inherited from class com.infoteria.asteria.flowengine2.thinclient.AsteriaClient
_sessionId -
Constructor Summary
ConstructorsConstructorDescriptionFlowDeployClient(AsteriaClient client) 別のASTERIAクライアントから接続先情報とログイン状態を引き継いでクライアントを作成します。FlowDeployClient(String url) ASTERIAサーバーのURLを指定してクライアントを作成します。
特に変更していない場合、URLは「http://<SERVERNAME>:21381/flow-rpc」となります。FlowDeployClient(String server, int port) ASTERIAサーバーのサーバー名とポート番号を指定してクライアントを作成します。 -
Method Summary
Modifier and TypeMethodDescriptiongetFlowInfo(String projectName, String flowName) 指定のプロジェクトにあるフローの情報を取得します。String[]getFlowList(String projectName) 指定のプロジェクトにあるフロー名の一覧を取得します。getProjectDocument(String projectName) 指定のプロジェクトのDocument(xfp)を取得します。String[]ログインユーザーのプロジェクト名の一覧を取得します。Trigger[]すべての実行設定の一覧を取得します。Trigger[]getTriggerList(TriggerType type) 種別を指定して実行設定の一覧を取得します。booleanregisterProject(Document doc, String filepath) プロジェクトを登録します。新規の実行設定を登録します。
それぞれの実行設定でキーとなる項目が重複している場合は重複エラーになります。booleanunregisterProject(String projectName) プロジェクトを登録解除します。
unregisterProject(projectName, false)と同じです。booleanunregisterProject(String projectName, boolean bDeleteFile) プロジェクトを登録解除します。boolean実行設定を削除します。
引数となるTriggerはサーバーから取得したインスタンス(Trigger#isNewがfalse)である必要があります。boolean実行設定を更新します。
引数となるTriggerはサーバーから取得したインスタンス(Trigger#isNewがfalse)である必要があります。Methods inherited from class com.infoteria.asteria.flowengine2.thinclient.AsteriaClient
login, login, logout, releaseSession, setSSLSocketFactory
-
Constructor Details
-
FlowDeployClient
ASTERIAサーバーのURLを指定してクライアントを作成します。
特に変更していない場合、URLは「http://<SERVERNAME>:21381/flow-rpc」となります。- Throws:
MalformedURLException
-
FlowDeployClient
ASTERIAサーバーのサーバー名とポート番号を指定してクライアントを作成します。- Parameters:
server- サーバー名またはIPアドレスport- ポート番号- Throws:
MalformedURLException
-
FlowDeployClient
別のASTERIAクライアントから接続先情報とログイン状態を引き継いでクライアントを作成します。- Parameters:
client- ログイン済みのAsteriaClient
-
-
Method Details
-
getProjectList
ログインユーザーのプロジェクト名の一覧を取得します。- Returns:
- プロジェクト名の配列
- Throws:
FlowClientException
-
getFlowList
指定のプロジェクトにあるフロー名の一覧を取得します。- Returns:
- フロー名の配列
- Throws:
FlowClientException
-
getFlowInfo
指定のプロジェクトにあるフローの情報を取得します。- Returns:
- フロー情報
- Throws:
FlowClientException
-
getProjectDocument
指定のプロジェクトのDocument(xfp)を取得します。- Returns:
- プロジェクトのDocument
- Throws:
FlowClientException
-
getTriggerList
すべての実行設定の一覧を取得します。- Returns:
- 実行設定の配列
- Throws:
FlowClientException
-
getTriggerList
種別を指定して実行設定の一覧を取得します。- Returns:
- 実行設定の配列
- Throws:
FlowClientException
-
registerTrigger
新規の実行設定を登録します。
それぞれの実行設定でキーとなる項目が重複している場合は重複エラーになります。- Returns:
- 登録された実行設定。ScheduleTriggerの場合にはScheduleIdが設定されているなど引数としたTriggerとは別のインスタンスになります。
- Throws:
FlowClientException
-
unregisterTrigger
実行設定を削除します。
引数となるTriggerはサーバーから取得したインスタンス(Trigger#isNewがfalse)である必要があります。- Returns:
- 削除に成功した場合はtrue
- Throws:
FlowClientException
-
updateTrigger
実行設定を更新します。
引数となるTriggerはサーバーから取得したインスタンス(Trigger#isNewがfalse)である必要があります。- Returns:
- 更新に成功した場合はtrue
- Throws:
FlowClientException
-
registerProject
プロジェクトを登録します。- Parameters:
doc- xfpファイルのDocumentfilepath- プロジェクトを保存するパス(ホームディレクトリからの相対パス)- Returns:
- 更新に成功した場合はtrue
- Throws:
FlowClientException
-
unregisterProject
プロジェクトを登録解除します。
unregisterProject(projectName, false)と同じです。- Returns:
- 登録解除に成功した場合はtrue
- Throws:
FlowClientException
-
unregisterProject
public boolean unregisterProject(String projectName, boolean bDeleteFile) throws FlowClientException プロジェクトを登録解除します。- Parameters:
bDeleteFile- xfpファイルを削除する場合はtrueproject- プロジェクト名- Returns:
- 登録解除に成功した場合はtrue
- Throws:
FlowClientException
-