Class MonitoredSQLStore<V extends edu.uiuc.ncsa.security.core.Identifiable>
- java.lang.Object
-
- edu.uiuc.ncsa.security.storage.sql.SQLDatabase
-
- edu.uiuc.ncsa.security.storage.sql.SQLStore<V>
-
- org.oa4mp.delegation.common.monitored.storage.OLDMonitoredSQLStore<V>
-
- All Implemented Interfaces:
edu.uiuc.ncsa.security.core.Store<V>
,edu.uiuc.ncsa.security.storage.ListeningStoreInterface<V>
,Map<edu.uiuc.ncsa.security.core.Identifier,V>
- Direct Known Subclasses:
BaseClientSQLStore
public abstract class MonitoredSQLStore<V extends edu.uiuc.ncsa.security.core.Identifiable> extends edu.uiuc.ncsa.security.storage.sql.SQLStore<V> implements edu.uiuc.ncsa.security.storage.ListeningStoreInterface<V>
Created by Jeff Gaynor
on 3/29/23 at 10:24 AM
-
-
Constructor Summary
Constructors Constructor Description MonitoredSQLStore()
MonitoredSQLStore(edu.uiuc.ncsa.security.storage.sql.ConnectionPool connectionPool, edu.uiuc.ncsa.security.storage.sql.internals.Table table, javax.inject.Provider<V> identifiableProvider, edu.uiuc.ncsa.security.storage.data.MapConverter<V> converter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addLastAccessedEventListener(edu.uiuc.ncsa.security.storage.events.LastAccessedEventListener lastAccessedEventListener)
void
fireLastAccessedEvent(edu.uiuc.ncsa.security.storage.ListeningStoreInterface store, edu.uiuc.ncsa.security.core.Identifier identifier)
V
get(Object o)
List<edu.uiuc.ncsa.security.storage.events.LastAccessedEventListener>
getLastAccessedEventListeners()
List<V>
getMostRecent(int n, List<String> attributes)
UUID
getUuid()
boolean
isMonitorEnabled()
void
lastAccessUpdate(edu.uiuc.ncsa.security.storage.events.IDMap idMap)
void
setMonitorEnabled(boolean x)
-
Methods inherited from class edu.uiuc.ncsa.security.storage.sql.SQLStore
checkColumns, checkTable, clear, containsKey, containsValue, create, depopulate, entrySet, getAll, getCreationTSField, getDerbyMostRecent, getMapConverter, getMostRecentStatement, getTable, getXMLConverter, isEmpty, keySet, populate, put, putAll, register, remove, remove, save, search, search, search, size, size, size, toString, update, values
-
Methods inherited from class edu.uiuc.ncsa.security.storage.sql.SQLDatabase
destroyConnection, getConnection, getConnectionPool, releaseConnection, rsToMap, setConnectionPool
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
-
-
Constructor Detail
-
MonitoredSQLStore
public MonitoredSQLStore(edu.uiuc.ncsa.security.storage.sql.ConnectionPool connectionPool, edu.uiuc.ncsa.security.storage.sql.internals.Table table, javax.inject.Provider<V> identifiableProvider, edu.uiuc.ncsa.security.storage.data.MapConverter<V> converter)
-
MonitoredSQLStore
public MonitoredSQLStore()
-
-
Method Detail
-
getLastAccessedEventListeners
public List<edu.uiuc.ncsa.security.storage.events.LastAccessedEventListener> getLastAccessedEventListeners()
- Specified by:
getLastAccessedEventListeners
in interfaceedu.uiuc.ncsa.security.storage.ListeningStoreInterface<V extends edu.uiuc.ncsa.security.core.Identifiable>
-
getUuid
public UUID getUuid()
- Specified by:
getUuid
in interfaceedu.uiuc.ncsa.security.storage.ListeningStoreInterface<V extends edu.uiuc.ncsa.security.core.Identifiable>
-
addLastAccessedEventListener
public void addLastAccessedEventListener(edu.uiuc.ncsa.security.storage.events.LastAccessedEventListener lastAccessedEventListener)
- Specified by:
addLastAccessedEventListener
in interfaceedu.uiuc.ncsa.security.storage.ListeningStoreInterface<V extends edu.uiuc.ncsa.security.core.Identifiable>
-
fireLastAccessedEvent
public void fireLastAccessedEvent(edu.uiuc.ncsa.security.storage.ListeningStoreInterface store, edu.uiuc.ncsa.security.core.Identifier identifier)
- Specified by:
fireLastAccessedEvent
in interfaceedu.uiuc.ncsa.security.storage.ListeningStoreInterface<V extends edu.uiuc.ncsa.security.core.Identifiable>
-
isMonitorEnabled
public boolean isMonitorEnabled()
- Specified by:
isMonitorEnabled
in interfaceedu.uiuc.ncsa.security.storage.ListeningStoreInterface<V extends edu.uiuc.ncsa.security.core.Identifiable>
-
setMonitorEnabled
public void setMonitorEnabled(boolean x)
- Specified by:
setMonitorEnabled
in interfaceedu.uiuc.ncsa.security.storage.ListeningStoreInterface<V extends edu.uiuc.ncsa.security.core.Identifiable>
-
lastAccessUpdate
public void lastAccessUpdate(edu.uiuc.ncsa.security.storage.events.IDMap idMap)
- Specified by:
lastAccessUpdate
in interfaceedu.uiuc.ncsa.security.storage.ListeningStoreInterface<V extends edu.uiuc.ncsa.security.core.Identifiable>
-
-