|
||||||||||
| 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. |
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<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. |
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<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 downFailoverListComposite getFailoverList(String agentName)
agentName - the name of the agent requesting the server list
IllegalArgumentException - if the agentName does not match a registered agent.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||