public abstract class SnapshotApplicationEvent<K,V> extends ApplicationEvent
ApplicationEvent,
Region,
Serialized Formsource| Constructor and Description |
|---|
SnapshotApplicationEvent(Object source,
SnapshotServiceFactoryBean.SnapshotMetadata<K,V>... snapshotMetadata)
Constructs an instance of SnapshotApplicationEvent initialized with an event source and optional meta-data
describing the data snapshots to be imported/exported.
|
SnapshotApplicationEvent(Object source,
String regionPath,
SnapshotServiceFactoryBean.SnapshotMetadata<K,V>... snapshotMetadata)
Constructs an instance of SnapshotApplicationEvent initialized with an event source, a pathname of the Region
which data snapshots are imported/exported along with meta-data describing the details of the snapshot source.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getRegionPath()
Gets the absolute pathname of the Region in GemFire for which the snapshot will be taken.
|
SnapshotServiceFactoryBean.SnapshotMetadata<K,V>[] |
getSnapshotMetadata()
Gets the meta-data used to perform the GemFire Cache Region data snapshots.
|
boolean |
isCacheSnapshotEvent()
Determines whether this event indicates a Cache-wide snapshot.
|
boolean |
isRegionSnapshotEvent()
Determines whether this event indicates a Region-specific snapshot.
|
boolean |
matches(com.gemstone.gemfire.cache.Region region)
Determines whether this event has been targeted for the specified Region.
|
boolean |
matches(String regionPath)
Determines whether this event has been targeted for a Region with the given absolute pathname.
|
getTimestampgetSource, toStringpublic SnapshotApplicationEvent(Object source, SnapshotServiceFactoryBean.SnapshotMetadata<K,V>... snapshotMetadata)
source - the source of the ApplicationEvent.snapshotMetadata - an array of SnapshotMetadata containing details for each import/export.SnapshotServiceFactoryBean.SnapshotMetadatapublic SnapshotApplicationEvent(Object source, String regionPath, SnapshotServiceFactoryBean.SnapshotMetadata<K,V>... snapshotMetadata)
source - the source of the ApplicationEvent.regionPath - absolute pathname of the Region.snapshotMetadata - an array of SnapshotMetadata containing details for each import/export.SnapshotServiceFactoryBean.SnapshotMetadatapublic String getRegionPath()
Region.getFullPath()public SnapshotServiceFactoryBean.SnapshotMetadata<K,V>[] getSnapshotMetadata()
SnapshotServiceFactoryBean.SnapshotMetadatapublic boolean isCacheSnapshotEvent()
isRegionSnapshotEvent()public boolean isRegionSnapshotEvent()
isCacheSnapshotEvent()public boolean matches(com.gemstone.gemfire.cache.Region region)
region - the Region being evaluated as the subject of this event.Region.getFullPath(),
getRegionPath(),
matches(String)public boolean matches(String regionPath)
regionPath - the absolute Region pathname being evaluated as the subject of this event.getRegionPath()