Class SnapshotServiceFactoryBean.SnapshotServiceAdapterSupport<K,V>
java.lang.Object
org.springframework.data.gemfire.snapshot.SnapshotServiceFactoryBean.SnapshotServiceAdapterSupport<K,V>
- Type Parameters:
K
- the class type of the Cache Region key.V
- the class type of the Cache Region value.
- All Implemented Interfaces:
SnapshotServiceFactoryBean.SnapshotServiceAdapter<K,
V>
- Direct Known Subclasses:
SnapshotServiceFactoryBean.CacheSnapshotServiceAdapter
,SnapshotServiceFactoryBean.RegionSnapshotServiceAdapter
- Enclosing class:
- SnapshotServiceFactoryBean<K,
V>
protected abstract static class SnapshotServiceFactoryBean.SnapshotServiceAdapterSupport<K,V>
extends Object
implements SnapshotServiceFactoryBean.SnapshotServiceAdapter<K,V>
SnapshotServiceAdapterSupport is an abstract base class for all SnapshotServiceAdapter implementations
encapsulating common reusable functionality.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
doExport
(SnapshotServiceFactoryBean.SnapshotMetadata<K, V>... configurations) void
doImport
(SnapshotServiceFactoryBean.SnapshotMetadata<K, V>... configurations) protected boolean
exceptionSuppressingClose
(Closeable closeable) protected File[]
handleDirectoryLocation
(File directory) protected File[]
handleFileLocation
(File file) protected abstract File[]
handleLocation
(SnapshotServiceFactoryBean.SnapshotMetadata<K, V> configuration) void
void
load
(org.apache.geode.cache.snapshot.SnapshotOptions.SnapshotFormat format, org.apache.geode.cache.snapshot.SnapshotOptions<K, V> options, File... snapshots) protected void
void
void
save
(File location, org.apache.geode.cache.snapshot.SnapshotOptions.SnapshotFormat format, org.apache.geode.cache.snapshot.SnapshotOptions<K, V> options) protected String
toSimpleFilename
(String pathname)
-
Field Details
-
TEMPORARY_DIRECTORY
-
logger
protected final org.slf4j.Logger logger
-
-
Constructor Details
-
SnapshotServiceAdapterSupport
protected SnapshotServiceAdapterSupport()
-
-
Method Details
-
createOptions
- Specified by:
createOptions
in interfaceSnapshotServiceFactoryBean.SnapshotServiceAdapter<K,
V>
-
createOptions
protected org.apache.geode.cache.snapshot.SnapshotOptions<K,V> createOptions(SnapshotServiceFactoryBean.SnapshotMetadata<K, V> metadata) -
doExport
- Specified by:
doExport
in interfaceSnapshotServiceFactoryBean.SnapshotServiceAdapter<K,
V>
-
doImport
- Specified by:
doImport
in interfaceSnapshotServiceFactoryBean.SnapshotServiceAdapter<K,
V>
-
handleLocation
protected abstract File[] handleLocation(SnapshotServiceFactoryBean.SnapshotMetadata<K, V> configuration) -
handleDirectoryLocation
-
handleFileLocation
-
exceptionSuppressingClose
-
logDebug
-
load
public void load(File directory, org.apache.geode.cache.snapshot.SnapshotOptions.SnapshotFormat format) - Specified by:
load
in interfaceSnapshotServiceFactoryBean.SnapshotServiceAdapter<K,
V>
-
load
public void load(org.apache.geode.cache.snapshot.SnapshotOptions.SnapshotFormat format, org.apache.geode.cache.snapshot.SnapshotOptions<K, V> options, File... snapshots) - Specified by:
load
in interfaceSnapshotServiceFactoryBean.SnapshotServiceAdapter<K,
V>
-
save
public void save(File location, org.apache.geode.cache.snapshot.SnapshotOptions.SnapshotFormat format) - Specified by:
save
in interfaceSnapshotServiceFactoryBean.SnapshotServiceAdapter<K,
V>
-
save
public void save(File location, org.apache.geode.cache.snapshot.SnapshotOptions.SnapshotFormat format, org.apache.geode.cache.snapshot.SnapshotOptions<K, V> options) - Specified by:
save
in interfaceSnapshotServiceFactoryBean.SnapshotServiceAdapter<K,
V>
-
toSimpleFilename
-