|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectjava.lang.Thread
jp.co.scs.mbench.LogWriter
public class LogWriter
System log handler (writer)
入れ子のクラスの概要 |
---|
クラス java.lang.Thread から継承された入れ子のクラス/インタフェース |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
フィールドの概要 | |
---|---|
static int |
DEBUG
Log level:Debug |
static int |
ERROR
Log level:Error |
static int |
INFO
Log level:Info |
クラス java.lang.Thread から継承されたフィールド |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
コンストラクタの概要 | |
---|---|
LogWriter(java.lang.String logName)
Creates a log writer instance with the log file name. |
メソッドの概要 | |
---|---|
void |
clean()
clean |
int |
getLogLevel()
Gets the level of log. |
java.lang.String |
getLogName()
Gets the log file name. |
int |
getLogQueueSize()
Gets the size of log list. |
void |
init()
initializes |
boolean |
isInitialized()
Gets the flag for initialize. |
boolean |
isRunning()
Gets the flag for initialize. |
void |
run()
Write log to the file, stdout then repeat. |
void |
setLogLevel(int logLevel)
Sets the level of log. |
void |
setLogName(java.lang.String logName)
Sets the log file name. |
void |
write(int level,
java.lang.String desc)
Add system log to the queue. |
クラス java.lang.Thread から継承されたメソッド |
---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
クラス java.lang.Object から継承されたメソッド |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
フィールドの詳細 |
---|
public static final int DEBUG
public static final int INFO
public static final int ERROR
コンストラクタの詳細 |
---|
public LogWriter(java.lang.String logName)
logName
- log file nameメソッドの詳細 |
---|
public java.lang.String getLogName()
public void setLogName(java.lang.String logName)
logName
- log file namepublic int getLogLevel()
public void setLogLevel(int logLevel)
logLevel
- level of logpublic boolean isInitialized()
public boolean isRunning()
public int getLogQueueSize()
public void init() throws BenchmarkTerminateException
BenchmarkTerminateException
- benchmark should be terminatedpublic void write(int level, java.lang.String desc)
level
- log level for this logdesc
- matter of logpublic void run()
java.lang.Runnable
内の run
java.lang.Thread
内の run
public void clean()
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |