Package org.apache.hadoop.metrics2.lib
Class MutableMetricsFactory
java.lang.Object
org.apache.hadoop.metrics2.lib.MutableMetricsFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected MetricsInfoprotected MetricsInfoprotected MetricsInfoprotected MetricsInfoprotected Stringprotected Stringprotected MutableMetricnewForField(Field field, Metric annotation) Override to handle custom mutable metrics for fieldsprotected MutableMetricnewForMethod(Object source, Method method, Metric annotation) Override to handle custom mutable metrics for methods
-
Constructor Details
-
MutableMetricsFactory
public MutableMetricsFactory()
-
-
Method Details
-
newForField
Override to handle custom mutable metrics for fields- Parameters:
field- of the metricannotation- of the field- Returns:
- a new metric object or null
-
newForMethod
Override to handle custom mutable metrics for methods- Parameters:
source- the metrics source objectmethod- to return the metricannotation- of the method- Returns:
- a new metric object or null
-
getInfo
-
getName
-
getInfo
-
getInfo
-
getName
- Parameters:
method- input method.- Returns:
- Remove the prefix "get", if any, from the method name. Return the capacitalized method name."
-
getInfo
-