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(org.apache.geode.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.
|
getTimestamp
getSource, toString
public 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.SnapshotMetadata
public 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.SnapshotMetadata
public String getRegionPath()
Region.getFullPath()
public SnapshotServiceFactoryBean.SnapshotMetadata<K,V>[] getSnapshotMetadata()
SnapshotServiceFactoryBean.SnapshotMetadata
public boolean isCacheSnapshotEvent()
isRegionSnapshotEvent()
public boolean isRegionSnapshotEvent()
isCacheSnapshotEvent()
public boolean matches(org.apache.geode.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()
Copyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.