概要 | パッケージ | クラス | 使用 | 階層ツリー | 非推奨 API | 索引 | ヘルプ
前のクラス 次のクラス | フレームあり フレームなし
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド

## jp.co.scs.mbench
クラス BenchmarkManager

    java.lang.Object
      java.lang.Thread
          jp.co.scs.mbench.BenchmarkManager

すべての実装されたインタフェース:
  java.lang.Runnable

直系の既知のサブクラス:
  StubBenchmarkMainBM

    public class BenchmarkManager

extends java.lang.Thread

The Benchmark Manager Class.

作成者:
  Tetsuro Ikeda, Masato Koga

入れ子のクラスの概要

クラス java.lang.Thread から継承された入れ子のクラス/インタフェース
`java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler`

フィールドの概要

クラス java.lang.Thread から継承されたフィールド
`MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY`

コンストラクタの概要
`BenchmarkManager(java.lang.String benchmarkName)` Creates a benchmark manager instance with benchmark name.

メソッドの概要
`void` | `addTerminatedContainer(BenchmarkContainer container)` Adds the containers to list which are not finished normally for timeout or throwing exception.
`BenchmarkContainer[]` | `getBenchmarkContainers()` Gets the benchmark containers.
`BenchmarkInfo` | `getBenchmarkInfo()` Gets the benchmark information.
`java.lang.String` | `getBenchmarkName()` Gets the benchmark name.
`long` | `getBenchmarkTimeout()` Gets the benchmark timeout (milliseconds)
`java.lang.String` | `getCurrentState()` Gets the current state
`DataWriter` | `getDataWriter()` Gets the data log handler.
`LogWriter` | `getLogWriter()` Gets the system log handler.
`java.lang.Integer` | `getManagerID()` Gets the ID of this manager.
`java.util.Map` | `getOptionMap()` Gets the options
`int` | `getSocketTimeout()` Gets the timeout (milliseconds) for communicating in multiple node benchmark.
`Synchronizer` | `getSynchronizer()` Gets the synchronizer
`java.util.List` | `getTerminatedContainers()` Gets the containers list which are not finished normally for timeout or throwing exception.
`void` | `run()` Run the benchmark.
`void` | `setBenchmarkContainers(BenchmarkContainer[] containers)` Sets the benchmark containers.
`void` | `setBenchmarkInfo(BenchmarkInfo info)` Sets the benchmark information.
`void` | `setBenchmarkName(java.lang.String benchmarkName)` Sets the benchmark name
`void` | `setBenchmarkTimeout(long benchmarkTimeout)` Sets the benchmark timeout (milliseconds).
`void` | `setCurrentState(java.lang.String currentState)` Sets the current state
`void` | `setDataWriter(DataWriter dataWriter)` Sets the data log handler.
`void` | `setLogWriter(LogWriter logWriter)` Sets the system log handler.
`void` | `setManagerID(java.lang.Integer managerID)` Sets the ID of this manager.
`void` | `setOptionMap(java.util.Map optionMap)` Sets the options.
`void` | `setSocketTimeout(int socketTimeout)` Sets the timeout (milliseconds) for communicating in multiple node benchmark.
`void` | `setSynchronizer(Synchronizer synchronizer)` Sets the synchronizer

クラス java.lang.Thread から継承されたメソッド
`activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield`

クラス java.lang.Object から継承されたメソッド
`equals, getClass, hashCode, notify, notifyAll, wait, wait, wait`

コンストラクタの詳細

### BenchmarkManager

    public BenchmarkManager(java.lang.String benchmarkName)

  Creates a benchmark manager instance with benchmark name.

  パラメータ:
    `benchmarkName` - benchmark name

メソッドの詳細

### getManagerID

    public java.lang.Integer getManagerID()

  Gets the ID of this manager.

  戻り値:
    manager ID

### setManagerID

    public void setManagerID(java.lang.Integer managerID)

  Sets the ID of this manager.

  パラメータ:
    `managerID` - manager ID

### getBenchmarkName

    public java.lang.String getBenchmarkName()

  Gets the benchmark name.

  戻り値:
    benchmark name

