jp.co.scs.mbench
クラス CSVAsynchronousDataWriter

java.lang.Object
  上位を拡張 java.lang.Thread
      上位を拡張 jp.co.scs.mbench.CSVAsynchronousDataWriter
すべての実装されたインタフェース:
java.lang.Runnable, DataWriter

public class CSVAsynchronousDataWriter
extends java.lang.Thread
implements DataWriter

Data log handler (writer), asynchronous, cvs format.

作成者:
Tetsuro Ikeda

入れ子のクラスの概要
 
クラス java.lang.Thread から継承された入れ子のクラス/インタフェース
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
フィールドの概要
 
クラス java.lang.Thread から継承されたフィールド
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
コンストラクタの概要
CSVAsynchronousDataWriter(java.lang.String dataName)
          Creates the instance of this class with file name
 
メソッドの概要
 void clean()
          finalize this instance
 java.lang.String getDataName()
          Gets the file name
 int getDataQueueSize()
          Gets the size of queue
 void init()
          initialize this instance
 boolean isInitialized()
          Gets if this instance is already initialized
 boolean isRunning()
          Gets the if this instance is running
 void run()
          write the data log in queue and loop
 void setDataName(java.lang.String dataName)
          Sets the file name
 void write(java.lang.String[] data)
          Add the data log to 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
 

コンストラクタの詳細

CSVAsynchronousDataWriter

public CSVAsynchronousDataWriter(java.lang.String dataName)
Creates the instance of this class with file name

パラメータ:
dataName - file name
メソッドの詳細

setDataName

public void setDataName(java.lang.String dataName)
Sets the file name

定義:
インタフェース DataWriter 内の setDataName
パラメータ:
dataName - file name

getDataName

public java.lang.String getDataName()
Gets the file name

定義:
インタフェース DataWriter 内の getDataName
戻り値:
file name3

isInitialized

public boolean isInitialized()
Gets if this instance is already initialized

戻り値:
the flag if this instance is already initialized

isRunning

public boolean isRunning()
Gets the if this instance is running

戻り値:
the flag if this instance is running

getDataQueueSize

public int getDataQueueSize()
Gets the size of queue

戻り値:
size of queue

init

public void init()
          throws BenchmarkTerminateException
initialize this instance

定義:
インタフェース DataWriter 内の init
例外:
BenchmarkTerminateException - benchmark should be terminated

write

public void write(java.lang.String[] data)
Add the data log to queue

定義:
インタフェース DataWriter 内の write
パラメータ:
data - data log

run

public void run()
write the data log in queue and loop

定義:
インタフェース java.lang.Runnable 内の run
オーバーライド:
クラス java.lang.Thread 内の run

clean

public void clean()
finalize this instance

定義:
インタフェース DataWriter 内の clean