org.oddjob.arooa.registry
Class ServerId
java.lang.Object
org.oddjob.arooa.registry.ServerId
- All Implemented Interfaces:
- Serializable
public class ServerId
- extends Object
- implements Serializable
Encapsulate 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(String serverId)
Create a ServerId for the give server id String. |
ServerId
public ServerId(String serverId)
- Create a ServerId for the give server id String.
- Parameters:
serverId
- The server id String.
toString
public String toString()
- Overrides:
toString
in class Object
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
local
public static ServerId local()
- Get the local ServerId.
- Returns:
- The local ServerId.