|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectflux.agent.Agent
public class Agent
Represents an active Flux agent. Flux agents run processes that are distributed from Flux engines. The results from running processes on Flux agents are reported back to a Flux engine.
Flux agents register with a Flux engine, which shares information about the agent among all engines in the cluster. Subsequently, Flux engines distribute processes to Flux agents, in effect delegating a Process Action to an agent. Finally, after the agent finishes executing that process, it submits its results back to a Flux engine.
Constructor Summary | |
---|---|
Agent(AgentConfiguration configuration)
Creates a new Flux agent. |
|
Agent(java.lang.String configurationFile)
Creates a new Flux agent using the supplied configuration file; if the agent is later restarted with a new configuration, the configuration file specified here will be overwritten with the new configuration. |
Method Summary | |
---|---|
void |
dispose()
Stops this agent, waits for any running processes to finish, and then shuts down the agent. |
AgentInfo |
getInfo()
Returns information about the status of this agent. |
void |
interrupt()
Interrupts the currently executing processes. |
void |
restart(AgentConfiguration configuration)
Provides a way to reconfigure an agent without creating a new agent object. |
void |
start()
Starts this agent. |
void |
stop()
Stops this agent. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Agent(AgentConfiguration configuration) throws AgentException
configuration
- Properties that control how this agent communicates
with an engine and how it otherwise behaves.
AgentException
- If the agent configuration is invalid.public Agent(java.lang.String configurationFile) throws AgentException
configurationFile
- Filename to an agent configuration file, which
contains properties that control how this agent
communicates with an engine and how it otherwise
behaves.
AgentException
- If the agent configuration is invalid.Method Detail |
---|
public void dispose()
public AgentInfo getInfo()
public void interrupt()
public void restart(AgentConfiguration configuration) throws AgentException
configuration
- Properties that control how this agent communicates
with an engine and how it otherwise behaves.
AgentException
- If the agent configuration is invalid.public void start() throws AgentException
AgentException
- If the agent could not contact an engine to inform
it that the agent is being started.public void stop() throws AgentException
AgentException
- If the agent could not contact an engine to inform
it that the agent is being stopped.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |