|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object jp.go.nict.langrid.servicecontainer.decorator.LogDecorator
public class LogDecorator
ロギングを行うデコレータ 設定値は spring で注入可能となっている
コンストラクタの概要 | |
---|---|
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 |
コンストラクタの詳細 |
---|
public LogDecorator()
メソッドの詳細 |
---|
public long getProcessTimeWarningThreasholdMillis()
public void setProcessTimeWarningThreasholdMillis(long processTimeWarningThreasholdMillis)
public boolean getMeasureProcessTime()
public void setMeasureProcessTime(boolean measureProcessTime)
public Object doDecorator(Request request, DecoratorChain chain) throws InvalidParameterException, ProcessFailedException
Decorator
内の doDecorator
request
- 処理のパラメータchain
- デコレータのチェイン
InvalidParameterException
ProcessFailedException
protected void processStart(Class<?> serviceClass)
protected long processLap(String message)
message
- ログメッセージprotected void processEnd()
message
- ログメッセージprotected void processEnd(Runnable onThreasholdOver)
|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |