Class CacheRefreshSnapshotFileService


  • @ApplicationScoped
    @Named("cacheRefreshSnapshotFileService")
    public class CacheRefreshSnapshotFileService
    extends java.lang.Object
    Helper service to work with snapshots
    Author:
    Yuriy Movchan Date: 06.09.2011
    • 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CacheRefreshSnapshotFileService

        public CacheRefreshSnapshotFileService()
    • 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)