com.croftsoft.apps.vaft.core
Class HostInfo
java.lang.Object
com.croftsoft.apps.vaft.core.ActorRemoteInfo
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
HostInfo
public HostInfo(String rmi_server_name,
int rmi_server_port,
String rmi_object_name,
String[] roles)
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 Apps Javadoc (2008-09-28 21:15:07)