jp.go.nict.langrid.servicecontainer.decorator
クラス LogDecorator

java.lang.Object
  上位を拡張 jp.go.nict.langrid.servicecontainer.decorator.LogDecorator
すべての実装されたインタフェース:
Decorator

public class LogDecorator
extends Object
implements Decorator

ロギングを行うデコレータ 設定値は spring で注入可能となっている

作成者:
Shingo Furukido, Takao Nakaguchi

コンストラクタの概要
LogDecorator()
           
 
メソッドの概要
 Object doDecorator(Request request, DecoratorChain chain)
          デコレータのメイン
 boolean getMeasureProcessTime()
          処理時間ログ出力設定の取得
 long getProcessTimeWarningThreasholdMillis()
          処理時間警告のスレッシュホールド(ms)の設定
protected  void processEnd()
          処理終了ログ
protected  void processEnd(Runnable onThreasholdOver)
          処理終了ログ
protected  long processLap(String message)
          処理の途中に挿入するログ
protected  void processStart(Class<?> serviceClass)
          処理開始ログ
 void setMeasureProcessTime(boolean measureProcessTime)
          処理時間ログ出力設定の設定 (spring で注入)
 void setProcessTimeWarningThreasholdMillis(long processTimeWarningThreasholdMillis)
          処理時間警告のスレッシュホールド(ms)の設定 (spring で注入)
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

LogDecorator

public LogDecorator()
メソッドの詳細

getProcessTimeWarningThreasholdMillis

public long getProcessTimeWarningThreasholdMillis()
処理時間警告のスレッシュホールド(ms)の設定


setProcessTimeWarningThreasholdMillis

public void setProcessTimeWarningThreasholdMillis(long processTimeWarningThreasholdMillis)
処理時間警告のスレッシュホールド(ms)の設定 (spring で注入)


getMeasureProcessTime

public boolean getMeasureProcessTime()
処理時間ログ出力設定の取得


setMeasureProcessTime

public void setMeasureProcessTime(boolean measureProcessTime)
処理時間ログ出力設定の設定 (spring で注入)


doDecorator

public Object doDecorator(Request request,
                          DecoratorChain chain)
                   throws InvalidParameterException,
                          ProcessFailedException
デコレータのメイン

定義:
インタフェース Decorator 内の doDecorator
パラメータ:
request - 処理のパラメータ
chain - デコレータのチェイン
例外:
InvalidParameterException
ProcessFailedException

processStart

protected void processStart(Class<?> serviceClass)
処理開始ログ


processLap

protected long processLap(String message)
処理の途中に挿入するログ

パラメータ:
message - ログメッセージ

processEnd

protected void processEnd()
処理終了ログ

パラメータ:
message - ログメッセージ

processEnd

protected void processEnd(Runnable onThreasholdOver)
処理終了ログ