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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract TgetDataFrom(CgroupCore core) Deprecated.Deprecated.Get value and reset.
-
Constructor Details
-
CGroupMetricsBase
Deprecated.
-
-
Method Details
-
getValueAndReset
Deprecated.Description copied from interface:IMetricGet value and reset.- Specified by:
getValueAndResetin interfaceIMetric- Returns:
- an object that will be sent to
IMetricsConsumer.handleDataPoints(org.apache.storm.metric.api.IMetricsConsumer.TaskInfo,java.util.Collection). Ifnullis 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
-