Class SessionSampleManager
- java.lang.Object
-
- org.ametys.runtime.plugins.admin.jvmstatus.monitoring.sample.AbstractSampleManager
-
- org.ametys.plugins.repository.provider.SessionSampleManager
-
- All Implemented Interfaces:
PluginAware,MonitoringConstants,SampleManager,Configurable,LogEnabled,Serviceable,ThreadSafe
public class SessionSampleManager extends AbstractSampleManager implements Serviceable
Monitoring active JCR sessions.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.ametys.runtime.plugins.admin.jvmstatus.monitoring.MonitoringConstants
MonitoringConstants.Period
-
-
Field Summary
Fields Modifier and Type Field Description private JackrabbitRepository_repository-
Fields inherited from class org.ametys.runtime.plugins.admin.jvmstatus.monitoring.sample.AbstractSampleManager
_description, _featureName, _id, _label, _logger, _pluginName
-
Fields inherited from interface org.ametys.runtime.plugins.admin.jvmstatus.monitoring.MonitoringConstants
FEEDING_PERIOD, RRD_EXT, RRD_STORAGE_DIRECTORY
-
-
Constructor Summary
Constructors Constructor Description SessionSampleManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void_configureDatasources(org.rrd4j.core.RrdDef rrdDef)Provides the data sources.protected String_getGraphTitle()Provide the graph title.protected Map<String,Object>_internalCollect(org.rrd4j.core.Sample sample)Collect data into the Round Robin Database.voidservice(ServiceManager manager)-
Methods inherited from class org.ametys.runtime.plugins.admin.jvmstatus.monitoring.sample.AbstractSampleManager
_configureValueRange, _registerDatasources, _setCommonParameters, collect, configure, configureRRDDef, enableLogging, getDescription, getId, getLabel, setPluginInfo
-
-
-
-
Field Detail
-
_repository
private JackrabbitRepository _repository
-
-
Constructor Detail
-
SessionSampleManager
public SessionSampleManager()
-
-
Method Detail
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
servicein interfaceServiceable- Throws:
ServiceException
-
_configureDatasources
protected void _configureDatasources(org.rrd4j.core.RrdDef rrdDef)
Description copied from class:AbstractSampleManagerProvides the data sources.- Specified by:
_configureDatasourcesin classAbstractSampleManager- Parameters:
rrdDef- the Round Robin Database definition.
-
_getGraphTitle
protected String _getGraphTitle()
Description copied from class:AbstractSampleManagerProvide the graph title.- Specified by:
_getGraphTitlein classAbstractSampleManager- Returns:
- the graph title.
-
_internalCollect
protected Map<String,Object> _internalCollect(org.rrd4j.core.Sample sample) throws IOException
Description copied from class:AbstractSampleManagerCollect data into the Round Robin Database.- Specified by:
_internalCollectin classAbstractSampleManager- Parameters:
sample- the sample to collect.- Returns:
- The collected values for each datasource name.
- Throws:
IOException- thrown in case of I/O error.
-
-