Class MonitoredFileStore<V extends Identifiable>
- java.lang.Object
- 
- edu.uiuc.ncsa.security.storage.IndexedStreamStore<V>
- 
- edu.uiuc.ncsa.security.storage.FileStore<V>
- 
- edu.uiuc.ncsa.security.storage.monitored.MonitoredFileStore<V>
 
 
 
- 
- All Implemented Interfaces:
- Store<V>,- MonitoredStoreInterface<V>,- Map<Identifier,V>
 
 public abstract class MonitoredFileStore<V extends Identifiable> extends FileStore<V> implements MonitoredStoreInterface<V> Created by Jeff Gaynor 
 on 3/29/23 at 10:00 AM
- 
- 
Field Summary- 
Fields inherited from class edu.uiuc.ncsa.security.storage.FileStoreindexDirectory, storageDirectory
 - 
Fields inherited from class edu.uiuc.ncsa.security.storage.IndexedStreamStoreconverter, identifiableProvider, initializer
 - 
Fields inherited from interface edu.uiuc.ncsa.security.core.StoreVERSION_TAG
 
- 
 - 
Constructor SummaryConstructors Constructor Description MonitoredFileStore(File directory, IdentifiableProvider<V> idp, MapConverter<V> cp, boolean removeEmptyFiles, boolean removeFailedFiles)MonitoredFileStore(File storeDirectory, File indexDirectory, IdentifiableProvider<V> identifiableProvider, MapConverter<V> converter, boolean removeEmptyFiles, boolean removeFailedFiles)
 - 
Method Summary- 
Methods inherited from class edu.uiuc.ncsa.security.storage.FileStorecheckPermissions, clear, containsKey, containsValue, create, createIndexEntry, delete, doSetup, entrySet, getAll, getIndexDirectory, getIndexEntry, getItemFile, getItemFile, getMapConverter, getStorageDirectory, getXMLConverter, keySet, loadByIdentifier, loadFile, loadFromIndex, putAll, realRemove, realSave, register, remove, remove, removeByID, removeIndexEntry, save, search, search, search, search, setIndexDirectory, setStorageDirectory, size, size, toString, update, update, values
 - 
Methods inherited from class edu.uiuc.ncsa.security.storage.IndexedStreamStorecreateIndexEntry, getCreatedItems, hashString, isEmpty, loadStream, put, put
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface java.util.Mapcompute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
 
- 
 
- 
- 
- 
Constructor Detail- 
MonitoredFileStorepublic MonitoredFileStore(File storeDirectory, File indexDirectory, IdentifiableProvider<V> identifiableProvider, MapConverter<V> converter, boolean removeEmptyFiles, boolean removeFailedFiles) 
 - 
MonitoredFileStorepublic MonitoredFileStore(File directory, IdentifiableProvider<V> idp, MapConverter<V> cp, boolean removeEmptyFiles, boolean removeFailedFiles) 
 
- 
 - 
Method Detail- 
getMostRecentpublic List<V> getMostRecent(int n, List<String> attributes) - Specified by:
- getMostRecentin interface- Store<V extends Identifiable>
 
 - 
getLastAccessedEventListenerspublic List<LastAccessedEventListener> getLastAccessedEventListeners() - Specified by:
- getLastAccessedEventListenersin interface- MonitoredStoreInterface<V extends Identifiable>
 
 - 
getUuidpublic UUID getUuid() - Specified by:
- getUuidin interface- MonitoredStoreInterface<V extends Identifiable>
 
 - 
addLastAccessedEventListenerpublic void addLastAccessedEventListener(LastAccessedEventListener lastAccessedEventListener) - Specified by:
- addLastAccessedEventListenerin interface- MonitoredStoreInterface<V extends Identifiable>
 
 - 
fireLastAccessedEventpublic void fireLastAccessedEvent(MonitoredStoreInterface store, Identifier identifier) - Specified by:
- fireLastAccessedEventin interface- MonitoredStoreInterface<V extends Identifiable>
 
 - 
isMonitorEnabledpublic boolean isMonitorEnabled() Description copied from interface:MonitoredStoreInterfaceGenerally this is enabled, except in things like the CLI where you do not want to monitor access to clients or whatever.- Specified by:
- isMonitorEnabledin interface- MonitoredStoreInterface<V extends Identifiable>
- Returns:
 
 - 
setMonitorEnabledpublic void setMonitorEnabled(boolean x) - Specified by:
- setMonitorEnabledin interface- MonitoredStoreInterface<V extends Identifiable>
 
 - 
lastAccessUpdatepublic void lastAccessUpdate(IDMap idMap) - Specified by:
- lastAccessUpdatein interface- MonitoredStoreInterface<V extends Identifiable>
 
 - 
getpublic V get(Object key) Description copied from class:FileStoreThis updates the last accessed listener- Specified by:
- getin interface- Map<Identifier,V extends Identifiable>
- Overrides:
- getin class- FileStore<V extends Identifiable>
 
 - 
setUpkeepConfigurationpublic void setUpkeepConfiguration(UpkeepConfiguration upkeepConfiguration) - Specified by:
- setUpkeepConfigurationin interface- MonitoredStoreInterface<V extends Identifiable>
 
 - 
getUpkeepConfigurationpublic UpkeepConfiguration getUpkeepConfiguration() - Specified by:
- getUpkeepConfigurationin interface- MonitoredStoreInterface<V extends Identifiable>
 
 - 
doUpkeeppublic UpkeepResponse doUpkeep(AbstractEnvironment environment) Description copied from interface:MonitoredStoreInterfaceDo the upkeep. Note that some stores may have to update other stores. The environment allows for this. E.g. Deleting a client should delete its approval record and remove any permissions associated with it.- Specified by:
- doUpkeepin interface- MonitoredStoreInterface<V extends Identifiable>
- Returns:
 
 - 
doUpkeeppublic UpkeepResponse doUpkeep(UpkeepConfiguration upkeepConfiguration, AbstractEnvironment environment) - Specified by:
- doUpkeepin interface- MonitoredStoreInterface<V extends Identifiable>
 
 - 
updateHookpublic long updateHook(String action, AbstractEnvironment environment, List<Identifier> identifiers) - Specified by:
- updateHookin interface- MonitoredStoreInterface<V extends Identifiable>
 
 - 
hasUpkeepConfigurationpublic boolean hasUpkeepConfiguration() - Specified by:
- hasUpkeepConfigurationin interface- MonitoredStoreInterface<V extends Identifiable>
 
 
- 
 
-