jp.co.scs.mbench.component.quadruplenode
クラス SelSel01T1Benchmark

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

public class SelSel01T1Benchmark
extends java.lang.Object
implements Benchmark

Benchmark which change one row randamly from 1 to 60000 rows and retrieve the changed row on table t1 through double SQL nodes.

作成者:
Masato Koga

コンストラクタの概要
SelSel01T1Benchmark()
           
 
メソッドの概要
 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
 

コンストラクタの詳細

SelSel01T1Benchmark

public SelSel01T1Benchmark()
メソッドの詳細

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;
update t4 set c2 = c2 + 1 where c1 = ${key};
commit;

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

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

clean

public void clean()
Disconnect connection.

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