Class SubjectSourceSerializerFile
java.lang.Object
edu.internet2.middleware.grouper.subj.cache.SubjectSourceSerializer
edu.internet2.middleware.grouper.subj.cache.SubjectSourceSerializerFile
store and retrieve the
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
cleanupOldSubjectCaches
(long keepNewestIfNewerThanMillis, Map<String, Object> debugMap) if there are old caches that can be safely removed, remove themretrieveLatestSubjectCache
(long newerThanMillis, Map<String, Object> debugMap) if not configured to use, or misconfigured, then return nullstatic FilenameFilter
void
storeSubjectCache
(SubjectSourceCacheBean subjectSourceCacheBean, Map<String, Object> debugMap) store subject cache to serialization mechanismstatic String
-
Constructor Details
-
SubjectSourceSerializerFile
public SubjectSourceSerializerFile()
-
-
Method Details
-
serializerFileFilter
- Returns:
- the filter
-
retrieveLatestSubjectCache
public SubjectSourceCacheBean retrieveLatestSubjectCache(long newerThanMillis, Map<String, Object> debugMap) if not configured to use, or misconfigured, then return null- Specified by:
retrieveLatestSubjectCache
in classSubjectSourceSerializer
debugMap
- if not null add debug info- Returns:
- subjectSourceCacheBean
- See Also:
-
storeSubjectCache
public void storeSubjectCache(SubjectSourceCacheBean subjectSourceCacheBean, Map<String, Object> debugMap) Description copied from class:SubjectSourceSerializer
store subject cache to serialization mechanism- Specified by:
storeSubjectCache
in classSubjectSourceSerializer
debugMap
- if not null add debug info- See Also:
-
subjectSourceCacheFilePrefix
- Returns:
- the prefix
-
cleanupOldSubjectCaches
Description copied from class:SubjectSourceSerializer
if there are old caches that can be safely removed, remove them- Specified by:
cleanupOldSubjectCaches
in classSubjectSourceSerializer
debugMap
- if not null add debug info- Returns:
- how many caches removed
- See Also:
-