パッケージ jp.ne.mki.wedge.rule.base

クラス AbstractServer

java.lang.Object
jp.ne.mki.wedge.rule.base.AbstractBase
jp.ne.mki.wedge.rule.base.AbstractServer
すべての実装されたインタフェース:
CommonInterface, ServerInterface, jp.ne.mki.wedge.run.interfaces.RuleEngineInterface, jp.ne.mki.wedge.run.interfaces.ServerRuleInterface
直系の既知のサブクラス:
AbstractServerDC

public abstract class AbstractServer extends AbstractBase implements ServerInterface

RunApサーバー用 ロジッククラス抽象クラス

RunApServer(SAMC,SMC)のみで使用するロジッククラスを使用する場合に、継承元として使用します。
このクラスを継承すると、RunApServer専用のメソッド executeServerDc などのメソッドが使用可能です。

バージョン:
1.3.0
  • フィールド詳細

    • serverControlData

      protected jp.ne.mki.wedge.run.common.library.XM_ServerControlData serverControlData
      RunApServer用Manager
  • コンストラクタの詳細

    • AbstractServer

      public AbstractServer()
  • メソッドの詳細

    • executeRule

      public int executeRule() throws Throwable
      ロジッククラス実行
      定義:
      executeRule インタフェース内 jp.ne.mki.wedge.run.interfaces.RuleEngineInterface
      オーバーライド:
      executeRule クラス内 AbstractBase
      戻り値:
      int
      例外:
      Throwable
    • setThisRuleType

      protected void setThisRuleType()
    • terminate

      public void terminate()
      終了処理
      定義:
      terminate インタフェース内 jp.ne.mki.wedge.run.interfaces.RuleEngineInterface
      オーバーライド:
      terminate クラス内 AbstractBase
    • setEngineManager

      public void setEngineManager(jp.ne.mki.wedge.run.interfaces.EngineManagerInterface manager)
      クラスからコピーされた説明: AbstractBase
      実行しているエンジンのManagerを設定する
      定義:
      setEngineManager インタフェース内 jp.ne.mki.wedge.run.interfaces.RuleEngineInterface
      オーバーライド:
      setEngineManager クラス内 AbstractBase
      パラメータ:
      manager - 実行しているエンジンのManager
    • getExecuteParameter

      public String getExecuteParameter()
      実行パラメータの取得
      戻り値:
      String
    • setExecuteParameter

      public void setExecuteParameter(String parameter)
      実行パラメータの設定
    • setSkipNumber

      public void setSkipNumber(String skipNumber)
      スキップカウント設定
      パラメータ:
      String -
    • setSkipNumber

      public void setSkipNumber(int skipNumber)
      スキップカウント設定
      パラメータ:
      int -
    • getSkipNumber

      public int getSkipNumber()
      スキップカウント取得
      戻り値:
      int
    • executeServerDc

      public int executeServerDc(String physicalName) throws Exception, Throwable
      DC 実行
      パラメータ:
      physicalName -
      戻り値:
      int
      例外:
      Exception
      Throwable
    • executeServerDcChangeSql

      public int executeServerDcChangeSql(String physicalName, String sql) throws Exception, Throwable
      DC 実行
      パラメータ:
      physicalName -
      sql -
      戻り値:
      int 結果
      例外:
      Exception
      Throwable
    • executeServerDcChangeConnection

      public int executeServerDcChangeConnection(String physicalName, String connectDb) throws Exception, Throwable
      DC 実行
      パラメータ:
      physicalName -
      connectDb -
      戻り値:
      int
      例外:
      Exception
      Throwable
    • executeServerDcChangeSqlConnection

      public int executeServerDcChangeSqlConnection(String physicalName, String sql, String connectDb) throws Exception, Throwable
      DC 実行
      パラメータ:
      physicalName -
      sql -
      connectDb -
      戻り値:
      int
      例外:
      Exception
      Throwable
    • executeServerRule

      public int executeServerRule(String physicalName) throws Exception, Throwable
      ロジッククラス 実行
      パラメータ:
      physicalName -
      戻り値:
      int
      例外:
      Exception
      Throwable
    • executeDecisionTable

      public int executeDecisionTable(String physicalName) throws Exception, Throwable
      デシションテーブル 実行
      パラメータ:
      physicalName -
      例外:
      Exception
      Throwable
    • executeDecisionTable

      public int executeDecisionTable(jp.ne.mki.wedge.run.common.library.XM_Data saverData) throws Exception, Throwable
      デシションテーブル 実行
      パラメータ:
      saverData -
      戻り値:
      int
      例外:
      Exception
      Throwable
    • executeCallStran

      public int executeCallStran(String physicalName) throws Exception, Throwable
      外部トランザクション 実行
      パラメータ:
      physicalName -
      戻り値:
      int
      例外:
      Exception
      Throwable
    • setServerStatus

      public void setServerStatus(int status)
      推奨されていません。
      getControlRecord().setServerStatus() を使用してください
      サーバステータス設定
      パラメータ:
      status -
    • getServerControlData

      public jp.ne.mki.wedge.run.common.library.XM_ServerControlData getServerControlData()
      ServerControlDataの取得
      実行エンジンより起動していない場合には null になる可能性があります。
      戻り値:
      XM_ServerControlData
    • getTransactionArea

      public Hashtable<Object,Object> getTransactionArea()
      TransactionAreaの取得
      パラメータ:
      XM_ServerControlData -
    • getStepParameter

      public String getStepParameter(String key)
      Batch用 getStepParameterの取得
      パラメータ:
      key -
      戻り値:
      Hashtable
    • getStepParameter

      public Hashtable<String,String> getStepParameter()
      StepParameterの取得
      戻り値:
      Hashtable
    • getJobParameter

      public String getJobParameter(String key)
      Batch用 getJobParameterの取得
      戻り値:
      Hashtable
    • getBatchStatus

      public String getBatchStatus()
      Batch用 getBatchStatusの取得
      戻り値:
      String
    • setBatchStatus

      public void setBatchStatus(String status)
      Batch用 setBatchStatusの設定
      パラメータ:
      String -
    • errorFixed

      public void errorFixed()
      エラー処理が行われたことをコントロールレコードに設定します。
    • showErrorDialog

      public static void showErrorDialog(jp.ne.mki.wedge.run.library.WedgeLog2RunServer wedgeLog, String message, jp.ne.mki.wedge.run.interfaces.ControlRecordInterface controlRecord, String className, String physicalName)
      推奨されていません。
      エラーダイアログを表示する
    • writeTraceLog

      protected static void writeTraceLog(jp.ne.mki.wedge.run.library.WedgeLog2RunServer wedgeLog, String message, String className, String physicalName, jp.ne.mki.wedge.run.interfaces.ControlRecordInterface controlRecord)
      推奨されていません。
      トレース Logの吐き出し
    • writeTraceLog

      public static void writeTraceLog(jp.ne.mki.wedge.run.library.WedgeLog2RunServer wedgeLog, jp.ne.mki.wedge.run.interfaces.ControlRecordInterface controlRecord, String message)
      推奨されていません。
      TraceLog の吐き出し
    • writeErrorLog

      public static void writeErrorLog(jp.ne.mki.wedge.run.library.WedgeLog2RunServer wedgeLog, String message, jp.ne.mki.wedge.run.data.ControlRecord controlRecord, Throwable th)
      推奨されていません。
      Exception の バックとレースを吐き出し
      パラメータ:
      th - 例外オブジェクト
    • writeErrorLog

      public static void writeErrorLog(jp.ne.mki.wedge.run.library.WedgeLog2RunServer wedgeLog, String message)
      推奨されていません。
      エラーログ出力
      パラメータ:
      message -
    • getLogicClassType

      public jp.ne.mki.wedge.run.enums.LogicClassType getLogicClassType()
      ロジッククラスタイプを取得します。
      定義:
      getLogicClassType インタフェース内 jp.ne.mki.wedge.run.interfaces.RuleEngineInterface
      戻り値:
      LogicClassType.SERVER
      導入されたバージョン:
      1.3.0-03