jp.co.scs.mbench
クラス BenchmarkMain

java.lang.Object
  上位を拡張 jp.co.scs.mbench.BenchmarkMain

public class BenchmarkMain
extends java.lang.Object

Main method class of mBench.

作成者:
Tetsuto Ikeda, Masato Koga

フィールドの概要
static java.lang.String END_TIME
          text for end time
static java.lang.String MULTI_CLIENT
          text for the flag which means using multiple clients
static java.util.Set optionSet
          set of option name
static java.util.Map optionTable
          mapping table for short option name and long option name
static java.lang.String REPEAT_NUMBER
          text for repeat number
static java.lang.String THREAD_NUMBER
          text for threads number
static java.lang.String TX_NUMBER
          text for transaction number of all benchmark
 
コンストラクタの概要
BenchmarkMain()
           
 
メソッドの概要
static BenchmarkManager getManager()
          Gets the benchmark manager instance.
static java.lang.String getUsage()
          Returns a usage message
static void main(java.lang.String[] args)
          Starts the benchmark.
static void setManager(BenchmarkManager manager)
          Sets the benchmark manager instance.
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

THREAD_NUMBER

public static final java.lang.String THREAD_NUMBER
text for threads number

関連項目:
定数フィールド値

REPEAT_NUMBER

public static final java.lang.String REPEAT_NUMBER
text for repeat number

関連項目:
定数フィールド値

TX_NUMBER

public static final java.lang.String TX_NUMBER
text for transaction number of all benchmark

関連項目:
定数フィールド値

END_TIME

public static final java.lang.String END_TIME
text for end time

関連項目:
定数フィールド値

MULTI_CLIENT

public static final java.lang.String MULTI_CLIENT
text for the flag which means using multiple clients

関連項目:
定数フィールド値

optionSet

public static final java.util.Set optionSet
set of option name


optionTable

public static final java.util.Map optionTable
mapping table for short option name and long option name

コンストラクタの詳細

BenchmarkMain

public BenchmarkMain()
メソッドの詳細

getManager

public static BenchmarkManager getManager()
Gets the benchmark manager instance.

戻り値:
benchmark manager instance

setManager

public static void setManager(BenchmarkManager manager)
Sets the benchmark manager instance.

パラメータ:
manager - benchmark manager instance

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Starts the benchmark.


[number of containers(threads)]
  -t20  or  --threadNumber=20
[number of iteration for each container]
  -r10  or  --repeatNumber=10
 [number of all benchmark transaction]
  -T20  or  --transactionNumber=20
[number of benchmark end time (second)]
  -e10  or  --benchmarkEndTime=10
[name for using multiple clients]
  --multi-clients=Primary_node
 [benchmark component name]
  benchmark_name


example:
 java BenchmarkMain -t30 -r10 sample-xsql-benchmark

パラメータ:
args - command line arguments
例外:
java.lang.Exception

getUsage

public static java.lang.String getUsage()
Returns a usage message

戻り値:
usage message