com.intel.cosbench.driver.model
Class WorkerContext
java.lang.Object
com.intel.cosbench.driver.model.WorkerContext
- All Implemented Interfaces:
- Benchmark, LifeCycle, WorkerInfo
public class WorkerContext
- extends java.lang.Object
- implements WorkerInfo
This class encapsulates worker related information.
- Author:
- ywang19
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WorkerContext
public WorkerContext()
getIndex
public int getIndex()
- Specified by:
getIndex
in interface WorkerInfo
setIndex
public void setIndex(int index)
getMission
public Mission getMission()
setMission
public void setMission(Mission mission)
getLogger
public Logger getLogger()
setLogger
public void setLogger(Logger logger)
getAuthApi
public AuthAPI getAuthApi()
setAuthApi
public void setAuthApi(AuthAPI authApi)
getStorageApi
public StorageAPI getStorageApi()
setStorageApi
public void setStorageApi(StorageAPI storageApi)
isError
public boolean isError()
setError
public void setError(boolean error)
getSnapshot
public Snapshot getSnapshot()
- Specified by:
getSnapshot
in interface Benchmark
setSnapshot
public void setSnapshot(Snapshot snapshot)
getReport
public Report getReport()
- Specified by:
getReport
in interface Benchmark
setReport
public void setReport(Report report)
getRandom
public java.util.Random getRandom()
disposeRuntime
public void disposeRuntime()
- Specified by:
disposeRuntime
in interface LifeCycle