org.oddjob.arooa.registry
Class Address

java.lang.Object
  extended byorg.oddjob.arooa.registry.Address
All Implemented Interfaces:
java.io.Serializable

public class Address
extends java.lang.Object
implements java.io.Serializable

A address uniquely identifies a component by its server and path.

See Also:
Serialized Form

Constructor Summary
Address(Path path)
          Create a local address.
Address(ServerId serverId, Path path)
          Create an address of an object on a server.
 
Method Summary
static java.lang.String arrayAsString(Address[] addresses)
          Utility function for debugs.
 Path getPath()
          Get the path.
 ServerId getServerId()
          Get the ServerId.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 Detail

getPath

public Path getPath()
Get the path.

Returns:
The path.

getServerId

public ServerId getServerId()
Get the ServerId.

Returns:
The ServerId.

toString

public java.lang.String toString()

arrayAsString

public static java.lang.String arrayAsString(Address[] addresses)
Utility function for debugs.

Parameters:
addresses - Array of address.
Returns:
A string.