com.sun.enterprise.ee.cms.impl.base
Class PeerID<T extends Serializable>

java.lang.Object
  extended by com.sun.enterprise.ee.cms.impl.base.PeerID<T>
All Implemented Interfaces:
Serializable, Comparable<PeerID>

public class PeerID<T extends Serializable>
extends Object
implements Serializable, Comparable<PeerID>

This class is representative of the identifier of a member uniqueID is used in order to identify a unique member. According to a kind of transport layers, uniqueID type will be determined.

Author:
Bongjae Chang
See Also:
Serialized Form

Field Summary
static PeerID<Serializable> NULL_PEER_ID
           
 
Constructor Summary
PeerID(T uniqueID, String groupName, String instanceName)
           
 
Method Summary
 int compareTo(PeerID other)
           
 boolean equals(Object other)
           
 String getGroupName()
           
 String getInstanceName()
           
 T getUniqueID()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

NULL_PEER_ID

public static final PeerID<Serializable> NULL_PEER_ID
Constructor Detail

PeerID

public PeerID(T uniqueID,
              String groupName,
              String instanceName)
Method Detail

getUniqueID

public T getUniqueID()

getGroupName

public String getGroupName()

getInstanceName

public String getInstanceName()

equals

public boolean equals(Object other)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

compareTo

public int compareTo(PeerID other)
Specified by:
compareTo in interface Comparable<PeerID>


Copyright © 2012. All Rights Reserved.