Class CacheRefreshSnapshotFileService

java.lang.Object
org.gluu.oxtrust.ldap.cache.service.CacheRefreshSnapshotFileService

@ApplicationScoped @Named("cacheRefreshSnapshotFileService") public class CacheRefreshSnapshotFileService extends Object
Helper service to work with snapshots
Author:
Yuriy Movchan Date: 06.09.2011
  • Constructor Details

    • CacheRefreshSnapshotFileService

      public CacheRefreshSnapshotFileService()
  • Method Details

    • prepareSnapshotsFolder

      public boolean prepareSnapshotsFolder(org.gluu.config.oxtrust.CacheRefreshConfiguration cacheRefreshConfiguration)
    • createSnapshot

      public boolean createSnapshot(org.gluu.config.oxtrust.CacheRefreshConfiguration cacheRefreshConfiguration, Map<String,Integer> inumWithEntryHashCodeMap)
    • readSnapshot

      public Map<String,Integer> readSnapshot(org.gluu.config.oxtrust.CacheRefreshConfiguration cacheRefreshConfiguration, String snapshotFileName)
    • readLastSnapshot

      public Map<String,Integer> readLastSnapshot(org.gluu.config.oxtrust.CacheRefreshConfiguration cacheRefreshConfiguration)
    • retainSnapshots

      public boolean retainSnapshots(org.gluu.config.oxtrust.CacheRefreshConfiguration cacheRefreshConfiguration, int count)
    • readProblemList

      public List<String> readProblemList(org.gluu.config.oxtrust.CacheRefreshConfiguration cacheRefreshConfiguration)
    • writeProblemList

      public boolean writeProblemList(org.gluu.config.oxtrust.CacheRefreshConfiguration cacheRefreshConfiguration, Set<String> changedInums)