Package org.apache.hadoop.ipc
Class DecayRpcScheduler.MetricsProxy
java.lang.Object
org.apache.hadoop.ipc.DecayRpcScheduler.MetricsProxy
- All Implemented Interfaces:
DecayRpcSchedulerMXBean,MetricsSource
- Enclosing class:
- DecayRpcScheduler
public static final class DecayRpcScheduler.MetricsProxy
extends Object
implements DecayRpcSchedulerMXBean, MetricsSource
MetricsProxy is a singleton because we may init multiple schedulers and we
want to clean up resources when a new scheduler replaces the old one.
-
Method Summary
Modifier and TypeMethodDescriptiondouble[]getInstance(String namespace, int numLevels, DecayRpcScheduler drs) voidgetMetrics(MetricsCollector collector, boolean all) Get metrics from the metrics sourcelong[]longintstatic voidremoveInstance(String namespace) void
-
Method Details
-
getInstance
public static DecayRpcScheduler.MetricsProxy getInstance(String namespace, int numLevels, DecayRpcScheduler drs) -
removeInstance
-
setDelegate
-
getSchedulingDecisionSummary
- Specified by:
getSchedulingDecisionSummaryin interfaceDecayRpcSchedulerMXBean
-
getCallVolumeSummary
- Specified by:
getCallVolumeSummaryin interfaceDecayRpcSchedulerMXBean
-
getUniqueIdentityCount
public int getUniqueIdentityCount()- Specified by:
getUniqueIdentityCountin interfaceDecayRpcSchedulerMXBean
-
getTotalCallVolume
public long getTotalCallVolume()- Specified by:
getTotalCallVolumein interfaceDecayRpcSchedulerMXBean
-
getAverageResponseTime
public double[] getAverageResponseTime()- Specified by:
getAverageResponseTimein interfaceDecayRpcSchedulerMXBean
-
getResponseTimeCountInLastWindow
public long[] getResponseTimeCountInLastWindow()- Specified by:
getResponseTimeCountInLastWindowin interfaceDecayRpcSchedulerMXBean
-
getMetrics
Description copied from interface:MetricsSourceGet metrics from the metrics source- Specified by:
getMetricsin interfaceMetricsSource- Parameters:
collector- to contain the resulting metrics snapshotall- if true, return all metrics even if unchanged.
-