GemFire 6.0.1

com.gemstone.gemfire.admin
Interface SystemMemberCacheListener


public interface SystemMemberCacheListener

A listener whose callback methods can be used to track the lifecycle of caches and regions in the GemFire distributed system.

Since:
5.0
See Also:
AdminDistributedSystem.addCacheListener(com.gemstone.gemfire.admin.SystemMemberCacheListener), AdminDistributedSystem.removeCacheListener(com.gemstone.gemfire.admin.SystemMemberCacheListener)

Method Summary
 void afterCacheClose(SystemMemberCacheEvent event)
          Invoked after a cache is closed in any node of a distributed system.
 void afterCacheCreate(SystemMemberCacheEvent event)
          Invoked after a cache is created in any node of a distributed system.
 void afterRegionCreate(SystemMemberRegionEvent event)
          Invoked after a region is created in any node of distributed system.
 void afterRegionLoss(SystemMemberRegionEvent event)
          Invoked when a region is destroyed or closed in any node of distributed system.
 

Method Detail

afterRegionCreate

void afterRegionCreate(SystemMemberRegionEvent event)
Invoked after a region is created in any node of distributed system.

Parameters:
event - describes the region that was created.
See Also:
CacheFactory.create(com.gemstone.gemfire.distributed.DistributedSystem), Cache.createRegion(java.lang.String, com.gemstone.gemfire.cache.RegionAttributes), Region.createSubregion(java.lang.String, com.gemstone.gemfire.cache.RegionAttributes)

afterRegionLoss

void afterRegionLoss(SystemMemberRegionEvent event)
Invoked when a region is destroyed or closed in any node of distributed system.

Parameters:
event - describes the region that was lost. The operation on this event can be used to determine the actual operation that caused the loss. Note that Cache.close() invokes this callback with Operation.CACHE_CLOSE for each region in the closed cache and it invokes afterCacheClose(com.gemstone.gemfire.admin.SystemMemberCacheEvent).
See Also:
Cache.close(), Region.close(), Region.localDestroyRegion(), Region.destroyRegion()

afterCacheCreate

void afterCacheCreate(SystemMemberCacheEvent event)
Invoked after a cache is created in any node of a distributed system. Note that this callback will be done before any regions are created in the cache.

Parameters:
event - describes the member that created the cache.
See Also:
CacheFactory.create(com.gemstone.gemfire.distributed.DistributedSystem)

afterCacheClose

void afterCacheClose(SystemMemberCacheEvent event)
Invoked after a cache is closed in any node of a distributed system. This callback is done after those done for each region in the cache. This callback is not done if the distributed member that has a cache crashes.

Parameters:
event - describes the member that closed its cache.
See Also:
Cache.close()

GemFire 6.0.1

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