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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionabstract TgetDataFrom(CgroupCore core) Deprecated.Deprecated.Get value and reset.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.storm.metric.api.IMetricgetDimensions
- 
Constructor Details- 
CGroupMetricsBaseDeprecated.
 
- 
- 
Method Details- 
getValueAndResetDeprecated.Description copied from interface:IMetricGet value and reset.- Specified by:
- getValueAndResetin interface- IMetric
- 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.
 
- 
getDataFromDeprecated.- Throws:
- Exception
 
 
-