Class FlowExecuteClient

java.lang.Object
com.infoteria.asteria.flowengine2.thinclient.AsteriaClient
com.infoteria.asteria.flowengine2.thinclient.FlowExecuteClient

public class FlowExecuteClient extends AsteriaClient
外部のJavaプログラムからフローを実行するためのクライアントクラスです。
  • Field Summary

    Fields inherited from class com.infoteria.asteria.flowengine2.thinclient.AsteriaClient

    _sessionId
  • Constructor Summary

    Constructors
    Constructor
    Description
    別のASTERIAクライアントから接続先情報とログイン状態を引き継いでクライアントを作成します。
    ASTERIAサーバーのURLを指定してクライアントを作成します。
    特に変更していない場合、URLは「http://<SERVERNAME>:21381/flow-rpc」となります。
    FlowExecuteClient(String server, int port)
    ASTERIAサーバーのサーバー名とポート番号を指定してクライアントを作成します。
  • Method Summary

    Modifier and Type
    Method
    Description
    フローを実行します。
    実行を開始したら、その終了を待って実行結果が返り値となります。
    post(FlowRequest request)
    フローの実行をポストします。
    実行をリクエストした後は実行の終了を待たずに制御が返ります。
    rerun(String yyyyMMdd, String requestId)
    異常終了しているチェックポイントフローのリクエストを、異常終了する直前のチェックポイントから再実行します。
    リクエストの実行を開始すると、実行の終了を待たずに制御が返ります。

    Methods inherited from class com.infoteria.asteria.flowengine2.thinclient.AsteriaClient

    login, login, logout, releaseSession, setSSLSocketFactory

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • FlowExecuteClient

      public FlowExecuteClient(String url) throws MalformedURLException
      ASTERIAサーバーのURLを指定してクライアントを作成します。
      特に変更していない場合、URLは「http://<SERVERNAME>:21381/flow-rpc」となります。
      Throws:
      MalformedURLException
    • FlowExecuteClient

      public FlowExecuteClient(String server, int port) throws MalformedURLException
      ASTERIAサーバーのサーバー名とポート番号を指定してクライアントを作成します。
      Parameters:
      server - サーバー名またはIPアドレス
      port - ポート番号
      Throws:
      MalformedURLException
    • FlowExecuteClient

      public FlowExecuteClient(AsteriaClient client)
      別のASTERIAクライアントから接続先情報とログイン状態を引き継いでクライアントを作成します。
      Parameters:
      client - ログイン済みのAsteriaClient
  • Method Details

    • post

      public String post(FlowRequest request) throws FlowClientException
      フローの実行をポストします。
      実行をリクエストした後は実行の終了を待たずに制御が返ります。
      Parameters:
      request - 実行リクエスト
      Returns:
      リクエストID
      Throws:
      FlowClientException
    • execute

      public FlowResponse execute(FlowRequest request) throws FlowClientException
      フローを実行します。
      実行を開始したら、その終了を待って実行結果が返り値となります。
      Parameters:
      request - 実行リクエスト
      Returns:
      実行結果オブジェクト
      Throws:
      FlowClientException
    • rerun

      public String rerun(String yyyyMMdd, String requestId) throws FlowClientException
      異常終了しているチェックポイントフローのリクエストを、異常終了する直前のチェックポイントから再実行します。
      リクエストの実行を開始すると、実行の終了を待たずに制御が返ります。
      Parameters:
      yyyyMMdd - 再実行するリクエストの開始日付(YYYYMMDD形式)
      requestId - 再実行するリクエストのリクエストID
      Returns:
      リクエストID
      Throws:
      FlowClientException