GemFire 5.7.1

com.gemstone.gemfire.cache
Class Operation

java.lang.Object
  extended by com.gemstone.gemfire.cache.Operation
All Implemented Interfaces:
Serializable

public class Operation
extends Object
implements Serializable

Enumerated type for an event operation. This class describes the operation that generated the event.

Since:
5.0
See Also:
CacheEvent.getOperation(), Serialized Form

Field Summary
static Operation CACHE_CLOSE
          A cache close.
static Operation CACHE_CREATE
          A cache create.
static Operation CACHE_RECONNECT
          A cache close triggered by LossAction.RECONNECT.
static Operation CREATE
          An entry creation.
static Operation DESTROY
          An entry distributed destroy.
static Operation EVICT_DESTROY
          An entry local destroy caused by an eviction.
static Operation EXPIRE_DESTROY
          An entry distributed destroy triggered by expiration
static Operation EXPIRE_INVALIDATE
          An entry distributed invalidate triggered by expiration
static Operation EXPIRE_LOCAL_DESTROY
          An entry local destroy triggered by expiration
static Operation EXPIRE_LOCAL_INVALIDATE
          An entry local invalidate triggered by expiration
static Operation FORCED_DISCONNECT
          A cache close due to being forced out of the distributed system by other members.
static Operation INVALIDATE
          An entry distributed invalidate.
static Operation LOCAL_DESTROY
          An entry local destroy.
static Operation LOCAL_INVALIDATE
          An entry local invalidate.
static Operation LOCAL_LOAD_CREATE
          An entry creation caused by a local loader
static Operation LOCAL_LOAD_UPDATE
          An entry update caused by a local load.
static Operation MARKER
          A marker operation.
static Operation NET_LOAD_CREATE
          An entry creation caused by a net loader
static Operation NET_LOAD_UPDATE
          An entry update caused by a net load.
 byte ordinal
          byte used as ordinal to represent this Operation
static Operation PUTALL_CREATE
          An entry creation caused by a putall invocation
static Operation PUTALL_UPDATE
          An entry update caused by a putall invocation.
static Operation REGION_CLEAR
          A region clear.
static Operation REGION_CLOSE
          A region close
static Operation REGION_CREATE
          A region create.
static Operation REGION_DESTROY
          A region distributed destroy.
static Operation REGION_EXPIRE_DESTROY
          A region distributed destroy triggered by expiration
static Operation REGION_EXPIRE_INVALIDATE
          A region distributed invalidate triggered by expiration
static Operation REGION_EXPIRE_LOCAL_DESTROY
          A region local destroy triggered by expiration
static Operation REGION_EXPIRE_LOCAL_INVALIDATE
          A region local invalidate triggered by expiration
static Operation REGION_INVALIDATE
          A region distributed invalidate.
static Operation REGION_LOAD_SNAPSHOT
          A region load snapshot.
static Operation REGION_LOCAL_CLEAR
          A region local clear.
static Operation REGION_LOCAL_DESTROY
          A region local destroy.
static Operation REGION_LOCAL_INVALIDATE
          A region local invalidate.
static Operation REGION_REINITIALIZE
          A region destroy triggered by ResumptionAction.REINITIALIZE.
static Operation SEARCH_CREATE
          An entry creation caused by a netsearch
static Operation SEARCH_UPDATE
          An entry update caused by a net search.
static Operation UPDATE
          An entry update.
 
Method Summary
static Operation fromOrdinal(byte ordinal)
          Return the Operation represented by specified ordinal
 Operation getCorrespondingCreateOp()
          Returns the create operation that corresponds to this operation.
 Operation getCorrespondingUpdateOp()
          Returns the update operation that corresponds to this operation.
 boolean isClear()
          Returns true if the operation cleared the region.
 boolean isClose()
          Returns true if the operation closed the cache or a region.
 boolean isCreate()
          Returns true if this operation created a new entry.
 boolean isDestroy()
          Returns true if the operation destroyed an entry.
 boolean isDistributed()
          Returns true if the operation may be distributed.
 boolean isEntry()
          Returns true if the operation applies to a single entry.
 boolean isExpiration()
          Answer true if this operation resulted from expiration.
 boolean isInvalidate()
          Returns true if the operation invalidated an entry.
 boolean isLoad()
          Returns true if this operation included running a loader.
 boolean isLocal()
          Returns true if the operation is limited to the local cache.
 boolean isLocalLoad()
          Returns true if this operation included a loader running in this cache.
 boolean isNetLoad()
          Returns true if this operation included a loader running that was remote from the cache that requested it, i.e., a netLoad.
 boolean isNetSearch()
          Returns true if this operation included a netSearch.
 boolean isPutAll()
          Returns true if this operation was initiated by a putall.
 boolean isRegion()
          Returns true if the operation applies to the entire region.
 boolean isRegionDestroy()
          Returns true if the operation destroyed a region.
 boolean isRegionInvalidate()
          Returns true if the operation invalidated a region.
 boolean isSearchOrLoad()
          Returns true if this operation was a net search or a load.
 boolean isUpdate()
          Returns true if this operation updated an existing entry.
 String toString()
          Returns a string representation for this operation.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MARKER

