com.sun.sgs.impl.service.nodemap
Class IdentityMO

java.lang.Object
  extended by com.sun.sgs.impl.service.nodemap.IdentityMO
All Implemented Interfaces:
ManagedObject, Serializable

 class IdentityMO
extends Object
implements ManagedObject, Serializable

The NodeMappingServiceImpl representation of a id->node mapping. This class is immutable.


Constructor Summary
IdentityMO(Identity id, long nodeId)
          Returns a new IdentityMO instance.
 
Method Summary
 boolean equals(Object obj)
          
(package private)  Identity getIdentity()
          Returns the identity.
(package private)  long getNodeId()
          Returns the node.
 int hashCode()
          
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IdentityMO

IdentityMO(Identity id,
           long nodeId)
Returns a new IdentityMO instance.

Parameters:
id - the identity
nodeId - the node the identity is mapped to
Method Detail

getIdentity

Identity getIdentity()
Returns the identity.

Returns:
the identity

getNodeId

long getNodeId()
Returns the node.

Returns:
the node

toString

public String toString()

Overrides:
toString in class Object

equals

public boolean equals(Object obj)

Overrides:
equals in class Object

hashCode

public int hashCode()

Overrides:
hashCode in class Object

RedDwarf, Version 0.10.1
2010-03-14 10:56:12

Copyright © 2010 The RedDwarf Authors. All rights reserved
Copyright © 2007-2010 Sun Microsystems, Inc. All rights reserved