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 void
addLastAccessedEventListener(LastAccessedEventListener lastAccessedEventListener)
UpkeepResponse
doUpkeep(AbstractEnvironment environment)
This delegate does not do upkeep.UpkeepResponse
doUpkeep(UpkeepConfiguration upkeepConfiguration, AbstractEnvironment environment)
void
fireLastAccessedEvent(MonitoredStoreInterface store, Identifier identifier)
List<LastAccessedEventListener>
getLastAccessedEventListeners()
UpkeepConfiguration
getUpkeepConfiguration()
UUID
getUuid()
A unique identifier for this instance, so we can stash this a hash table in the listenerboolean
hasUpkeepConfiguration()
boolean
isMonitorEnabled()
Generally this is enabled, except in things like the CLI where you do not want to monitor access to clients or whatever.void
lastAccessUpdate(IDMap idMap)
void
setMonitorEnabled(boolean monitorEnabled)
void
setUpkeepConfiguration(UpkeepConfiguration upkeepConfiguration)
long
updateHook(String action, AbstractEnvironment environment, List<Identifier> identifiers)
-
-
-
Method Detail
-
getLastAccessedEventListeners
public List<LastAccessedEventListener> getLastAccessedEventListeners()
- Specified by:
getLastAccessedEventListeners
in 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:
getUuid
in interfaceMonitoredStoreInterface<V extends Identifiable>
- Returns:
-
addLastAccessedEventListener
public void addLastAccessedEventListener(LastAccessedEventListener lastAccessedEventListener)
- Specified by:
addLastAccessedEventListener
in interfaceMonitoredStoreInterface<V extends Identifiable>
-
fireLastAccessedEvent
public void fireLastAccessedEvent(MonitoredStoreInterface store, Identifier identifier)
- Specified by:
fireLastAccessedEvent
in interfaceMonitoredStoreInterface<V extends Identifiable>
-
lastAccessUpdate
public void lastAccessUpdate(IDMap idMap)
- Specified by:
lastAccessUpdate
in interfaceMonitoredStoreInterface<V extends Identifiable>
-
isMonitorEnabled
public boolean isMonitorEnabled()
Description copied from interface:MonitoredStoreInterface
Generally this is enabled, except in things like the CLI where you do not want to monitor access to clients or whatever.- Specified by:
isMonitorEnabled
in interfaceMonitoredStoreInterface<V extends Identifiable>
- Returns:
-
setMonitorEnabled
public void setMonitorEnabled(boolean monitorEnabled)
- Specified by:
setMonitorEnabled
in interfaceMonitoredStoreInterface<V extends Identifiable>
-
getUpkeepConfiguration
public UpkeepConfiguration getUpkeepConfiguration()
- Specified by:
getUpkeepConfiguration
in interfaceMonitoredStoreInterface<V extends Identifiable>
-
setUpkeepConfiguration
public void setUpkeepConfiguration(UpkeepConfiguration upkeepConfiguration)
- Specified by:
setUpkeepConfiguration
in interfaceMonitoredStoreInterface<V extends Identifiable>
-
hasUpkeepConfiguration
public boolean hasUpkeepConfiguration()
- Specified by:
hasUpkeepConfiguration
in interfaceMonitoredStoreInterface<V extends Identifiable>
-
doUpkeep
public UpkeepResponse doUpkeep(AbstractEnvironment environment)
This delegate does not do upkeep. The store itself must.- Specified by:
doUpkeep
in interfaceMonitoredStoreInterface<V extends Identifiable>
- Returns:
-
doUpkeep
public UpkeepResponse doUpkeep(UpkeepConfiguration upkeepConfiguration, AbstractEnvironment environment)
- Specified by:
doUpkeep
in interfaceMonitoredStoreInterface<V extends Identifiable>
-
updateHook
public long updateHook(String action, AbstractEnvironment environment, List<Identifier> identifiers)
- Specified by:
updateHook
in interfaceMonitoredStoreInterface<V extends Identifiable>
-
-