IBM WebSphere Extended Deployment (XD)TM
Release 6.0.1

com.ibm.websphere.objectgrid.plugins
DistributionMode

java.lang.Object
  |
  +--com.ibm.websphere.objectgrid.plugins.DistributionMode


This class is used to define the "distribution" mode when the serialize() method on the LogSequenceTransformer interface is used. The caller is expected to pass one of the final static variables that are defined in this class to the serialize() method. The DistributionMode works with the LogSequenceFilter to limit the amount of data distributed via the LogSequences.
See Also:
    LogSequenceFilter


Field Summary
public  DistributionModeINVALIDATE
           The INVALIDATE distribution mode is used to communicate invalidates to the receivers of the LogSequence.
public  DistributionModeINVALIDATE_CONDITIONAL
           The INVALIDATE_CONDITIONAL is very much like the #INVALIDATE distribution mode except that it also takes into account the versioned value data associated with each entry.
public  DistributionModePUSH
           The PUSH distribution mode is used to communicate changes to the receivers of the LogSequence.
public  DistributionModePUSH_CONDITIONAL
           The PUSH_CONDITIONAL is very much like the #PUSH distribution mode except that it also takes into account the versioned value data associated with each entry.

Method Summary
public  booleanisConditional()
           Check whether the mode is conditional mode or not. A mode is conditional if it is.
public  booleanisInvalidate()
           Check whether the mode is a invalidate mode or not. A mode is a invalidate mode if it is.
public  booleanisPush()
           Check whether the mode is a push mode or not. A mode is a push mode if it is.
public  inttoInt()
          
public  StringtoString()
           Returns a string representation of the DistributionMode.

Inherited Methods

Methods inherited from java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Field Detail

INVALIDATE

public 
  static INVALIDATE
The INVALIDATE distribution mode is used to communicate invalidates to the receivers of the LogSequence. This means that any updates (Updates, Deletes, Evicts) in the current LogSequence will be communicated as invalidates on the receiving side. This allows the receivers of the LogSequence to properly invalidate entries that are now out of date due to the LogSequence that was just processed. The INVALIDATE mode will only send the Keys in the distributed LogSequence since that is all that is required for an unqualified invalidate.

INVALIDATE_CONDITIONAL

public 
  static INVALIDATE_CONDITIONAL
The INVALIDATE_CONDITIONAL is very much like the #INVALIDATE distribution mode except that it also takes into account the versioned value data associated with each entry. Thus, before the invalidates are performed on the receiving side, a comparison is done between the versioned value and the value currently in the receiving side ObjectMap. If the versioned value is older than the current value, then the invalidate is not performed.

PUSH

public 
  static PUSH
The PUSH distribution mode is used to communicate changes to the receivers of the LogSequence. This means that any LogElements in the current LogSequence will be communicated as corresponding LogElements on the receiving side. This allows the receivers of the LogSequence to properly update their instance of the ObjectMap. The PUSH mode will process the LogSequence unconditionally, without any concern of optimistic collisions. This means that an Update done via PUSH mode could overwrite the value in the receiving ObjectMap that was performed via another transaction.

PUSH_CONDITIONAL

public 
  static PUSH_CONDITIONAL
The PUSH_CONDITIONAL is very much like the #PUSH distribution mode except that it also takes into account the versioned value data associated with each entry. Thus, before the updates are applied on the receiving side, a comparison is done between the versioned value and the value currently in the receiving side ObjectMap. If the versioned value is older than the current value, then the operation is not performed.

Method Detail

isConditional

public boolean isConditional()
Check whether the mode is conditional mode or not. A mode is conditional if it is either #PUSH_CONDITIONAL or #INVALIDATE_CONDITIONAL.


Returns:
     true if the mode is conditional; false otherwise


isInvalidate

public boolean isInvalidate()
Check whether the mode is a invalidate mode or not. A mode is a invalidate mode if it is either #INVALIDATE or #INVALIDATE_CONDITIONAL.


Returns:
     true if the mode is a invalidate mode; false otherwise


isPush

public boolean isPush()
Check whether the mode is a push mode or not. A mode is a push mode if it is either #PUSH or #PUSH_CONDITIONAL.


Returns:
     true if the mode is a push mode; false otherwise


toInt

public int toInt()
Return the int representation of mode


Returns:
     the int representation of mode


toString

public String toString()
Returns a string representation of the DistributionMode.


Returns:
     a string representation of the DistributionMode.


IBM WebSphere Extended Deployment (XD)TM
Release 6.0.1