public static final Operation MARKER
A marker operation.


CREATE

public static final Operation CREATE
An entry creation.

See Also:
Region.create(Object, Object)

PUTALL_CREATE

public static final Operation PUTALL_CREATE
An entry creation caused by a putall invocation

See Also:
Region.putAll(java.util.Map)

SEARCH_CREATE

public static final Operation SEARCH_CREATE
An entry creation caused by a netsearch

See Also:
Region.get(Object)

LOCAL_LOAD_CREATE

public static final Operation LOCAL_LOAD_CREATE
An entry creation caused by a local loader

See Also:
Region.get(Object), CacheLoader

NET_LOAD_CREATE

public static final Operation NET_LOAD_CREATE
An entry creation caused by a net loader

See Also:
Region.get(Object), CacheLoader

UPDATE

public static final Operation UPDATE
An entry update.

See Also:
Region.put(Object, Object)

PUTALL_UPDATE

public static final Operation PUTALL_UPDATE
An entry update caused by a putall invocation.

See Also:
Region.putAll(java.util.Map)

SEARCH_UPDATE

public static final Operation SEARCH_UPDATE
An entry update caused by a net search.

See Also:
Region.get(Object)

LOCAL_LOAD_UPDATE

public static final Operation LOCAL_LOAD_UPDATE
An entry update caused by a local load.

See Also:
Region.get(Object), CacheLoader

NET_LOAD_UPDATE

public static final Operation NET_LOAD_UPDATE
An entry update caused by a net load.

See Also:
Region.get(Object), CacheLoader

INVALIDATE

public static final Operation INVALIDATE
An entry distributed invalidate.

See Also:
Region.invalidate(Object)

LOCAL_INVALIDATE

public static final Operation LOCAL_INVALIDATE
An entry local invalidate.

See Also:
Region.localInvalidate(Object)

DESTROY

public static final Operation DESTROY
An entry distributed destroy.

See Also:
Region.destroy(Object)

LOCAL_DESTROY

public static final Operation LOCAL_DESTROY
An entry local destroy.

See Also:
Region.localDestroy(Object)

EVICT_DESTROY

public static final Operation EVICT_DESTROY
An entry local destroy caused by an eviction.

See Also:
Region.localDestroy(Object)

REGION_LOAD_SNAPSHOT

public static final Operation REGION_LOAD_SNAPSHOT
A region load snapshot.

See Also:
Region.loadSnapshot(java.io.InputStream)

REGION_LOCAL_DESTROY

public static final Operation REGION_LOCAL_DESTROY
A region local destroy.

See Also:
Region.localDestroyRegion()

REGION_CREATE

public static final Operation REGION_CREATE
A region create.

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

REGION_CLOSE

public static final Operation REGION_CLOSE
A region close

See Also:
Region.close()

REGION_DESTROY

public static final Operation REGION_DESTROY
A region distributed destroy.

See Also:
Region.destroyRegion()

EXPIRE_DESTROY

public static final Operation EXPIRE_DESTROY
An entry distributed destroy triggered by expiration

See Also:
RegionAttributes.getEntryTimeToLive(), RegionAttributes.getEntryIdleTimeout(), ExpirationAction.DESTROY

EXPIRE_LOCAL_DESTROY

public static final Operation EXPIRE_LOCAL_DESTROY
An entry local destroy triggered by expiration

See Also:
RegionAttributes.getEntryTimeToLive(), RegionAttributes.getEntryIdleTimeout(), ExpirationAction.LOCAL_DESTROY

EXPIRE_INVALIDATE

public static final Operation EXPIRE_INVALIDATE
An entry distributed invalidate triggered by expiration

See Also:
RegionAttributes.getEntryTimeToLive(), RegionAttributes.getEntryIdleTimeout(), ExpirationAction.INVALIDATE

EXPIRE_LOCAL_INVALIDATE

public static final Operation EXPIRE_LOCAL_INVALIDATE
An entry local invalidate triggered by expiration

See Also:
RegionAttributes.getEntryTimeToLive(), RegionAttributes.getEntryIdleTimeout(), ExpirationAction.LOCAL_INVALIDATE

REGION_EXPIRE_DESTROY

public static final Operation REGION_EXPIRE_DESTROY
A region distributed destroy triggered by expiration

See Also:
RegionAttributes.getRegionTimeToLive(), RegionAttributes.getRegionIdleTimeout(), ExpirationAction.DESTROY

REGION_EXPIRE_LOCAL_DESTROY

public static final Operation REGION_EXPIRE_LOCAL_DESTROY
A region local destroy triggered by expiration

See Also:
RegionAttributes.getRegionTimeToLive(), RegionAttributes.getRegionIdleTimeout(), ExpirationAction.LOCAL_DESTROY

REGION_EXPIRE_INVALIDATE

public static final Operation REGION_EXPIRE_INVALIDATE
A region distributed invalidate triggered by expiration

