edu.cmu.aura.service.rpc
Class RemoteReference
java.lang.Object
|
+--edu.cmu.aura.service.rpc.RemoteReference
- public class RemoteReference
- extends java.lang.Object
RemoteReference points to RPC servers.
|
Constructor Summary |
RemoteReference()
Create a new RemoteReference. |
RemoteReference(java.lang.String hostName,
int port)
Create a RemoteReference with a specific hostName and port. |
|
Method Summary |
static RemoteReference |
deserialize(org.w3c.dom.Element refElement)
|
boolean |
equals(java.lang.Object obj)
Compare this reference to another reference. |
java.lang.String |
getHostName()
Get the hostName of this reference. |
int |
getPort()
Get the port of this reference. |
int |
hashCode()
Get the hashCode for this reference. |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, toString, wait, wait, wait |
RemoteReference
public RemoteReference()
- Create a new RemoteReference.
RemoteReference
public RemoteReference(java.lang.String hostName,
int port)
- Create a RemoteReference with a specific hostName and port.
- Parameters:
hostName - the hostName of the reference.port - the port of the reference.
getHostName
public java.lang.String getHostName()
- Get the hostName of this reference.
- Returns:
- the hostName of this reference.
getPort
public int getPort()
- Get the port of this reference.
- Returns:
- the port of this reference.
equals
public boolean equals(java.lang.Object obj)
- Compare this reference to another reference.
- Overrides:
equals in class java.lang.Object
- Parameters:
obj - the reference to compare against.
hashCode
public int hashCode()
- Get the hashCode for this reference.
- Overrides:
hashCode in class java.lang.Object
- Returns:
- this hashCode for this reference.
deserialize
public static RemoteReference deserialize(org.w3c.dom.Element refElement)
throws edu.cmu.aura.service.xml.DeserializationException