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.
Author:
Rob Gordon.
See Also:
  • Constructor Details

    • ServerId

      public ServerId(String serverId)
      Create a ServerId for the give server id String.
      Parameters:
      serverId - The server id String.
  • Method Details

    • 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.