|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AgentAdministrator
Monitors and controls agents.
Method Summary | |
---|---|
void |
dispose(java.lang.String id)
Unregisters this agent and then shuts it down. |
AgentInfo |
get(java.lang.String id)
Returns information about the specified Flux agent, which is assumed to be already registered with a Flux engine in this cluster. |
java.util.SortedSet<AgentInfo> |
getAll()
Returns information about all Flux agents that are registered with any Flux engine in this cluster. |
void |
interrupt(java.lang.String id)
Interrupts the currently executing process on the specified agent. |
void |
restart(AgentConfiguration configuration)
Provides a way to reconfigure an agent without creating a new agent object. |
void |
start(java.lang.String id)
Starts the specified agent. |
void |
stop(java.lang.String id)
Stops the specified agent. |
Method Detail |
---|
void dispose(java.lang.String id) throws EngineException
id
- Unique identifier for an agent.
EngineException
- If the agent is not recognized, if the agent cannot
be contacted, or if a system error occurs.
EngineCommunicationException
- If a networking error occurs.AgentInfo get(java.lang.String id) throws EngineException
id
- Unique identifier for an agent.
EngineException
- If the agent is not recognized or if a system error
occurs.
EngineCommunicationException
- If a networking error occurs.java.util.SortedSet<AgentInfo> getAll() throws EngineException
EngineException
- If a system error occurs.
EngineCommunicationException
- If a networking error occurs.void interrupt(java.lang.String id) throws EngineException
id
- Unique identifier for an agent.
EngineException
- If the agent is not recognized, if the agent cannot
be contacted, or if a system error occurs.
EngineCommunicationException
- If a networking error occurs.Agent.interrupt()
void restart(AgentConfiguration configuration) throws EngineException
If this agent was created originally with Agent(String configurationFile), after a successful restart, the configuration file specified there will be overwritten with the new configuration supplied here. The purpose is that when the agent is restarted from a command line script, it will use the agent configuration data from the new configuration supplied here.
If an exception is thrown, this agent will become inactive until reset() is called successfully on it.
configuration
- Properties that control how this agent communicates
with an engine and how it otherwise behaves.
EngineException
- If the agent configuration is invalid.
EngineCommunicationException
- If a networking error occurs.Agent.restart(AgentConfiguration)
void start(java.lang.String id) throws EngineException
id
- Unique identifier for an agent.
EngineException
- If the agent is not recognized, if the agent cannot
be contacted, or if a system error occurs.
EngineCommunicationException
- If a networking error occurs.Agent.start()
void stop(java.lang.String id) throws EngineException
id
- Unique identifier for an agent.
EngineException
- If the agent is not recognized, if the agent cannot
be contacted, or if a system error occurs.
EngineCommunicationException
- If a networking error occurs.Agent.stop()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |