Class Address

java.lang.Object
org.oddjob.arooa.registry.Address
All Implemented Interfaces:
Serializable

public class Address extends Object implements Serializable
A address uniquely identifies a component by its server and path.
See Also:
  • Constructor Details

    • Address

      public Address(Path path)
      Create a local address.
      Parameters:
      path - The path to the component.
    • Address

      public Address(ServerId serverId, Path path)
      Create an address of an object on a server.
      Parameters:
      serverId - The server id.
      path - The path.
  • Method Details

    • getPath

      public Path getPath()
      Get the path.
      Returns:
      The path.
    • getServerId

      public ServerId getServerId()
      Get the ServerId.
      Returns:
      The ServerId.
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • arrayAsString

      public static String arrayAsString(Address[] addresses)
      Utility function for debugs.
      Parameters:
      addresses - Array of address.
      Returns:
      A string.