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
FieldsModifier and TypeFieldDescriptionprotected ListMultimap<String,ResourceAccess> List of pendingResourceAccesswaiting to be exported to the database.static final StringAvalon ROLE.Fields inherited from class org.ametys.core.datasource.AbstractMyBatisDAO
_manager -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a newResourceAccessto the monitored resources.voidCall 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, setPluginInfoMethods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Field Details
-
ROLE
Avalon ROLE. -
_pendingRecords
List of pendingResourceAccesswaiting to be exported to the database.
-
-
Constructor Details
-
ResourceAccessComponent
public ResourceAccessComponent()
-
-
Method Details
-
addAccessRecord
Add a newResourceAccessto 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
-