See Also:
RegionAttributes.getRegionTimeToLive(), RegionAttributes.getRegionIdleTimeout(), ExpirationAction.INVALIDATE

REGION_EXPIRE_LOCAL_INVALIDATE

public static final Operation REGION_EXPIRE_LOCAL_INVALIDATE
A region local invalidate triggered by expiration

See Also:
RegionAttributes.getRegionTimeToLive(), RegionAttributes.getRegionIdleTimeout(), ExpirationAction.LOCAL_INVALIDATE

REGION_LOCAL_INVALIDATE

public static final Operation REGION_LOCAL_INVALIDATE
A region local invalidate.

See Also:
Region.localInvalidateRegion()

REGION_INVALIDATE

public static final Operation REGION_INVALIDATE
A region distributed invalidate.

See Also:
Region.invalidateRegion()

REGION_CLEAR

public static final Operation REGION_CLEAR
A region clear.

See Also:
Region.clear()

REGION_LOCAL_CLEAR

public static final Operation REGION_LOCAL_CLEAR
A region local clear.

See Also:
Region.localClear()

CACHE_CREATE

public static final Operation CACHE_CREATE
A cache create. Note that this is marked as a region operation.

See Also:
CacheFactory.create(com.gemstone.gemfire.distributed.DistributedSystem)

CACHE_CLOSE

public static final Operation CACHE_CLOSE
A cache close. Note that this is marked as a region operation.

See Also:
Cache.close()

FORCED_DISCONNECT

public static final Operation FORCED_DISCONNECT
A cache close due to being forced out of the distributed system by other members. This typically happens when a member becomes unresponsive and does not respond to heartbeat requests within the "member-timeout" period.
Note that this is marked as a region operation.


REGION_REINITIALIZE

public static final Operation REGION_REINITIALIZE
A region destroy triggered by ResumptionAction.REINITIALIZE.

See Also:
ResumptionAction.REINITIALIZE

CACHE_RECONNECT

public static final Operation CACHE_RECONNECT
A cache close triggered by LossAction.RECONNECT.

See Also:
LossAction.RECONNECT

ordinal

public final byte ordinal
byte used as ordinal to represent this Operation

Method Detail

fromOrdinal

public static Operation fromOrdinal(byte ordinal)
Return the Operation represented by specified ordinal


isCreate

public boolean isCreate()
Returns true if this operation created a new entry.


isUpdate

public boolean isUpdate()
Returns true if this operation updated an existing entry.


isInvalidate

public boolean isInvalidate()
Returns true if the operation invalidated an entry.


isDestroy

public boolean isDestroy()
Returns true if the operation destroyed an entry.


isClear

public boolean isClear()
Returns true if the operation cleared the region.


isClose

public boolean isClose()
Returns true if the operation closed the cache or a region.


isPutAll

public boolean isPutAll()
Returns true if this operation was initiated by a putall.


isRegionInvalidate

public boolean isRegionInvalidate()
Returns true if the operation invalidated a region.


isRegionDestroy

public boolean isRegionDestroy()
Returns true if the operation destroyed a region.


isRegion

public boolean isRegion()
Returns true if the operation applies to the entire region.


isLocal

public boolean isLocal()
Returns true if the operation is limited to the local cache.


isDistributed

public boolean isDistributed()
Returns true if the operation may be distributed.


isEntry

public boolean isEntry()
Returns true if the operation applies to a single entry.


isExpiration

public boolean isExpiration()
Answer true if this operation resulted from expiration.

Returns:
true if this operation resulted from expiration

isLocalLoad

public boolean isLocalLoad()
Returns true if this operation included a loader running in this cache. Note that this will be true even if the local loader called netSearch.

Returns:
true if this operation included a local loader execution

isNetLoad

public boolean isNetLoad()
Returns true if this operation included a loader running that was remote from the cache that requested it, i.e., a netLoad. Note that the cache that requested the netLoad may not be this cache.

Returns:
true if this operation included a netLoad

isLoad

public boolean isLoad()
Returns true if this operation included running a loader.

Returns:
true if isLocalLoad or isNetLoad

isNetSearch

public boolean isNetSearch()
Returns true if this operation included a netSearch. If the netSearch was invoked by a loader however, this will return false and isLocalLoad() or isNetLoad() will return true instead.

Returns:
true if this operation included a netSearch

isSearchOrLoad

public boolean isSearchOrLoad()
Returns true if this operation was a net search or a load.

Returns:
true if this operation include a netSearch or any type of load.

getCorrespondingUpdateOp

public Operation getCorrespondingUpdateOp()
Returns the update operation that corresponds to this operation. For a create operation the corresponding update op is returned. For all other operations this is returned.


getCorrespondingCreateOp

public Operation getCorrespondingCreateOp()
Returns the create operation that corresponds to this operation. For an update operation the corresponding create op is returned. For all other operations this is returned.


toString

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

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

GemFire 5.7.1

Copyright © 2002-2008 GemStone Systems, Inc. All Rights Reserved.