|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Agent
The methods in this interface are the public face of all benchmark agents. The agents reregister with the Registry on startup. The Master gets a reference to all the agents from the Registry and can then communicate with them using this (the Agent) interface.
MasterImpl
Method Summary | |
---|---|
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. |
Method Detail |
---|
void configure(Master master, RunInfo runInfo, int driverType, Timer timer) throws RemoteException
master
- the remote interface to the MasterrunInfo
- run information passed by MasterdriverType
- timer
- BenchmarkDefinition Start time
RemoteException
- 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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |