com.croftsoft.apps.vaft.core
Class HostInfo

java.lang.Object
  extended by com.croftsoft.apps.vaft.core.ActorRemoteInfo
      extended by com.croftsoft.apps.vaft.core.HostInfo
All Implemented Interfaces:
Serializable

public class HostInfo
extends ActorRemoteInfo
implements Serializable

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

Field Summary
 
Fields inherited from class com.croftsoft.apps.vaft.core.ActorRemoteInfo
rmi_object_name, rmi_server_name, rmi_server_port, roles
 
Constructor Summary
HostInfo(String rmi_server_name, int rmi_server_port, String rmi_object_name, String[] roles)
           
 
Method Summary
 void convertLocalHostToAddress()
          If the rmi_server_name is "localhost", converts it to a String representing the IP address number.
 String getHostAddress()
           
 HostRemote getHostRemote()
           
static HostRemote getHostRemote(String url)
           
 String getRmi_object_name()
           
 String getRmi_server_name()
           
 int getRmi_server_port()
           
 String[] getRoles()
           
 SwapRemote getSwapRemote()
           
static SwapRemote getSwapRemote(String url)
           
 boolean matches(HostInfo hostInfo)
          Returns true if the host address, rmi_server_port, and rmi_object_name are all the same.
 HostList swap(HostList hostList)
           
 String toString()
           
 String toURL()
           
 
Methods inherited from class com.croftsoft.apps.vaft.core.ActorRemoteInfo
getActorRemote
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HostInfo

public HostInfo(String rmi_server_name,
                int rmi_server_port,
                String rmi_object_name,
                String[] roles)
Method Detail

getHostRemote

public static HostRemote getHostRemote(String url)
                                throws MalformedURLException,
                                       NotBoundException,
                                       RemoteException
Throws:
MalformedURLException
NotBoundException
RemoteException

getSwapRemote

public static SwapRemote getSwapRemote(String url)
                                throws MalformedURLException,
                                       NotBoundException,
                                       RemoteException
Throws:
MalformedURLException
NotBoundException
RemoteException

getRmi_server_name

public String getRmi_server_name()

getRmi_server_port

public int getRmi_server_port()

getRmi_object_name

public String getRmi_object_name()

getRoles

public String[] getRoles()

getHostRemote

public HostRemote getHostRemote()
                         throws MalformedURLException,
                                NotBoundException,
                                RemoteException
Throws:
MalformedURLException
NotBoundException
RemoteException

getSwapRemote

public SwapRemote getSwapRemote()
                         throws MalformedURLException,
                                NotBoundException,
                                RemoteException
Throws:
MalformedURLException
NotBoundException
RemoteException

swap

public HostList swap(HostList hostList)
              throws MalformedURLException,
                     NotBoundException,
                     RemoteException
Throws:
MalformedURLException
NotBoundException
RemoteException

toURL

public String toURL()

toString

public String toString()
Overrides:
toString in class Object

matches

public boolean matches(HostInfo hostInfo)
                throws UnknownHostException
Returns true if the host address, rmi_server_port, and rmi_object_name are all the same. Returns false if hostInfo is null.

Throws:
UnknownHostException

getHostAddress

public String getHostAddress()
                      throws UnknownHostException
Throws:
UnknownHostException

convertLocalHostToAddress

public void convertLocalHostToAddress()
                               throws UnknownHostException
If the rmi_server_name is "localhost", converts it to a String representing the IP address number.

Throws:
UnknownHostException

CroftSoft Javadoc

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