Package org.apache.storm.metric.cgroup
Class CGroupMetricsBase<T>
java.lang.Object
org.apache.storm.metric.cgroup.CGroupMetricsBase<T>
- All Implemented Interfaces:
IMetric
- Direct Known Subclasses:
CGroupCpu
,CGroupCpuGuarantee
,CGroupCpuGuaranteeByCfsQuota
,CGroupMemoryLimit
,CGroupMemoryUsage
Deprecated.
Base class for checking if CGroups are enabled, etc.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract T
getDataFrom
(CgroupCore core) Deprecated.Deprecated.Get value and reset.
-
Constructor Details
-
CGroupMetricsBase
Deprecated.
-
-
Method Details
-
getValueAndReset
Deprecated.Description copied from interface:IMetric
Get value and reset.- Specified by:
getValueAndReset
in interfaceIMetric
- Returns:
- an object that will be sent to
IMetricsConsumer.handleDataPoints(org.apache.storm.metric.api.IMetricsConsumer.TaskInfo,java.util.Collection)
. Ifnull
is returned nothing will be sent. If this value can be reset, like with a counter, a side effect of calling this should be that the value is reset.
-
getDataFrom
Deprecated.- Throws:
Exception
-