Class CacheRefreshSnapshotFileService
- java.lang.Object
-
- org.gluu.oxtrust.ldap.cache.service.CacheRefreshSnapshotFileService
-
@ApplicationScoped @Named("cacheRefreshSnapshotFileService") public class CacheRefreshSnapshotFileService extends java.lang.Object
Helper service to work with snapshots- Author:
- Yuriy Movchan Date: 06.09.2011
-
-
Constructor Summary
Constructors Constructor Description CacheRefreshSnapshotFileService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
createSnapshot(org.gluu.config.oxtrust.CacheRefreshConfiguration cacheRefreshConfiguration, java.util.Map<java.lang.String,java.lang.Integer> inumWithEntryHashCodeMap)
boolean
prepareSnapshotsFolder(org.gluu.config.oxtrust.CacheRefreshConfiguration cacheRefreshConfiguration)
java.util.Map<java.lang.String,java.lang.Integer>
readLastSnapshot(org.gluu.config.oxtrust.CacheRefreshConfiguration cacheRefreshConfiguration)
java.util.List<java.lang.String>
readProblemList(org.gluu.config.oxtrust.CacheRefreshConfiguration cacheRefreshConfiguration)
java.util.Map<java.lang.String,java.lang.Integer>
readSnapshot(org.gluu.config.oxtrust.CacheRefreshConfiguration cacheRefreshConfiguration, java.lang.String snapshotFileName)
boolean
retainSnapshots(org.gluu.config.oxtrust.CacheRefreshConfiguration cacheRefreshConfiguration, int count)
boolean
writeProblemList(org.gluu.config.oxtrust.CacheRefreshConfiguration cacheRefreshConfiguration, java.util.Set<java.lang.String> changedInums)
-
-
-
Method Detail
-
prepareSnapshotsFolder
public boolean prepareSnapshotsFolder(org.gluu.config.oxtrust.CacheRefreshConfiguration cacheRefreshConfiguration)
-
createSnapshot
public boolean createSnapshot(org.gluu.config.oxtrust.CacheRefreshConfiguration cacheRefreshConfiguration, java.util.Map<java.lang.String,java.lang.Integer> inumWithEntryHashCodeMap)
-
readSnapshot
public java.util.Map<java.lang.String,java.lang.Integer> readSnapshot(org.gluu.config.oxtrust.CacheRefreshConfiguration cacheRefreshConfiguration, java.lang.String snapshotFileName)
-
readLastSnapshot
public java.util.Map<java.lang.String,java.lang.Integer> readLastSnapshot(org.gluu.config.oxtrust.CacheRefreshConfiguration cacheRefreshConfiguration)
-
retainSnapshots
public boolean retainSnapshots(org.gluu.config.oxtrust.CacheRefreshConfiguration cacheRefreshConfiguration, int count)
-
readProblemList
public java.util.List<java.lang.String> readProblemList(org.gluu.config.oxtrust.CacheRefreshConfiguration cacheRefreshConfiguration)
-
writeProblemList
public boolean writeProblemList(org.gluu.config.oxtrust.CacheRefreshConfiguration cacheRefreshConfiguration, java.util.Set<java.lang.String> changedInums)
-
-