|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.openai.ai.agent.Daemon
This is the "portal" that allows the transmission of Agents between hosts.
Field Summary | |
static java.lang.String |
OPTION_AGENTS
The command-line option to specify the list of agents to start. |
static java.lang.String |
OPTION_CONFIG
The command-line option to specify the XML configuration file. |
static java.lang.String |
OPTION_LOG
The command-line option to specify the output log file. |
static java.lang.String |
OPTION_PORT
The command-line option to specify the port. |
static java.lang.String |
OPTION_SERVICES
The command-line option to specify the list of services to start. |
static java.lang.String |
OPTION_VERBOSE
The command-line option to specify that the output should be echoed to stdout as well. |
Fields inherited from interface net.openai.ai.agent.AgentConstants |
AGENT_CONTINUE, AGENT_RETURN_TO_SENDER, AGENT_START |
Method Summary | |
int |
getAgentCount()
Returns the number of active agents for this Daemon. |
static int[] |
getDaemonPorts()
Returns a list of ports that Daemons are running on. |
DaemonDescription |
getDescription()
Returns a description of the Daemon as a DaemonDescription. |
static java.lang.String |
getHostIP()
Returns the host IP for the local host that the Daemon is running on. |
static java.lang.String |
getHostName()
Returns the hostname for the local host that the Daemon is running on. |
static Daemon |
getInstance(int port)
Returns an instance of a Daemon running on a particular port. |
java.io.PrintStream |
getLogStream()
Returns a handle to the PrintStream that the Daemon will be printing to. |
int |
getPort()
Returns the port that the Daemon is running on. |
DaemonService[] |
getServices()
Returns a list of active services associated with this Daemon. |
static void |
main(java.lang.String[] args)
The main entry point for the OsMoSys application. |
void |
shutdown()
Shuts down the Daemon. |
void |
startAgent(Agent agent)
Starts an agent in its own Thread. |
static void |
startDaemon(java.util.Hashtable options)
Starts up a Daemon with the given options contained in the Hashtable. |
void |
startService(DaemonService service)
Starts a service in its own Thread. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String OPTION_PORT
public static final java.lang.String OPTION_AGENTS
public static final java.lang.String OPTION_SERVICES
public static final java.lang.String OPTION_CONFIG
public static final java.lang.String OPTION_LOG
public static final java.lang.String OPTION_VERBOSE
Method Detail |
public static final Daemon getInstance(int port) throws java.io.IOException
java.io.IOException
public static final int[] getDaemonPorts()
public static final java.lang.String getHostIP()
public static final java.lang.String getHostName()
public final int getPort()
public final DaemonService[] getServices()
public final DaemonDescription getDescription()
public final java.io.PrintStream getLogStream()
public final void startService(DaemonService service)
startAgent
method can be used, but that will simply check
the type and call the startService
method.
service
- The DaemonService to start.public final void startAgent(Agent agent)
agent
- The Agent to start.public final int getAgentCount()
public final void shutdown()
public static final void startDaemon(java.util.Hashtable options) throws java.io.IOException, java.lang.IllegalArgumentException
java.io.IOException
java.lang.IllegalArgumentException
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |