|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectjava.lang.Thread
jp.co.scs.mbench.BenchmarkContainer
public class BenchmarkContainer
Container for emulating user client.
入れ子のクラスの概要 |
---|
クラス java.lang.Thread から継承された入れ子のクラス/インタフェース |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
フィールドの概要 | |
---|---|
static java.lang.String[] |
SYSTEM_LABELS
default labels |
クラス java.lang.Thread から継承されたフィールド |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
コンストラクタの概要 | |
---|---|
BenchmarkContainer(int containerID,
BenchmarkInfo info,
Synchronizer synchronizer,
LogWriter logWriter,
DataWriter dataWriter)
Create a instance of this class |
メソッドの概要 | |
---|---|
void |
cleanTarget()
finalizes the benchmark component |
void |
executeTarget()
executes the benchmark. |
int |
getContainerID()
gets the container ID. |
java.lang.String |
getCurrentState()
gets the current state of this container |
DataWriter |
getDataWriter()
gets the data writer instance. |
long |
getEndTime()
gets the end time of current benchmark iteration. |
long |
getStartTime()
gets the start time of current benchmark iteration. |
void |
initTarget()
creates the benchmark component instance and initialize it by using benchmark infomation. |
boolean |
isInitialized()
gets the flag of if this container is already initialized. |
void |
run()
starts the benchmark. |
void |
setDataWriter(DataWriter dataWriter)
sets the data writer instance. |
void |
setInitialized(boolean isInitialized)
sets the flag of if this container is already initialized. |
void |
setLogWriter(LogWriter logWriter)
sets the log writer instance. |
クラス 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 java.lang.String[] SYSTEM_LABELS
コンストラクタの詳細 |
---|
public BenchmarkContainer(int containerID, BenchmarkInfo info, Synchronizer synchronizer, LogWriter logWriter, DataWriter dataWriter)
containerID
- container IDinfo
- Information of benchmark senariosynchronizer
- the object to synchronize each containerlogWriter
- "log" writer instancedataWriter
- "data" writer instanceメソッドの詳細 |
---|
public int getContainerID()
public void setLogWriter(LogWriter logWriter)
logWriter
- log writer instancepublic void setDataWriter(DataWriter dataWriter)
dataWriter
- data writer instance.public DataWriter getDataWriter()
public long getStartTime()
public long getEndTime()
public boolean isInitialized()
public java.lang.String getCurrentState()
public void setInitialized(boolean isInitialized)
isInitialized
- flag of if this container is already initialized.public void initTarget() throws BenchmarkTerminateException
BenchmarkTerminateException
- exception for stop whole benchmarkpublic void run()
java.lang.Runnable
内の run
java.lang.Thread
内の run
public void executeTarget()
public void cleanTarget() throws BenchmarkAbortException
BenchmarkAbortException
- exception for stop whole benchmark
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |