All Packages Class Hierarchy This Package Previous Next Index
Class macondo.mak.Place
macondo.mak.Place
- public class Place
-
Place()
-
-
Place(String)
-
-
flushAgent(Agent, Object)
-
-
getPlaceName()
-
-
getProperty(String)
- Returns a system property.
-
handleConnection(Socket)
- Handles a connection which requests a service.
-
launchAgent(Agent)
- Launchs the given agent.
-
launchAgent(String)
- Launchs an agent given its file name.
-
main(String[])
- Main entry point when
Place
is used as a
standalone application.
-
restoreAgent(Object)
-
-
run()
- Place main loop: accepts requests and serve each one in
a separate thread.
-
saveAgent(Agent, Object)
-
-
saveAgent(String)
-
-
setHostName(String)
- Sets the host name of this
Place
.
-
setName(String)
- Sets the application dependent name of this
Place
.
-
setPort(int)
- Sets the port number of this
Place
.
-
startPlace()
-
Place
public Place()
Place
public Place(String name)
main
public static void main(String args[])
- Main entry point when
Place
is used as a
standalone application.
- Parameters:
- args - command line arguments
getProperty
public String getProperty(String key)
- Returns a system property.
- Returns:
- a system property.
flushAgent
public final void flushAgent(Agent agent,
Object key) throws IOException
saveAgent
public final void saveAgent(Agent agent,
Object key) throws IOException
saveAgent
public final void saveAgent(String agent_name) throws IOException
restoreAgent
public final Agent restoreAgent(Object key) throws IOException, ClassNotFoundException
startPlace
public void startPlace()
run
public final void run()
- Place main loop: accepts requests and serve each one in
a separate thread.
setHostName
public final void setHostName(String host)
- Sets the host name of this
Place
.
- Parameters:
- host - the host name of this
Place
.
setPort
public void setPort(int port)
- Sets the port number of this
Place
.
- Parameters:
- port - the port number.
setName
public final void setName(String name)
- Sets the application dependent name of this
Place
.
- Parameters:
- name - the application dependant name
of this
Place
.
getPlaceName
public final PlaceName getPlaceName()
launchAgent
public void launchAgent(String agent_name) throws Exception
- Launchs an agent given its file name. This is a useful for
agents specified at the command line.
- Parameters:
- agent_name - the file name of the agent to launch.
- Throws: Exception
- thrown if agent can't be launched.
launchAgent
public void launchAgent(Agent agent) throws Exception
- Launchs the given agent.
- Parameters:
- agent_name - the file name of the agent to launch.
- Throws: Exception
- thrown if agent can't be launched.
handleConnection
protected void handleConnection(Socket socket)
- Handles a connection which requests a service. A separate thread
is spawned to manage the connection.
- Parameters:
- socket - the connection socket.
All Packages Class Hierarchy This Package Previous Next Index