jawprof.recorder
クラス CommonsLoggingRecorder

java.lang.Object
  拡張jawprof.recorder.AbstractRecorder
      拡張jawprof.recorder.PersistentRecorder
          拡張jawprof.recorder.FormatRecorder
              拡張jawprof.recorder.CommonsLoggingRecorder
すべての実装インタフェース:
Recorder

public class CommonsLoggingRecorder
extends FormatRecorder

Jakarta Commons Logging を使用してトランザクションを記録します. Jakarta Commons Logging につ いては http://www.apache.org/ を参照してください.

このクラスを利用するためには, commons-logging.properties ファイルを準備して Commons Logging の動作を決定する必要があります. Commons Logging は実装ロガーを伴って利用することが一般的で す。この実装ロガーとして Log4J を利用する場合は, log4j.properties ファイルに次のように記述 することで, このクラスを利用することができます.

 log4j.category.jawprof.CommonsLoggingRecorder=INFO
 

バージョン:
1.0

コンストラクタの概要
CommonsLoggingRecorder(JawprofContext context)
          設定されたフォーマットで, CommonsLogging へ出力する Recorder を作成します.
 
メソッドの概要
protected  void printLapRecord(java.lang.String message)
          フォーマットされたメッセージを出力します.
protected  void printStartRecord(java.lang.String message)
          フォーマットされたメッセージを出力します.
protected  void printStopRecord(java.lang.String message)
          フォーマットされたメッセージを出力します.
 void saveGroupMap(java.lang.String group, java.util.Collection types)
          引数で与えられたトランザクショングループに所属するトランザクション種別の所属情報を保存し ます.
 
クラス jawprof.recorder.FormatRecorder から継承したメソッド
persist
 
クラス jawprof.recorder.PersistentRecorder から継承したメソッド
save
 
クラス jawprof.recorder.AbstractRecorder から継承したメソッド
hold, release
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

CommonsLoggingRecorder

public CommonsLoggingRecorder(JawprofContext context)
設定されたフォーマットで, CommonsLogging へ出力する Recorder を作成します.

パラメータ:
context - 設定情報
メソッドの詳細

saveGroupMap

public void saveGroupMap(java.lang.String group,
                         java.util.Collection types)
引数で与えられたトランザクショングループに所属するトランザクション種別の所属情報を保存し ます. 現在は実装がありません.

定義:
インタフェース Recorder 内の saveGroupMap
オーバーライド:
クラス FormatRecorder 内の saveGroupMap
パラメータ:
group - トランザクショングループ
types - 所属するトランザクション種別のコレクション

printStartRecord

protected void printStartRecord(java.lang.String message)
フォーマットされたメッセージを出力します.

定義:
クラス FormatRecorder 内の printStartRecord
パラメータ:
message - フォーマットされた文字列

printStopRecord

protected void printStopRecord(java.lang.String message)
フォーマットされたメッセージを出力します.

定義:
クラス FormatRecorder 内の printStopRecord
パラメータ:
message - フォーマットされた文字列

printLapRecord

protected void printLapRecord(java.lang.String message)
フォーマットされたメッセージを出力します.

定義:
クラス FormatRecorder 内の printLapRecord
パラメータ:
message - フォーマットされた文字列


Copyright 2004 Taichirou Etoh. All Rights Reserved.