org.oddjob.arooa.registry
Class ServerId
java.lang.Object
org.oddjob.arooa.registry.ServerId
- All Implemented Interfaces:
- java.io.Serializable
- public class ServerId
- extends java.lang.Object
- implements java.io.Serializable
Enapsulate a server identifier as an object. Typically the server id
will be the url of the server.
- See Also:
- Serialized Form
- Author:
- Rob Gordon.
|
Constructor Summary |
ServerId(java.lang.String serverId)
Create a ServerId for the give server id String. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
ServerId
public ServerId(java.lang.String serverId)
- Create a ServerId for the give server id String.
- Parameters:
serverId - The server id String.
toString
public java.lang.String toString()
equals
public boolean equals(java.lang.Object o)
hashCode
public int hashCode()
local
public static ServerId local()
- Get the local ServerId.
- Returns:
- The local ServerId.