public class Agent
extends java.lang.Object
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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.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.© 2000-2025 Flux Corporation. All rights reserved.