|
Hyperic HQ Plugin API v. 4.4.0.2 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.hyperic.hq.agent.server.AgentCommandsService
public class AgentCommandsService
The Agent Commands service.
| Constructor Summary | |
|---|---|
AgentCommandsService(AgentDaemon agent)
|
|
| Method Summary | |
|---|---|
FileDataResult[] |
agentSendFileData(FileData[] destFiles,
java.io.InputStream[] streams)
Send file data to a remote agent |
void |
die()
Tell the agent to die. |
java.lang.String |
getCurrentAgentBundle()
Return the bundle that the agent is currently running. |
long |
ping()
Send a ping to the agent. |
void |
restart()
Tell the agent to restart. |
java.util.Map |
upgrade(java.lang.String bundle,
java.lang.String destination)
Tell the agent to upgrade itself upon JVM restart. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AgentCommandsService(AgentDaemon agent)
throws AgentRunningException
AgentRunningException| Method Detail |
|---|
public FileDataResult[] agentSendFileData(FileData[] destFiles,
java.io.InputStream[] streams)
throws AgentRemoteException
AgentCommandsClient
agentSendFileData in interface AgentCommandsClientdestFiles - Info about the file data to send
AgentRemoteExceptionAgentCommandsClient.agentSendFileData(org.hyperic.hq.agent.FileData[], java.io.InputStream[])
public void die()
throws AgentRemoteException
AgentCommandsClient
die in interface AgentCommandsClientAgentRemoteException - indicating the server failed to
understand our request.AgentCommandsClient.die()
public long ping()
throws AgentRemoteException
AgentCommandsClient
ping in interface AgentCommandsClientAgentRemoteException - indicating the server failed to
understand our request.AgentCommandsClient.ping()
public void restart()
throws AgentRemoteException
AgentCommandsClient
restart in interface AgentCommandsClientAgentRemoteException - indicating the server failed to
understand our request.AgentCommandsClient.restart()
public java.lang.String getCurrentAgentBundle()
throws AgentRemoteException
AgentCommandsClient
getCurrentAgentBundle in interface AgentCommandsClientAgentRemoteException - indicating the server failed to
understand our request.AgentCommandsClient.getCurrentAgentBundle()
public java.util.Map upgrade(java.lang.String bundle,
java.lang.String destination)
throws AgentRemoteException
AgentCommandsClient
upgrade in interface AgentCommandsClientbundle - Agent bundle tarball used to update the agent.destination - Destination directory on the agent where the bundle will reside.
AgentRemoteException - indicating the server failed to
understand our request.AgentCommandsClient.upgrade(java.lang.String, java.lang.String)
|
Hyperic HQ Plugin API v. 4.4.0.2 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||