com.croftsoft.apps.vaft.core
Class Host

java.lang.Object
  extended by java.rmi.server.RemoteObject
      extended by java.rmi.server.RemoteServer
          extended by java.rmi.server.UnicastRemoteObject
              extended by com.croftsoft.apps.vaft.core.Host
All Implemented Interfaces:
HostRemote, ShutdownRemote, SwapRemote, Actor, ActorRemote, Serializable, Remote

public class Host
extends UnicastRemoteObject
implements Actor, ActorRemote, HostRemote, SwapRemote, ShutdownRemote

Version:
1998-04-26
See Also:
Serialized Form
Author:
David W. Croft

Field Summary
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
Host(String rmi_object_name, String password, HostList hostList)
           
 
Method Summary
static Host bind_Host(String rmi_object_name, String password, HostList hostList)
          Instantiates a Host then binds it to the registry.
 HostList getHostList()
           
 String[] getRoles()
          Returns an array of String representing the names of semantic interfaces, or "roles", supported by this object.
 String[] getRolesRemote()
           
 void host(Actor actor)
           
 boolean shutdown(String password)
           
 HostList swap(HostList hostList)
           
 
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Host

public Host(String rmi_object_name,
            String password,
            HostList hostList)
     throws RemoteException
Throws:
RemoteException
Method Detail

bind_Host

public static Host bind_Host(String rmi_object_name,
                             String password,
                             HostList hostList)
                      throws AlreadyBoundException,
                             MalformedURLException,
                             RemoteException
Instantiates a Host then binds it to the registry.

Throws:
AlreadyBoundException
MalformedURLException
RemoteException

getHostList

public HostList getHostList()

getRoles

public String[] getRoles()
Description copied from interface: com.croftsoft.core.role.actor.Actor
Returns an array of String representing the names of semantic interfaces, or "roles", supported by this object.

The array may represent just a limited subset from all of the interfaces that are actually implemented by this object. Which interfaces are returned are chosen as deemed appropriate by this object for the current context and may change with each call to this method.

The ordering of the roles in the array may be determined dynamically by the object and should be assumed to be listed in the order of preference, from the viewpoint of this object, for polymorphic casting of this object by another. The ordering may change with each call to this method.

May return null.

Specified by:
getRoles in interface Actor

getRolesRemote

public String[] getRolesRemote()
                        throws RemoteException
Specified by:
getRolesRemote in interface ActorRemote
Throws:
RemoteException

host

public void host(Actor actor)
          throws RemoteException
Specified by:
host in interface HostRemote
Throws:
RemoteException

swap

public HostList swap(HostList hostList)
              throws RemoteException
Specified by:
swap in interface SwapRemote
Throws:
RemoteException

shutdown

public boolean shutdown(String password)
                 throws RemoteException
Specified by:
shutdown in interface ShutdownRemote
Throws:
RemoteException

CroftSoft Javadoc

CroftSoft Apps Javadoc (2008-09-28 21:15:07)