Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.intel.cosbench.driver.model
Class MissionContext

    java.lang.Object
      com.intel.cosbench.driver.model.MissionContext

All Implemented Interfaces:
  Benchmark, LifeCycle, MissionInfo

    public class MissionContext

extends java.lang.Object
implements MissionInfo

This class encapsulates behaviors of mission scheduled to current driver, one mission is actually fragment of one workload.

Author:
  ywang19

Constructor Summary
`MissionContext()`

Method Summary
`void` | `addListener(MissionListener listener)`
`void` | `disposeRuntime()`
`XmlConfig` | `getConfig()`
`java.util.Date` | `getDate()`
`java.util.concurrent.Future<?>` | `getFuture()`
`java.lang.String` | `getId()`
`LogManager` | `getLogManager()`
`Mission` | `getMission()`
`OperationPicker` | `getOperationPicker()`
`OperatorRegistry` | `getOperatorRegistry()`
`Report` | `getReport()`
`Snapshot` | `getSnapshot()`
`MissionState` | `getState()`
`StateInfo[]` | `getStateHistory()`
`int` | `getWorkerCount()`
`WorkerInfo[]` | `getWorkerInfos()`
`WorkerRegistry` | `getWorkerRegistry()`
`void` | `setConfig(XmlConfig config)`
`void` | `setDate(java.util.Date date)`
`void` | `setFuture(java.util.concurrent.Future<?> future)`
`void` | `setId(java.lang.String id)`
`void` | `setLogManager(LogManager logManager)`
`void` | `setMission(Mission mission)`
`void` | `setOperationPicker(OperationPicker operationPicker)`
`void` | `setOperatorRegistry(OperatorRegistry operatorRegistry)`
`void` | `setReport(Report report)`
`void` | `setState(MissionState state)`
`void` | `setWorkerRegistry(WorkerRegistry workerRegistry)`

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### MissionContext

    public MissionContext()

Method Detail

### getId

    public java.lang.String getId()

  Specified by:
    `getId` in interface `MissionInfo`

### setId

    public void setId(java.lang.String id)

### getDate

    public java.util.Date getDate()

  Specified by:
    `getDate` in interface `MissionInfo`

### setDate

    public void setDate(java.util.Date date)

### getState

    public MissionState getState()

  Specified by:
    `getState` in interface `MissionInfo`

### setState

    public void setState(MissionState state)

### getStateHistory

    public StateInfo[] getStateHistory()

  Specified by:
    `getStateHistory` in interface `MissionInfo`

### getConfig

    public XmlConfig getConfig()

### setConfig

    public void setConfig(XmlConfig config)

### getFuture

    public java.util.concurrent.Future<?> getFuture()

### setFuture

    public void setFuture(java.util.concurrent.Future<?> future)

### getMission

    public Mission getMission()

  Specified by:
    `getMission` in interface `MissionInfo`

### setMission

    public void setMission(Mission mission)

### getLogManager

    public LogManager getLogManager()

  Specified by:
    `getLogManager` in interface `MissionInfo`

### setLogManager

    public void setLogManager(LogManager logManager)

### getOperationPicker

    public OperationPicker getOperationPicker()

### setOperationPicker

    public void setOperationPicker(OperationPicker operationPicker)

### getOperatorRegistry

    public OperatorRegistry getOperatorRegistry()

### setOperatorRegistry

    public void setOperatorRegistry(OperatorRegistry operatorRegistry)

### getWorkerRegistry

    public WorkerRegistry getWorkerRegistry()

### getWorkerCount

    public int getWorkerCount()

  Specified by:
    `getWorkerCount` in interface `MissionInfo`

### getWorkerInfos

    public WorkerInfo[] getWorkerInfos()

  Specified by:
    `getWorkerInfos` in interface `MissionInfo`

### setWorkerRegistry

    public void setWorkerRegistry(WorkerRegistry workerRegistry)

### getSnapshot

    public Snapshot getSnapshot()

  Specified by:
    `getSnapshot` in interface `Benchmark`

### getReport

    public Report getReport()

  Specified by:
    `getReport` in interface `Benchmark`

### setReport

    public void setReport(Report report)

### addListener

    public void addListener(MissionListener listener)

### disposeRuntime

    public void disposeRuntime()

  Specified by:
    `disposeRuntime` in interface `LifeCycle`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD