com.cloudtran.coherence
Class ManagerEvent

java.lang.Object
  extended by com.cloudtran.coherence.ManagerEvent
All Implemented Interfaces:
Serializable

public class ManagerEvent
extends Object
implements Serializable

This is the object passed to the ManagerEventListener.

See Also:
Serialized Form

Field Summary
 com.cloudtran.shared.CTxInfo ctxInfo
          This is the transaction attributes defining the properties for the transaction.
 List<CohortEntryActionLL> gridObjects
          This is the aggregate list of objects from all clients and cache nodes.
 List<CohortEntryActionLL> persistableObjects
          This is the list of objects that are to be persisted.
 long persistRequestNumber
          This is the globally ordered persist request number.
 
Constructor Summary
ManagerEvent(com.cloudtran.shared.CTxInfo ctxInfo, long persistRequestNumber, List<CohortEntryActionLL> gridObjects, List<CohortEntryActionLL> persistableObjects)
           
 
Method Summary
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ctxInfo

public com.cloudtran.shared.CTxInfo ctxInfo
This is the transaction attributes defining the properties for the transaction. It includes the internalTxId.


persistRequestNumber

public long persistRequestNumber
This is the globally ordered persist request number. It is unique for a given transaction. It is valid on that call and on the complete() call; it is invalid on all other calls. This is only intended to be used on the ManagerEventListener.committing() call.


gridObjects

public List<CohortEntryActionLL> gridObjects
This is the aggregate list of objects from all clients and cache nodes.

For TopLink Grid transactions, this is all the rows that have been updated written and the individual objects are CohortEntryActionLL's. CohortEntryActionLL is specific to low-level because it includes the 'previousValue' and 'operationCounter' fields. These are meaningless for TopLink Grid transactions and the fields are not set in the objects in gridObjects.

For Low-level API transactions, gridObjects are the objects as updated in the grid.


persistableObjects

public List<CohortEntryActionLL> persistableObjects
This is the list of objects that are to be persisted.

For TopLink Grid transactions, it is the same as the gridObjects.

For Low-level API transactions, the ManagerEventListener must set this value. If the grid object is an aggregation of many persistable objects, then the size of persistableObjects will be typically be larger size of gridObjects.

Constructor Detail

ManagerEvent

public ManagerEvent(com.cloudtran.shared.CTxInfo ctxInfo,
                    long persistRequestNumber,
                    List<CohortEntryActionLL> gridObjects,
                    List<CohortEntryActionLL> persistableObjects)
Method Detail

toString

public String toString()
Overrides:
toString in class Object