|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectflux.agent.AgentFactory
Makes Flux agents, which cooperate with Flux engines to distribute workloads across many computers.
| Constructor Summary | |
AgentFactory()
|
|
| Method Summary | |
abstract Agent |
lookupAgent(java.lang.String host,
int port,
java.lang.String bindName)
Looks up a remote Flux agent using the specified host, port, and bind name. |
abstract Agent |
makeAgent(AgentConfiguration configuration)
Makes a new Flux agent. |
abstract AgentConfiguration |
makeAgentConfiguration()
Makes a new agent configuration. |
abstract AgentConfiguration |
makeAgentConfiguration(java.io.InputStream propertiesInputStream)
Makes a new agent configuration using the supplied agent configuration input stream. |
abstract AgentConfiguration |
makeAgentConfiguration(java.util.Properties properties)
Makes a new agent configuration using the supplied agent configuration properties. |
abstract AgentConfiguration |
makeAgentConfiguration(java.lang.String propertiesFile)
Makes a new agent configuration using the supplied agent configuration file. |
static AgentFactory |
makeInstance()
Makes a new agent factory. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AgentFactory()
| Method Detail |
public abstract Agent lookupAgent(java.lang.String host,
int port,
java.lang.String bindName)
throws java.rmi.NotBoundException,
java.rmi.RemoteException
host - The remote computer to contact.port - The RMI registry port.bindName - The name to which the agent is bound in the RMI registry.
java.rmi.NotBoundException - If the specified RMI registry bind name does not
exist.
java.rmi.RemoteException - If a networking error occurs.
public abstract Agent makeAgent(AgentConfiguration configuration)
throws AgentException,
java.rmi.RemoteException
AgentException - If the agent configuration is invalid.
java.rmi.RemoteException - If the new Flux agent cannot be bound to an RMI
registry.public abstract AgentConfiguration makeAgentConfiguration()
public abstract AgentConfiguration makeAgentConfiguration(java.io.InputStream propertiesInputStream)
throws AgentException
propertiesInputStream - A specification of how to make an agent. The
input stream will not be closed.
AgentException - If a system error occurs.
public abstract AgentConfiguration makeAgentConfiguration(java.util.Properties properties)
throws AgentException
properties - A specification of how to make an agent.
AgentException - If a system error occurs.
java.lang.IllegalArgumentException - If the specified properties object is
null.
public abstract AgentConfiguration makeAgentConfiguration(java.lang.String propertiesFile)
throws AgentException
propertiesFile - A specification of how to make an agent.
AgentException - If a system error occurs.public static AgentFactory makeInstance()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||