org.oddjob.arooa.registry
Class ServerId

java.lang.Object
  extended by 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.
 
Method Summary
 boolean equals(Object o)
           
 int hashCode()
           
static ServerId local()
          Get the local ServerId.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServerId

public ServerId(String serverId)
Create a ServerId for the give server id String.

Parameters:
serverId - The server id String.
Method Detail

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.