GemFire 7.0.1

com.gemstone.gemfire.cache.operations
Class OperationContext.OperationCode

java.lang.Object
  extended by com.gemstone.gemfire.cache.operations.OperationContext.OperationCode
Enclosing class:
OperationContext

public static final class OperationContext.OperationCode
extends Object

Enumeration for various cache operations. Implementations for each of the supported operation listed here are provided.

Since:
5.5

Field Summary
static OperationContext.OperationCode CLOSE_CQ
          A continuous query close operation.
static OperationContext.OperationCode CONTAINS_KEY
          A region containsKey operation.
static OperationContext.OperationCode DESTROY
          An entry destroy operation.
static OperationContext.OperationCode EXECUTE_CQ
          A continuous query execution operation.
static OperationContext.OperationCode EXECUTE_FUNCTION
          A function execution operation
static OperationContext.OperationCode GET
          An entry get operation.
static OperationContext.OperationCode GET_DURABLE_CQS
          A get durable continuous query operation
static OperationContext.OperationCode INVALIDATE
          An entry invalidate operation.
static OperationContext.OperationCode KEY_SET
          A region keySet operation.
static OperationContext.OperationCode PUT
          An entry create/update operation.
static OperationContext.OperationCode PUTALL
          An map putAll operation.
static OperationContext.OperationCode QUERY
          A cache query operation.
static OperationContext.OperationCode REGION_CLEAR
          A region clear operation.
static OperationContext.OperationCode REGION_CREATE
          A region create operation.
static OperationContext.OperationCode REGION_DESTROY
          A region destroy operation.
static OperationContext.OperationCode REGISTER_INTEREST
          A register interest operation.
static OperationContext.OperationCode STOP_CQ
          A continuous query stop operation.
static OperationContext.OperationCode UNREGISTER_INTEREST
          An unregister interest operation.
 
Method Summary
 boolean equals(Object obj)
          Indicates whether other object is same as this one.
 boolean equals(OperationContext.OperationCode opCode)
          Indicates whether other OperationCode is same as this one.
static OperationContext.OperationCode fromOrdinal(byte opCode)
          Returns the OperationCode represented by specified byte.
 int hashCode()
          Returns a hash code value for this OperationCode which is the same as the byte representing its operation type.
 boolean isCloseCQ()
          Returns true if this is a continuous query close operation.
 boolean isContainsKey()
          Returns true if this is a region containsKey operation.
 boolean isDestroy()
          Returns true if this is an entry destroy operation.
 boolean isExecuteCQ()
          Returns true if this is a continuous query execution operation.
 boolean isExecuteRegionFunction()
          Returns true if this is a execute region function operation.
 boolean isGet()
          Returns true if this is a entry get operation.
 boolean isGetDurableCQs()
          Returns true if this is a get durable cqs operation.
 boolean isInvalidate()
          Returns true if this is an entry invalidate operation.
 boolean isKeySet()
          Returns true if this is a region keySet operation.
 boolean isPut()
          Returns true if this is a entry create/update operation.
 boolean isPutAll()
          Returns true if this is a map putAll operation.
 boolean isQuery()
          Returns true if this is a cache query operation.
 boolean isRegionClear()
          Returns true if this is a region clear operation.
 boolean isRegionCreate()
          Returns true if this is a region create operation.
 boolean isRegionDestroy()
          Returns true if this is a region destroy operation.
 boolean isRegisterInterest()
          Returns true if this is a register interest operation.
 boolean isStopCQ()
          Returns true if this is a continuous query stop operation.
 boolean isUnregisterInterest()
          Returns true if this is an unregister interest operation.
static OperationContext.OperationCode parse(String operationName)
          Returns the OperationCode represented by specified string.
 byte toOrdinal()
          Returns the byte representing this operation code.
 String toString()
          Returns a string representation for this operation.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

GET

public static final OperationContext.OperationCode GET
An entry get operation.

See Also:
Region.get(Object)

PUT

public static final OperationContext.OperationCode PUT
An entry create/update operation.

See Also:
Region.put(Object, Object)

PUTALL

public static final OperationContext.OperationCode PUTALL
An map putAll operation.

See Also:
Region.putAll(Map map)

DESTROY

public static final OperationContext.OperationCode DESTROY
An entry destroy operation.

See Also:
Region.destroy(Object, Object)

INVALIDATE

public static final OperationContext.OperationCode INVALIDATE
An entry invalidate operation.

See Also:
Region.invalidate(Object, Object)

REGISTER_INTEREST

public static final OperationContext.OperationCode REGISTER_INTEREST
A register interest operation.

