com.croftsoft.apps.vaft.core
Class Host
java.lang.Object
java.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
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
Host
public Host(String rmi_object_name,
String password,
HostList hostList)
throws RemoteException
- Throws:
RemoteException
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 Apps Javadoc (2008-09-28 21:15:07)