Class ThreadSampleManager
java.lang.Object
org.ametys.runtime.plugins.admin.jvmstatus.monitoring.sample.AbstractSampleManager
org.ametys.runtime.plugins.admin.jvmstatus.monitoring.alerts.AbstractAlertSampleManager
org.ametys.runtime.plugins.admin.jvmstatus.monitoring.sample.ThreadSampleManager
- All Implemented Interfaces:
PluginAware
,AlertSampleManager
,MonitoringConstants
,SampleManager
,Configurable
,LogEnabled
,ThreadSafe
SampleManager
for collecting the number of live threads.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ametys.runtime.plugins.admin.jvmstatus.monitoring.alerts.AlertSampleManager
AlertSampleManager.Threshold
Nested classes/interfaces inherited from interface org.ametys.runtime.plugins.admin.jvmstatus.monitoring.MonitoringConstants
MonitoringConstants.Period
-
Field Summary
Fields inherited from class org.ametys.runtime.plugins.admin.jvmstatus.monitoring.alerts.AbstractAlertSampleManager
_body, _subject
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
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
_configureDatasources
(org.rrd4j.core.RrdDef rrdDef) Provides the data sources.protected String
Provide the graph title._internalCollect
(org.rrd4j.core.Sample sample) Collect data into the Round Robin Database.protected Map<String,
AlertSampleManager.Threshold.Operator> Provides the kind of operator for triggering the alert for each datasource an alert is attached to.Provides the configuration names for each datasource an alert is attached to.Methods inherited from class org.ametys.runtime.plugins.admin.jvmstatus.monitoring.alerts.AbstractAlertSampleManager
configure, getThresholdValues
Methods inherited from class org.ametys.runtime.plugins.admin.jvmstatus.monitoring.sample.AbstractSampleManager
_configureValueRange, _registerDatasources, _setCommonParameters, collect, configureRRDDef, enableLogging, getDescription, getId, getLabel, setPluginInfo
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.ametys.runtime.plugins.admin.jvmstatus.monitoring.SampleManager
collect, configureRRDDef, getDescription, getId, getLabel
-
Constructor Details
-
ThreadSampleManager
public ThreadSampleManager()
-
-
Method Details
-
_configureDatasources
Description copied from class:AbstractSampleManager
Provides the data sources.- Specified by:
_configureDatasources
in classAbstractSampleManager
- Parameters:
rrdDef
- the Round Robin Database definition.
-
_internalCollect
Description copied from class:AbstractSampleManager
Collect data into the Round Robin Database.- Specified by:
_internalCollect
in classAbstractSampleManager
- Parameters:
sample
- the sample to collect.- Returns:
- The collected values for each datasource name.
- Throws:
IOException
- thrown in case of I/O error.
-
_getGraphTitle
Description copied from class:AbstractSampleManager
Provide the graph title.- Specified by:
_getGraphTitle
in classAbstractSampleManager
- Returns:
- the graph title.
-
getThresholdConfigNames
Description copied from class:AbstractAlertSampleManager
Provides the configuration names for each datasource an alert is attached to. This method must return a map with the same keys asAbstractAlertSampleManager.getOperators()
- Specified by:
getThresholdConfigNames
in classAbstractAlertSampleManager
- Returns:
- the configuration names for each datasource an alert is attached to.
-
getOperators
Description copied from class:AbstractAlertSampleManager
Provides the kind of operator for triggering the alert for each datasource an alert is attached to. This method must return a map with the same keys asAbstractAlertSampleManager.getThresholdConfigNames()
- Specified by:
getOperators
in classAbstractAlertSampleManager
- Returns:
- the kind of operator for triggering the alert for each datasource an alert is attached to.
-