See Also:
Region.registerInterest(Object)

UNREGISTER_INTEREST

public static final OperationContext.OperationCode UNREGISTER_INTEREST
An unregister interest operation.

See Also:
Region.unregisterInterest(K)

CONTAINS_KEY

public static final OperationContext.OperationCode CONTAINS_KEY
A region containsKey operation.

See Also:
Region.containsKey(java.lang.Object)

KEY_SET

public static final OperationContext.OperationCode KEY_SET
A region keySet operation.

See Also:
Region.keySet()

QUERY

public static final OperationContext.OperationCode QUERY
A cache query operation.

See Also:
Region.query(java.lang.String)

EXECUTE_CQ

public static final OperationContext.OperationCode EXECUTE_CQ
A continuous query execution operation.


STOP_CQ

public static final OperationContext.OperationCode STOP_CQ
A continuous query stop operation.


CLOSE_CQ

public static final OperationContext.OperationCode CLOSE_CQ
A continuous query close operation.


REGION_CLEAR

public static final OperationContext.OperationCode REGION_CLEAR
A region clear operation.

See Also:
Region.clear()

REGION_CREATE

public static final OperationContext.OperationCode REGION_CREATE
A region create operation.

See Also:
Region.createSubregion(java.lang.String, com.gemstone.gemfire.cache.RegionAttributes), Cache.createRegion(java.lang.String, com.gemstone.gemfire.cache.RegionAttributes)

REGION_DESTROY

public static final OperationContext.OperationCode REGION_DESTROY
A region destroy operation.

See Also:
Region.destroyRegion(Object)

EXECUTE_FUNCTION

public static final OperationContext.OperationCode EXECUTE_FUNCTION
A function execution operation


GET_DURABLE_CQS

public static final OperationContext.OperationCode GET_DURABLE_CQS
A get durable continuous query operation

Method Detail

isGet

public boolean isGet()
Returns true if this is a entry get operation.


isPut

public boolean isPut()
Returns true if this is a entry create/update operation.


isPutAll

public boolean isPutAll()
Returns true if this is a map putAll operation.


isDestroy

public boolean isDestroy()
Returns true if this is an entry destroy operation.


isInvalidate

public boolean isInvalidate()
Returns true if this is an entry invalidate operation.


isRegisterInterest

public boolean isRegisterInterest()
Returns true if this is a register interest operation.


isUnregisterInterest

public boolean isUnregisterInterest()
Returns true if this is an unregister interest operation.


isContainsKey

public boolean isContainsKey()
Returns true if this is a region containsKey operation.


isKeySet

public boolean isKeySet()
Returns true if this is a region keySet operation.


isQuery

public boolean isQuery()
Returns true if this is a cache query operation.


isExecuteCQ

public boolean isExecuteCQ()
Returns true if this is a continuous query execution operation.


isStopCQ

public boolean isStopCQ()
Returns true if this is a continuous query stop operation.


isCloseCQ

public boolean isCloseCQ()
Returns true if this is a continuous query close operation.


isRegionClear

public boolean isRegionClear()
Returns true if this is a region clear operation.


isRegionCreate

public boolean isRegionCreate()
Returns true if this is a region create operation.


isRegionDestroy

public boolean isRegionDestroy()
Returns true if this is a region destroy operation.


isExecuteRegionFunction

public boolean isExecuteRegionFunction()
Returns true if this is a execute region function operation.


isGetDurableCQs

public boolean isGetDurableCQs()
Returns true if this is a get durable cqs operation.


fromOrdinal

public static OperationContext.OperationCode fromOrdinal(byte opCode)
Returns the OperationCode represented by specified byte.


parse

public static OperationContext.OperationCode parse(String operationName)
Returns the OperationCode represented by specified string.


toOrdinal

public byte toOrdinal()
Returns the byte representing this operation code.

Returns:
a byte representing this operation.

toString

public final String toString()
Returns a string representation for this operation.

Overrides:
toString in class Object
Returns:
the name of this operation.

equals

public final boolean equals(Object obj)
Indicates whether other object is same as this one.

Overrides:
equals in class Object
Returns:
true if other object is same as this one.

equals

public final boolean equals(OperationContext.OperationCode opCode)
Indicates whether other OperationCode is same as this one.

Returns:
true if other OperationCode is same as this one.

hashCode

public final int hashCode()
Returns a hash code value for this OperationCode which is the same as the byte representing its operation type.

Overrides:
hashCode in class Object
Returns:
the hashCode of this operation.

GemFire 7.0.1

Copyright © 1997-2013 VMware, Inc. All rights reserved.