com.sun.enterprise.ee.cms.impl.base
Class PeerID<T extends Serializable>
java.lang.Object
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
NULL_PEER_ID
public static final PeerID<Serializable> NULL_PEER_ID
PeerID
public PeerID(T uniqueID,
String groupName,
String instanceName)
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.