### setBenchmarkName

    public void setBenchmarkName(java.lang.String benchmarkName)

  Sets the benchmark name

  パラメータ:
    `benchmarkName` - benchmark name

### getOptionMap

    public java.util.Map getOptionMap()

  Gets the options

  戻り値:
    options

### setOptionMap

    public void setOptionMap(java.util.Map optionMap)

  Sets the options.
  This options is defined by command line argments and not by configulation file. The porpse of these options are used for override the setting on configulation file or default value. (e.g. the number of threads/containers).

  パラメータ:
    `optionMap` - options

### getBenchmarkInfo

    public BenchmarkInfo getBenchmarkInfo()

  Gets the benchmark information.

  戻り値:
    benchmark information

### setBenchmarkInfo

    public void setBenchmarkInfo(BenchmarkInfo info)

  Sets the benchmark information.

  パラメータ:
    `info` - benchmark information

### getCurrentState

    public java.lang.String getCurrentState()

  Gets the current state

  戻り値:
    current state

### setCurrentState

    public void setCurrentState(java.lang.String currentState)

  Sets the current state

  パラメータ:
    `currentState` - current state

### setSocketTimeout

    public void setSocketTimeout(int socketTimeout)

  Sets the timeout (milliseconds) for communicating in multiple node benchmark.

  パラメータ:
    `socketTimeout` - timeout (milliseconds)

### getSocketTimeout

    public int getSocketTimeout()

  Gets the timeout (milliseconds) for communicating in multiple node benchmark.

  戻り値:
    timeout (milliseconds)

### setLogWriter

    public void setLogWriter(LogWriter logWriter)

  Sets the system log handler. Note: This method should be called before the benchmark manager is started. If any system log handler isn't set, the default handler is used.

  パラメータ:
    `logWriter` - system log handler

### getLogWriter

    public LogWriter getLogWriter()

  Gets the system log handler.

  戻り値:
    system log handler

### setDataWriter

    public void setDataWriter(DataWriter dataWriter)

  Sets the data log handler. Note: This method should be called before the benchmark manager is started. If any data log handler isn't set, the default handler is used.

  パラメータ:
    `dataWriter` - data log handler

### getDataWriter

    public DataWriter getDataWriter()

  Gets the data log handler.

  戻り値:
    data log handler

### setSynchronizer

    public void setSynchronizer(Synchronizer synchronizer)

  Sets the synchronizer

  パラメータ:
    `synchronizer` - synchronizer

### getSynchronizer

    public Synchronizer getSynchronizer()

  Gets the synchronizer

  戻り値:
    synchronizer

### setBenchmarkContainers

    public void setBenchmarkContainers(BenchmarkContainer[] containers)

  Sets the benchmark containers. Note: This method should be called before manager is started, or the default containers are created and used.

  パラメータ:
    `containers` - benchmark containers

### getBenchmarkContainers

    public BenchmarkContainer[] getBenchmarkContainers()

  Gets the benchmark containers.

  戻り値:
    benchmark containers

### addTerminatedContainer

    public void addTerminatedContainer(BenchmarkContainer container)

  Adds the containers to list which are not finished normally for timeout or throwing exception.

  パラメータ:
    `container` - container

### getTerminatedContainers

    public java.util.List getTerminatedContainers()

  Gets the containers list which are not finished normally for timeout or throwing exception.

  戻り値:
    container

### setBenchmarkTimeout

    public void setBenchmarkTimeout(long benchmarkTimeout)

  Sets the benchmark timeout (milliseconds). The default is 100sec (100,000 miliseconds)

  パラメータ:
    `benchmarkTimeout` - timeout (milliseconds)

### getBenchmarkTimeout

    public long getBenchmarkTimeout()

  Gets the benchmark timeout (milliseconds)

  戻り値:
    timeout (milliseconds)

### run

    public void run()

  Run the benchmark.
  Note: The benchmark name must be set before this method is called.

  定義:
    インタフェース `java.lang.Runnable` 内の `run`
  オーバーライド:
    クラス `java.lang.Thread` 内の `run`

概要 | パッケージ | クラス | 使用 | 階層ツリー | 非推奨 API | 索引 | ヘルプ
前のクラス 次のクラス | フレームあり フレームなし
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド