|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectjp.terasoluna.fw.batch.standard.StandardCollectorResultHandler
public class StandardCollectorResultHandler
CollectorResultHandler インタフェースの標準実装クラス。
このクラスでは、コレクタ処理結果が0件である場合にも エラーとせずにそのまま継続する。
コレクタ処理結果がNORMAL_CONTINUE、
NORMAL_ENDの場合は情報ログに、
ERROR_CONTINUEの場合は警告ログに、
ERROR_ENDの場合はエラーログにそれぞれ出力する。
| フィールドの概要 | |
|---|---|
private static Log |
log
ログインスタンス。 |
| コンストラクタの概要 | |
|---|---|
StandardCollectorResultHandler()
|
|
| メソッドの概要 | |
|---|---|
void |
handle(CollectorResult collectorResult,
JobStatus jobStatus)
コレクタ処理結果を処理する。 |
protected void |
writeErrorLog(java.lang.String message,
JobStatus jobStatus,
CollectorResult collectorResult)
コレクタ処理結果でのエラーログを出力する。 |
protected void |
writeInfoLog(java.lang.String message,
JobStatus jobStatus,
CollectorResult collectorResult)
コレクタ処理結果での情報ログを出力する。 |
protected void |
writeWarnLog(java.lang.String message,
JobStatus jobStatus,
CollectorResult collectorResult)
コレクタ処理結果での警告ログを出力する。 |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| フィールドの詳細 |
|---|
private static final Log log
| コンストラクタの詳細 |
|---|
public StandardCollectorResultHandler()
| メソッドの詳細 |
|---|
public void handle(CollectorResult collectorResult,
JobStatus jobStatus)
CollectorResultHandler 内の handlecollectorResult - コレクタ処理結果jobStatus - ジョブステータス
protected void writeInfoLog(java.lang.String message,
JobStatus jobStatus,
CollectorResult collectorResult)
message - メッセージjobStatus - ジョブステータスcollectorResult - コレクタ処理結果
protected void writeErrorLog(java.lang.String message,
JobStatus jobStatus,
CollectorResult collectorResult)
message - メッセージjobStatus - ジョブステータスcollectorResult - コレクタ処理結果
protected void writeWarnLog(java.lang.String message,
JobStatus jobStatus,
CollectorResult collectorResult)
message - メッセージjobStatus - ジョブステータスcollectorResult - コレクタ処理結果
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||