org.iids.aos.gui.services
Class AgentScapeServiceRunner
java.lang.Object
org.iids.aos.gui.services.AgentScapeServiceRunner
public class AgentScapeServiceRunner
- extends java.lang.Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
COMMANDLINE_STARTUP
public static final java.lang.String COMMANDLINE_STARTUP
- See Also:
- Constant Field Values
ALLOW_MULTIPLE_WORLDS
public static final boolean ALLOW_MULTIPLE_WORLDS
- See Also:
- Constant Field Values
getInstance
public static AgentScapeServiceRunner getInstance()
- Get the single instance.
startLookupServiceServer
public LookupWrapper startLookupServiceServer(KernelWrapper kw,
java.lang.String url)
throws StartupException
- Create a new lookup service wrapper.
- Throws:
StartupException
getDefaultLookup
public LookupWrapper getDefaultLookup()
throws ServiceBindException
- Throws:
ServiceBindException
startKernel
public KernelWrapper startKernel(KernelConfig kc)
throws StartupException
- Throws:
StartupException
startDefaultKernel
public KernelWrapper startDefaultKernel()
throws StartupException
- Start a kernel with default configuration.
- Throws:
StartupException
getDefaultKernel
public KernelWrapper getDefaultKernel()
throws StartupException
- Get the default kernel implementation.
Note that if a kernel instance does not exists it is created.
- Throws:
StartupException
getAllKernels
public java.util.List<KernelWrapper> getAllKernels()
startAgentScapeApi
public void startAgentScapeApi(LookupWrapper lw)
throws StartupException
- Throws:
StartupException
startLocationManager
public LocationManagerWrapper startLocationManager(LocationManagerConfig cfg)
throws StartupException
- This starts the location manager in a new Thread
- Throws:
exception - if location manager cannot be started
StartupException
bindLocationManager
public LocationManagerWrapper bindLocationManager(LocationManagerConfig cfg)
throws ServiceBindException
- Throws:
ServiceBindException
startHostManager
public HostManagerWrapper startHostManager(HostManagerConfig hmc)
throws StartupException
- Throws:
StartupException
bindHostManager
public HostManagerWrapper bindHostManager(HostManagerConfig hmc)
throws ServiceBindException
- Throws:
ServiceBindException
startAgentServer
public AgentServerWrapper startAgentServer(AgentServerConfig asc)
throws StartupException
- Throws:
StartupException
bindAgentServer
public AgentServerWrapper bindAgentServer(AgentServerConfig asc)
throws ServiceBindException
- Throws:
ServiceBindException
startLookupServer
public java.lang.String startLookupServer(int port,
boolean newJvm)
throws StartupException
- Throws:
StartupException
migrate
public void migrate(Agent agent,
Location target)
throws MigrationFailedException
- Set up a minimal environment, kernel, api etc TODO
- Throws:
MigrationFailedException
runCommandLine
public static void runCommandLine(java.lang.String[] args)
Copyright © 2003, 2004 IIDS Group. All Rights Reserved.