jp.co.scs.mbench.component
クラス SampleBenchmark

java.lang.Object
  上位を拡張 jp.co.scs.mbench.component.SampleBenchmark
すべての実装されたインタフェース:
Benchmark

public class SampleBenchmark
extends java.lang.Object
implements Benchmark

Sample Test Transaction for mBench biginners.

作成者:
Masato Koga

コンストラクタの概要
SampleBenchmark()
           
 
メソッドの概要
 void clean()
          Finalize for each threads.
 java.lang.String[] execute()
          Test transaction for each threads.
 java.lang.String getBenchmarkName()
          Get the component name.
 java.lang.String[] getOptionLabels()
          Get labels mesured by benchmark component.
 void init()
          Initialize for each threads.
 void setBenchmarkName(java.lang.String benchmarkName)
          Set the component name.
 void setOptionLabels(java.lang.String[] optionLabels)
          Set labels mesured by benchmark component.
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

SampleBenchmark

public SampleBenchmark()
メソッドの詳細

getBenchmarkName

public java.lang.String getBenchmarkName()
Get the component name.

定義:
インタフェース Benchmark 内の getBenchmarkName
戻り値:
Name of component

setBenchmarkName

public void setBenchmarkName(java.lang.String benchmarkName)
Set the component name.

定義:
インタフェース Benchmark 内の setBenchmarkName
パラメータ:
benchmarkName - Name of component

getOptionLabels

public java.lang.String[] getOptionLabels()
Get labels mesured by benchmark component. If you define labels for your original test, you have to define attribute "optionLables" String array.

定義:
インタフェース Benchmark 内の getOptionLabels
戻り値:
Label of items mesured by benchmark component

setOptionLabels

public void setOptionLabels(java.lang.String[] optionLabels)
Set labels mesured by benchmark component. If you define labels for your original test, you have to define attribute "optionLables" String array.

定義:
インタフェース Benchmark 内の setOptionLabels
パラメータ:
optionLabels - labels

init

public void init()
          throws BenchmarkTerminateException
Initialize for each threads. For example, if you test a database transaction, you can define database connect process.

定義:
インタフェース Benchmark 内の init
例外:
BenchmarkTerminateException

execute

public java.lang.String[] execute()
                           throws ThreadTerminateException,
                                  BenchmarkTerminateException
Test transaction for each threads. You can implement your transaction that you want to test.

定義:
インタフェース Benchmark 内の execute
戻り値:
results of each execution of benchmark
例外:
ThreadTerminateException
BenchmarkTerminateException

clean

public void clean()
           throws BenchmarkAbortException
Finalize for each threads. If you test a database transaction, you can define database disconnect process.

定義:
インタフェース Benchmark 内の clean
例外:
BenchmarkAbortException