org.iids.aos.gui.services
Class AgentScapeServiceRunner

java.lang.Object
  extended by org.iids.aos.gui.services.AgentScapeServiceRunner

public class AgentScapeServiceRunner
extends java.lang.Object


Field Summary
static boolean ALLOW_MULTIPLE_WORLDS
           
static java.lang.String COMMANDLINE_STARTUP
           
 
Method Summary
 AgentServerWrapper bindAgentServer(AgentServerConfig asc)
           
 HostManagerWrapper bindHostManager(HostManagerConfig hmc)
           
 LocationManagerWrapper bindLocationManager(LocationManagerConfig cfg)
           
 java.util.List<KernelWrapper> getAllKernels()
           
 KernelWrapper getDefaultKernel()
          Get the default kernel implementation.
 LookupWrapper getDefaultLookup()
           
static AgentScapeServiceRunner getInstance()
          Get the single instance.
 void migrate(Agent agent, Location target)
          Set up a minimal environment, kernel, api etc TODO
static void runCommandLine(java.lang.String[] args)
           
 void startAgentScapeApi(LookupWrapper lw)
           
 AgentServerWrapper startAgentServer(AgentServerConfig asc)
           
 KernelWrapper startDefaultKernel()
          Start a kernel with default configuration.
 HostManagerWrapper startHostManager(HostManagerConfig hmc)
           
 KernelWrapper startKernel(KernelConfig kc)
           
 LocationManagerWrapper startLocationManager(LocationManagerConfig cfg)
          This starts the location manager in a new Thread
 java.lang.String startLookupServer(int port, boolean newJvm)
           
 LookupWrapper startLookupServiceServer(KernelWrapper kw, java.lang.String url)
          Create a new lookup service wrapper.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Method Detail

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.