Package edu.uiuc.ncsa.security.storage
Class MonitoredStoreDelegate<V extends Identifiable>
- java.lang.Object
-
- edu.uiuc.ncsa.security.storage.MonitoredStoreDelegate<V>
-
- All Implemented Interfaces:
MonitoredStoreInterface<V>
public class MonitoredStoreDelegate<V extends Identifiable> extends Object implements MonitoredStoreInterface<V>
This is the logic behind monitoring a store. It should be a class of any store that does monitoring and calls should be forwarded to it.Created by Jeff Gaynor
on 3/29/23 at 6:22 AM
-
-
Constructor Summary
Constructors Constructor Description MonitoredStoreDelegate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddLastAccessedEventListener(LastAccessedEventListener lastAccessedEventListener)UpkeepResponsedoUpkeep(AbstractEnvironment environment)This delegate does not do upkeep.UpkeepResponsedoUpkeep(UpkeepConfiguration upkeepConfiguration, AbstractEnvironment environment)voidfireLastAccessedEvent(MonitoredStoreInterface store, Identifier identifier)List<LastAccessedEventListener>getLastAccessedEventListeners()UpkeepConfigurationgetUpkeepConfiguration()UUIDgetUuid()A unique identifier for this instance, so we can stash this a hash table in the listenerbooleanhasUpkeepConfiguration()booleanisMonitorEnabled()Generally this is enabled, except in things like the CLI where you do not want to monitor access to clients or whatever.voidlastAccessUpdate(IDMap idMap)voidsetMonitorEnabled(boolean monitorEnabled)voidsetUpkeepConfiguration(UpkeepConfiguration upkeepConfiguration)longupdateHook(String action, AbstractEnvironment environment, List<Identifier> identifiers)
-
-
-
Method Detail
-
getLastAccessedEventListeners
public List<LastAccessedEventListener> getLastAccessedEventListeners()
- Specified by:
getLastAccessedEventListenersin interfaceMonitoredStoreInterface<V extends Identifiable>
-
getUuid
public UUID getUuid()
A unique identifier for this instance, so we can stash this a hash table in the listener- Specified by:
getUuidin interfaceMonitoredStoreInterface<V extends Identifiable>- Returns:
-
addLastAccessedEventListener
public void addLastAccessedEventListener(LastAccessedEventListener lastAccessedEventListener)
- Specified by:
addLastAccessedEventListenerin interfaceMonitoredStoreInterface<V extends Identifiable>
-
fireLastAccessedEvent
public void fireLastAccessedEvent(MonitoredStoreInterface store, Identifier identifier)
- Specified by:
fireLastAccessedEventin interfaceMonitoredStoreInterface<V extends Identifiable>
-
lastAccessUpdate
public void lastAccessUpdate(IDMap idMap)
- Specified by:
lastAccessUpdatein interfaceMonitoredStoreInterface<V extends Identifiable>
-
isMonitorEnabled
public 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 interfaceMonitoredStoreInterface<V extends Identifiable>- Returns:
-
setMonitorEnabled
public void setMonitorEnabled(boolean monitorEnabled)
- Specified by:
setMonitorEnabledin interfaceMonitoredStoreInterface<V extends Identifiable>
-
getUpkeepConfiguration
public UpkeepConfiguration getUpkeepConfiguration()
- Specified by:
getUpkeepConfigurationin interfaceMonitoredStoreInterface<V extends Identifiable>
-
setUpkeepConfiguration
public void setUpkeepConfiguration(UpkeepConfiguration upkeepConfiguration)
- Specified by:
setUpkeepConfigurationin interfaceMonitoredStoreInterface<V extends Identifiable>
-
hasUpkeepConfiguration
public boolean hasUpkeepConfiguration()
- Specified by:
hasUpkeepConfigurationin interfaceMonitoredStoreInterface<V extends Identifiable>
-
doUpkeep
public UpkeepResponse doUpkeep(AbstractEnvironment environment)
This delegate does not do upkeep. The store itself must.- Specified by:
doUpkeepin interfaceMonitoredStoreInterface<V extends Identifiable>- Returns:
-
doUpkeep
public UpkeepResponse doUpkeep(UpkeepConfiguration upkeepConfiguration, AbstractEnvironment environment)
- Specified by:
doUpkeepin interfaceMonitoredStoreInterface<V extends Identifiable>
-
updateHook
public long updateHook(String action, AbstractEnvironment environment, List<Identifier> identifiers)
- Specified by:
updateHookin interfaceMonitoredStoreInterface<V extends Identifiable>
-
-