Class ResourceAccessComponent
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.core.datasource.AbstractMyBatisDAO
org.ametys.web.cache.monitoring.process.access.ResourceAccessComponent
- All Implemented Interfaces:
LogEnabled
,PluginAware
,Component
,Configurable
,Contextualizable
,Serviceable
The RessourceAccessMonitor collects the resources that have been requested,
and export them into a database.
-
Field Summary
Modifier and TypeFieldDescriptionprotected ListMultimap<String,
ResourceAccess> List of pendingResourceAccess
waiting to be exported to the database.static final String
Avalon ROLE.Fields inherited from class org.ametys.core.datasource.AbstractMyBatisDAO
_manager
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Add a newResourceAccess
to the monitored resources.void
Call this method to transfer pendings resource access from memory to database This is normally called by a schedulerMethods inherited from class org.ametys.core.datasource.AbstractMyBatisDAO
_configureDatasource, _getDataSourceId, _getMyBatisConfiguration, configure, contextualize, getSession, getSession, reload, service, setPluginInfo
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Field Details
-
ROLE
Avalon ROLE. -
_pendingRecords
List of pendingResourceAccess
waiting to be exported to the database.
-
-
Constructor Details
-
ResourceAccessComponent
public ResourceAccessComponent()
-
-
Method Details
-
addAccessRecord
Add a newResourceAccess
to the monitored resources.- Parameters:
ra
- The resource access object.
-
exportPendings
Call this method to transfer pendings resource access from memory to database This is normally called by a scheduler
-