public interface ToolAgent extends Remote
ToolService
Modifier and Type | Method and Description |
---|---|
void |
configure(List<MasterToolContext> toollist,
Set<String> osToolSet,
String outDir)
This method configures the tools that must be run on
this machine.
|
void |
kill()
This method is responsible for killing all tools.
|
void |
postprocess()
This method is responsible for post processing tools.
|
boolean |
start(int delay)
This method is responsible for starting all tools.
|
boolean |
start(int delay,
int duration)
This method is responsible for starting all tools.
|
boolean |
start(int delay,
String[] tools)
Start only specified tools.
|
boolean |
start(int delay,
String[] tools,
int duration)
Start only specified tools for specific duration.
|
void |
stop()
This method is responsible for stopping the tools.
|
void |
stop(String[] tools)
Stopping specific tools.
|
void |
waitFor()
Waits for all tools to finish up.
|
void configure(List<MasterToolContext> toollist, Set<String> osToolSet, String outDir) throws RemoteException, IOException
toollist
- - each element in the array is the
name of a tool and optional arguments, e.g "sar -u -c"osToolSet
- list of os toolsoutDir
- output directory of the runRemoteException,
- IOExceptionRemoteException
IOException
void kill() throws RemoteException
RemoteException
boolean start(int delay) throws RemoteException
delay
- - time to delay before startingRemoteException
boolean start(int delay, int duration) throws RemoteException
delay
- - time to delay before startingduration
- after which tools must be stoppedRemoteException
boolean start(int delay, String[] tools) throws RemoteException
delay
- - time to delay before startingtools
- - specific list of tools to startRemoteException
- A communication error occurredboolean start(int delay, String[] tools, int duration) throws RemoteException
delay
- - time to delay before startingtools
- - specific list of tools to startduration
- after which tools must be stoppedRemoteException
- A communication error occurredvoid stop() throws RemoteException
RemoteException
- A communication error occurredvoid stop(String[] tools) throws RemoteException
tools
- The tools to stop.RemoteException
- A communication error occurredvoid waitFor() throws RemoteException
RemoteException
- A communication error occurredvoid postprocess() throws RemoteException
RemoteException
- A communication error occurred