jp.co.scs.mbench.component.triplenode
クラス Select02T1Benchmark

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

public class Select02T1Benchmark
extends java.lang.Object
implements Benchmark

Benchmark which retrieve one row randamly from 1 to 60000 rows on table t1 through triple SQL nodes

作成者:
Masato Koga

コンストラクタの概要
Select02T1Benchmark()
           
 
メソッドの概要
 void clean()
          Disconnect connection.
 java.lang.String[] execute()
          Execute benchmark transaction.
 java.lang.String getBenchmarkName()
          Get the component name.
 java.lang.String[] getOptionLabels()
          Get labels mesured by benchmark component.
 void init()
          Initialize.
 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
 

コンストラクタの詳細

Select02T1Benchmark

public Select02T1Benchmark()
メソッドの詳細

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.

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

setOptionLabels

public void setOptionLabels(java.lang.String[] optionLabels)
Set labels mesured by benchmark component.

定義:
インタフェース Benchmark 内の setOptionLabels
パラメータ:
optionLabels - Labels which benchmark component mesures

init

public void init()
          throws BenchmarkTerminateException
Initialize. Get datasource and establish connection. Target SQL node is decided by round-robin algorithm.

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

execute

public java.lang.String[] execute()
Execute benchmark transaction.
A transaction perform;

start transaction;
select * from t1 where c1 = ${key};
commit;

${key} is randomly decided from 1 to 60000.
Rollback and Retry in case exception occures before commit.
Return Primary Key and Value of second column as logging.

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

clean

public void clean()
Disconnect connection.

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