Class com.orbs.pub.app.agent.vaft.core.HostInfo
java.lang.Object
|
+----com.orbs.pub.app.agent.vaft.core.ActorRemoteInfo
|
+----com.orbs.pub.app.agent.vaft.core.HostInfo
- public class HostInfo
- extends ActorRemoteInfo
- implements java.io.Serializable
- Version:
- 1998-04-26
- Author:
- David W. Croft
Methods inherited from class java.lang.Object
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HostInfo
public HostInfo(java.lang.String rmi_server_name,
int rmi_server_port,
java.lang.String rmi_object_name,
java.lang.String[] roles)
getHostRemote
public static HostRemote getHostRemote(java.lang.String url) throws java.net.MalformedURLException, java.rmi.NotBoundException, java.rmi.RemoteException
getSwapRemote
public static SwapRemote getSwapRemote(java.lang.String url) throws java.net.MalformedURLException, java.rmi.NotBoundException, java.rmi.RemoteException
getRmi_server_name
public java.lang.String getRmi_server_name()
getRmi_server_port
public int getRmi_server_port()
getRmi_object_name
public java.lang.String getRmi_object_name()
getRoles
public java.lang.String[] getRoles()
getHostRemote
public HostRemote getHostRemote() throws java.net.MalformedURLException, java.rmi.NotBoundException, java.rmi.RemoteException
getSwapRemote
public SwapRemote getSwapRemote() throws java.net.MalformedURLException, java.rmi.NotBoundException, java.rmi.RemoteException
swap
public HostList swap(HostList hostList) throws java.net.MalformedURLException, java.rmi.NotBoundException, java.rmi.RemoteException
toURL
public java.lang.String toURL()
toString
public java.lang.String toString()
- Overrides:
- toString in class java.lang.Object
matches
public boolean matches(HostInfo hostInfo) throws java.net.UnknownHostException
- Returns true if the host address, rmi_server_port, and
rmi_object_name are all the same. Returns false if hostInfo is
null.
getHostAddress
public java.lang.String getHostAddress() throws java.net.UnknownHostException
convertLocalHostToAddress
public void convertLocalHostToAddress() throws java.net.UnknownHostException
- If the rmi_server_name is "localhost", converts it to a String
representing the IP address number.