public interface CoreServerService
| Modifier and Type | Method and Description |
|---|---|
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.
|
AgentRegistrationResults registerAgent(AgentRegistrationRequest agentRegistrationRequest) throws AgentRegistrationException, AgentNotSupportedException
agentRegistrationRequest - AgentRegistrationException - if the agent's registration request was rejectedAgentNotSupportedException - if the agent is not supported by this serverConnectAgentResults connectAgent(ConnectAgentRequest connectRequest) throws AgentRegistrationException, AgentNotSupportedException
connectRequest - AgentRegistrationException - if the agent is not registeredAgentNotSupportedException - 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 pluginInputStream getFileContents(String file)
file may specify one or
more subdirectories within its relative path.file - the file to downloadvoid 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 listIllegalArgumentException - if the agentName does not match a registered agent.PingRequest ping(PingRequest request)
request - Any optional action or data requests.Copyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.