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

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

public class DeleteT2Benchmark
extends java.lang.Object
implements Benchmark

Benchmark which delete one row sequentially from 1 to 60000 rows on table t2 through triple SQL nodes

作成者:
Masato Koga

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

コンストラクタの詳細

DeleteT2Benchmark

public DeleteT2Benchmark()
メソッドの詳細

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;
delete from t2 where c1 = ${key};
commit;

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

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

clean

public void clean()
Disconnect connection.

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