|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CoreServerService
The interface to a JON server's core administrative functions used by remote agents.
| Method Summary | |
|---|---|
void |
agentIsShuttingDown(String agentName)
When an agent is shutting down, it will notify the server by calling this method. |
ConnectAgentResults |
connectAgent(ConnectAgentRequest connectRequest)
Connect an agent with this server. |
org.rhq.core.domain.cloud.composite.FailoverListComposite |
getFailoverList(String agentName)
Returns the current server list for the agent. |
InputStream |
getFileContents(String file)
Returns a stream that contains the given file contents. |
List<org.rhq.core.domain.plugin.Plugin> |
getLatestPlugins()
Get a list of the registered plugins managed in the server. |
InputStream |
getPluginArchive(String pluginName)
Return a stream containing the contents of a plugin jar. |
PingRequest |
ping(PingRequest request)
Ping the server. |
AgentRegistrationResults |
registerAgent(AgentRegistrationRequest agentRegistrationRequest)
Register an agent with this server. |
| Method Detail |
|---|
AgentRegistrationResults registerAgent(AgentRegistrationRequest agentRegistrationRequest)
throws AgentRegistrationException,
AgentNotSupportedException
agentRegistrationRequest -
AgentRegistrationException - if the agent's registration request was rejected
AgentNotSupportedException - if the agent is not supported by this server
ConnectAgentResults connectAgent(ConnectAgentRequest connectRequest)
throws AgentRegistrationException,
AgentNotSupportedException
connectRequest -
AgentRegistrationException - if the agent is not registered
AgentNotSupportedException - if the agent is not supported by this serverList<org.rhq.core.domain.plugin.Plugin> getLatestPlugins()
InputStream getPluginArchive(String pluginName)
pluginName - The name of the plugin
InputStream getFileContents(String file)
file may specify one or
more subdirectories within its relative path.
file - the file to download
void agentIsShuttingDown(String agentName)
agentName - the name of the agent that is shutting downorg.rhq.core.domain.cloud.composite.FailoverListComposite getFailoverList(String agentName)
agentName - the name of the agent requesting the server list
IllegalArgumentException - if the agentName does not match a registered agent.PingRequest ping(PingRequest request)
request - Any optional action or data requests.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||