org.oddjob.arooa.registry
Class ServerId

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

Constructor Detail

ServerId

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

Parameters:
serverId - The server id String.
Method Detail

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.