public interface Agent extends Remote
MasterImpl
Modifier and Type | Method and Description |
---|---|
void |
configure(Master master,
RunInfo runInfo,
int driverType,
Timer timer)
Configures each agents with the properties passed.
|
int |
getId()
Obtains the id of this agent.
|
Metrics |
getResults()
Report stats from a run, aggregating across all threads of
the Agent.
|
void |
join()
Waits for all the agentImpl's threads to terminate.
|
void |
kill()
This method is responsible for aborting a run.
|
void |
postRun()
Invokes the post run method on thread 0 of each driver agent 0, if
the annotation @onceAfter is used.
|
void |
setStartTime(int msTime)
Sets the actual run start time.
|
void |
startThreads()
Start all the driver threads.
|
void |
terminate()
Terminates all leftover threads remaining at the end of the run.
|
void |
waitForThreadStart()
Wait until all threads are started.
|
void configure(Master master, RunInfo runInfo, int driverType, Timer timer) throws RemoteException
master
- the remote interface to the MasterrunInfo
- run information passed by MasterdriverType
- the driver type idtimer
- BenchmarkDefinition Start timeRemoteException
- A network error occurredint getId() throws RemoteException
RemoteException
- A network error occurredvoid startThreads() throws RemoteException
RemoteException
- A network error occurredvoid waitForThreadStart() throws RemoteException
RemoteException
- A network error occurredvoid setStartTime(int msTime) throws RemoteException
msTime
- The relative millisec time of the benchmark start.RemoteException
- A network error occurredMetrics getResults() throws RemoteException
RemoteException
- A network error occurredMetrics
void join() throws RemoteException
RemoteException
- A network error occurredvoid kill() throws RemoteException
RemoteException
- A network error occurredvoid terminate() throws RemoteException
RemoteException
- A network error occurredvoid postRun() throws RemoteException
RemoteException
- A network error occurred