|
CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
com.tangosol.net.partition.PartitionEvent
public class PartitionEvent
The PartitionEvent carries information about an event related to one or more partitions.
Field Summary | |
---|---|
protected Member |
m_memberFrom
The "from" member for events that represent transfer from a member. |
protected Member |
m_memberTo
The "to" member for events that represent transfer to a member. |
protected int |
m_nId
The event's id. |
protected PartitionSet |
m_setPartitions
The set of affected partitions. |
static int |
PARTITION_LOST
This event indicates that a partition has been lost. |
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
PartitionEvent(PartitionedService svc,
int nId,
PartitionSet setPartitions,
Member memberFrom,
Member memberTo)
Construct a partition event. |
Method Summary | |
---|---|
protected String |
getDescription()
Get the event's description. |
static String |
getDescription(int nId)
Convert an event ID into a human-readable string. |
Member |
getFromMember()
Determine the member that held the partitions prior to the action represented by this event. |
int |
getId()
Return this event's id. |
PartitionSet |
getPartitionSet()
Determine the set of partitions represented by this event. |
PartitionedService |
getService()
Determine the partitioned service that this event originates from. |
Member |
getToMember()
Determine the member that holds the partitions after the action represented by this event. |
String |
toString()
Return a String representation of this PartitionEvent object. |
Methods inherited from class java.util.EventObject |
---|
getSource |
Field Detail |
---|
public static final int PARTITION_LOST
protected int m_nId
protected PartitionSet m_setPartitions
protected Member m_memberFrom
protected Member m_memberTo
Constructor Detail |
---|
public PartitionEvent(PartitionedService svc, int nId, PartitionSet setPartitions, Member memberFrom, Member memberTo)
svc
- the service raising this eventnId
- the event ID, one of the PARTITION_* constantssetPartitions
- the set of partitions represented by this event;
may be nullmemberFrom
- the member that held the partitions prior to the
action represented by this event; may be nullmemberTo
- the member that holds the partitions after the
action represented by this event; may be nullMethod Detail |
---|
public PartitionedService getService()
public int getId()
It is expected that new event IDs will be added to subsequent versions. Listener implementations that process partition events should only deal with event objects that have specific, known event IDs, and ignore all others.
public PartitionSet getPartitionSet()
public Member getFromMember()
public Member getToMember()
protected String getDescription()
public static String getDescription(int nId)
nId
- an event ID, one of the PARTITION_* enumerated values
public String toString()
toString
in class EventObject
|
CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |