Contents | Package | Class | Tree | Deprecated | Index | Help
PREV | NEXT SHOW LISTS | HIDE LISTS

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

Fields inherited from class com.orbs.pub.app.agent.vaft.core.ActorRemoteInfo
 rmi_object_name, rmi_server_name, rmi_server_port, roles
 

Constructor Summary
 HostInfo(java.lang.String rmi_server_name, int rmi_server_port, java.lang.String rmi_object_name, java.lang.String[] roles)
 
 

Method Summary
void  convertLocalHostToAddress()
If the rmi_server_name is "localhost", converts it to a String representing the IP address number.
java.lang.String  getHostAddress()
 
static HostRemote  getHostRemote(java.lang.String url)
 
HostRemote  getHostRemote()
 
java.lang.String  getRmi_object_name()
 
java.lang.String  getRmi_server_name()
 
int  getRmi_server_port()
 
java.lang.String[]  getRoles()
 
static SwapRemote  getSwapRemote(java.lang.String url)
 
SwapRemote  getSwapRemote()
 
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)
 
java.lang.String  toString()
 
java.lang.String  toURL()
 
 
Methods inherited from class com.orbs.pub.app.agent.vaft.core.ActorRemoteInfo
 getActorRemote
 
Methods inherited from class java.lang.Object
 clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HostInfo

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

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.

Contents | Package | Class | Tree | Deprecated | Index | Help


Virtual Anarchy of Free Traders
PREV | NEXT SHOW LISTS | HIDE LISTS