|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CmdAgent
The methods in this interface are the public face of CmdAgent They are used by the CmdService class in the Engine. There should be no requirement for a benchmark to access the CmdAgent object directly and thus this interface is not public.
CmdService
,
CmdAgentImpl
,
GenericBenchmark
Method Summary | ||
---|---|---|
void |
downloadServices(List<String> pathList)
Downloads the files used by services and tools to the remote agent system. |
|
|
exec(RemoteCallable<V> callable,
String contextLocation)
Executes the RemoteCallable on the target instance. |
|
CommandHandle |
execute(Command c,
String svcPath)
Executes a command from the remote command agent. |
|
String |
getHostName()
Return the hostname of this machine as known to this machine itself. |
|
long |
getTime()
Gets the time on the agent host, in millis. |
|
String |
getTmpDir()
Obtains the tmp directory of a remote host. |
|
CommandHandle |
java(Command c,
String svcPath)
Executes a java command from the remote command agent. |
|
void |
kill()
This method is responsible for aborting a running command. |
|
void |
setLogLevel(String name,
Level level)
Set the logging level of the Agents. |
|
void |
setTime(String gmtTimeString)
Sets the time on the agent host, in GMT. |
|
boolean |
startAgent(Class agentClass,
String ident)
This method creates the Agent class and registers it with the registry using ident@ |
|
void |
updatePaths(List<String> pathList)
Updates the paths, usually in the local command agent. |
Method Detail |
---|
String getHostName() throws RemoteException
RemoteException
- A communications error occurredString getTmpDir() throws RemoteException
RemoteException
- A communications error occurredvoid setLogLevel(String name, Level level) throws RemoteException
name
- The name of the loggerlevel
- The log level
RemoteException
- A communications error occurredvoid updatePaths(List<String> pathList) throws RemoteException
pathList
- The list of paths to download
RemoteException
- If there is an error updating the pathsvoid downloadServices(List<String> pathList) throws RemoteException
pathList
- The list of service bundle paths
RemoteException
- If there is an error downloadingCommandHandle execute(Command c, String svcPath) throws IOException, InterruptedException, RemoteException
c
- The command to be executedsvcPath
-
IOException
- Error communicating with resulting process
InterruptedException
- Thread got interrupted waiting
RemoteException
- If there is a communication error to the
remote agentCommandHandle java(Command c, String svcPath) throws IOException, InterruptedException, RemoteException
c
- The command containing the main classsvcPath
-
IOException
- Error communicating with resulting process
InterruptedException
- Thread got interrupted waiting
RemoteException
<V extends Serializable> V exec(RemoteCallable<V> callable, String contextLocation) throws Exception
callable
- The callable to executecontextLocation
- The context location of the invoker
Exception
- Any exception from the callableboolean startAgent(Class agentClass, String ident) throws Exception
agentClass
- Impl class of the Agent to be startedident
- Identifier to be used
Exception
- An error occurredvoid kill() throws RemoteException
RemoteException
- A communications error occurredvoid setTime(String gmtTimeString) throws IOException
gmtTimeString
-
IOException
- A I/O error occurredlong getTime() throws RemoteException
RemoteException
- A communications error occurred
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |