public abstract class AbstractMemorySampleManager extends AbstractSampleManager
SampleManager
for collecting JVM memory status.MonitoringConstants.Period
_description, _featureName, _id, _label, _logger, _pluginName
FEEDING_PERIOD, RRD_EXT, RRD_STORAGE_DIRECTORY
Constructor and Description |
---|
AbstractMemorySampleManager() |
Modifier and Type | Method and Description |
---|---|
protected void |
_configureDatasources(org.rrd4j.core.RrdDef rrdDef)
Provides the data sources.
|
protected abstract MemoryUsage |
_getMemoryUsage(MemoryMXBean memoryMXBean)
Select the memory usage to use.
|
protected Map<String,Object> |
_internalCollect(org.rrd4j.core.Sample sample)
Collect data into the Round Robin Database.
|
_configureValueRange, _getGraphTitle, _registerDatasources, _setCommonParameters, collect, configure, configureRRDDef, enableLogging, getDescription, getId, getLabel, setPluginInfo
public AbstractMemorySampleManager()
protected void _configureDatasources(org.rrd4j.core.RrdDef rrdDef)
AbstractSampleManager
_configureDatasources
in class AbstractSampleManager
rrdDef
- the Round Robin Database definition.protected Map<String,Object> _internalCollect(org.rrd4j.core.Sample sample) throws IOException
AbstractSampleManager
_internalCollect
in class AbstractSampleManager
sample
- the sample to collect.IOException
- thrown in case of I/O error.protected abstract MemoryUsage _getMemoryUsage(MemoryMXBean memoryMXBean)
memoryMXBean
- the memory MXBean.