|
Oracle® Coherence Java API Reference Release 3.6.1.0 E18814-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
java.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_memberFromThe "from" member for events that represent transfer from a member. |
protected Member |
m_memberToThe "to" member for events that represent transfer to a member. |
protected int |
m_nIdThe event's id. |
protected PartitionSet |
m_setPartitionsThe set of affected partitions. |
static int |
PARTITION_ASSIGNEDThis event indicates that the ownership of one or more partitions have been assigned to a service member. |
static int |
PARTITION_LOSTThis event indicates that one or more partitions have been lost. |
static int |
PARTITION_RECEIVE_BEGINThis event indicates that a transfer for one or more partitions is beginning and the data that belongs to partitions in the specified partition set are about to be inserted into corresponding backing maps. |
static int |
PARTITION_RECEIVE_COMMITThis event indicates that a transfer for one or more partitions has completed and the data that belong to these partitions have been inserted into corresponding backing maps. |
static int |
PARTITION_TRANSMIT_BEGINThis event indicates that data that belong to one or more partitions are about to be transferred to a different member. |
static int |
PARTITION_TRANSMIT_COMMITThis event indicates that data that belong to one or more partitions have been successfully transferred to a different member and all the data for that partition have been removed from this node. |
static int |
PARTITION_TRANSMIT_ROLLBACKThis event indicates that a transfer for one or more partitions has been aborted (e.g. receiver's failure), and the partitions are now "owned" by this node again, and are about to be unfrozen. |
| 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 java.lang.String |
getDescription()Get the event's description. |
static java.lang.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. |
java.lang.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
public static final int PARTITION_TRANSMIT_BEGIN
public static final int PARTITION_TRANSMIT_COMMIT
public static final int PARTITION_TRANSMIT_ROLLBACK
public static final int PARTITION_RECEIVE_BEGIN
public static final int PARTITION_RECEIVE_COMMIT
public static final int PARTITION_ASSIGNED
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 null| Method Detail |
|---|
public PartitionedService getService()
public int getId()
public PartitionSet getPartitionSet()
public Member getFromMember()
public Member getToMember()
protected java.lang.String getDescription()
public static java.lang.String getDescription(int nId)
nId - an event ID, one of the PARTITION_* enumerated valuespublic java.lang.String toString()
toString in class java.util.EventObject
|
Oracle® Coherence Java API Reference Release 3.6.1.0 E18814-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||