intra-mart(R) 6.0.13

jp.co.intra_mart.framework.system.log
クラス DefaultLogPropertyHandler

java.lang.Object
  拡張jp.co.intra_mart.framework.system.log.DefaultLogPropertyHandler
すべての実装インタフェース:
LogPropertyHandler, PropertyHandler

public class DefaultLogPropertyHandler
extends Object
implements LogPropertyHandler

ログに関連するデフォルトのプロパティハンドラです。 プロパティの設定内容は以下のとおりです。

キー 内容
agent.class LogAgentのクラス名
agent.param.パラメータ名 ログエージェントに渡すパラメータ

導入されたバージョン:
4.2

フィールドの概要
static String DEFAULT_BUNDLE_NAME
          デフォルトのリソースバンドル名
static String DEFAULT_BUNDLE_NAME_PARAM
          リソースバンドル名のパラメータ名
 
コンストラクタの概要
DefaultLogPropertyHandler()
          DefaultLogPropertyHandlerを新規に生成します。
 
メソッドの概要
 String getLogAgentName()
          ログエージェントのクラス名を取得します。
 LogAgentParam[] getLogAgentParams()
          ログエージェントのパラメータを取得します。
 void init(PropertyParam[] params)
          プロパティハンドラを初期化します。
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

DEFAULT_BUNDLE_NAME

public static final String DEFAULT_BUNDLE_NAME
デフォルトのリソースバンドル名

関連項目:
定数フィールド値

DEFAULT_BUNDLE_NAME_PARAM

public static final String DEFAULT_BUNDLE_NAME_PARAM
リソースバンドル名のパラメータ名

関連項目:
定数フィールド値
コンストラクタの詳細

DefaultLogPropertyHandler

public DefaultLogPropertyHandler()
DefaultLogPropertyHandlerを新規に生成します。

メソッドの詳細

init

public void init(PropertyParam[] params)
          throws PropertyHandlerException
プロパティハンドラを初期化します。

定義:
インタフェース PropertyHandler 内の init
パラメータ:
params - 初期パラメータ
例外:
PropertyHandlerException - プロパティハンドラの初期化時に例外が発生

getLogAgentName

public String getLogAgentName()
                       throws LogPropertyException
ログエージェントのクラス名を取得します。 何も設定されていない場合nullが返ります。

定義:
インタフェース LogPropertyHandler 内の getLogAgentName
戻り値:
ログエージェントのクラス名(設定されていない場合null)
例外:
LogPropertyException - ログエージェントのクラス名の取得時に例外が発生

getLogAgentParams

public LogAgentParam[] getLogAgentParams()
                                  throws LogPropertyException
ログエージェントのパラメータを取得します。 何も設定されていない場合大きさが0の配列が返ります。

定義:
インタフェース LogPropertyHandler 内の getLogAgentParams
戻り値:
ログエージェントのパラメータの配列
例外:
LogPropertyException - ログエージェントのパラメータの取得時に例外が発生

intra-mart(R) 6.0.13

Copyright © 2000-2009 NTT DATA INTRAMART CO.,LTD.. All Rights Reserved.