okuyama.base
クラス DefaultJobController

java.lang.Object
  上位を拡張 okuyama.base.DefaultJobController
すべての実装されたインタフェース:
IJobController

public class DefaultJobController
extends java.lang.Object
implements IJobController

Job実行コントローラクラス.
標準版.
JobConfigの情報に従って処理を実行.

作成者:
T.Okuyama

コンストラクタの概要
DefaultJobController()
           
 
メソッドの概要
 boolean checkNormalBatchEnd()
          標準終了ファイルの存在を確認し存在する場合は
現在RUNのステータスになっているJobを終了するのを待つ
スレッドを起動する.
 void execute()
          コントローラ実行メソッド.
 void executeErrorProcess()
          ErrorProcessクラスを実行.
 java.lang.String executeProcess(int type)
          Pre、PostProcessクラスを実行.
 void runJobEndWait()
          現在RUNのステータスになっているJobを終了するのを待つ
スレッドを起動する.
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

DefaultJobController

public DefaultJobController()
メソッドの詳細

execute

public void execute()
             throws BatchException
コントローラ実行メソッド.

定義:
インタフェース IJobController 内の execute
例外:
BatchException

executeProcess

public java.lang.String executeProcess(int type)
                                throws BatchException
Pre、PostProcessクラスを実行.

パラメータ:
type - 1:preprocess 2:postprocess
戻り値:
String それぞれのprocessの戻り値を返す
例外:
BatchException

executeErrorProcess

public void executeErrorProcess()
ErrorProcessクラスを実行.
本メソットは例外をスローしない.
例外内容のみログに吐き出す.


runJobEndWait

public void runJobEndWait()
                   throws java.lang.Exception
現在RUNのステータスになっているJobを終了するのを待つ
スレッドを起動する.

例外:
java.lang.Exception

checkNormalBatchEnd

public boolean checkNormalBatchEnd()
                            throws java.lang.Exception
標準終了ファイルの存在を確認し存在する場合は
現在RUNのステータスになっているJobを終了するのを待つ
スレッドを起動する.
スレッド起動後再度このメソッドが呼ばれた場合はそのスレッドの
終了を確認するそのスレッドが終了したタイミングで
終了したことをリターンで通知する.

戻り値:
boolean true:終了ファイルあり false:終了ファイルなし
例外:
java.lang.Exception