public class HadoopNodeCounterCache extends HadoopCounterCache<FlowNodeStats,java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Long>>>
COUNTER_FETCH_RETRIES_PROPERTY, COUNTER_MAX_AGE_PROPERTY, COUNTER_TIMEOUT_PROPERTY, DEFAULT_CACHED_AGE_MAX, DEFAULT_FETCH_RETRIES, DEFAULT_NODE_CACHED_AGE_MAX, DEFAULT_TIMEOUT_TIMEOUT_SEC, fetchAttempts, maxAge, maxFetchAttempts, NODE_COUNTER_MAX_AGE_PROPERTY, timeout
Modifier | Constructor and Description |
---|---|
protected |
HadoopNodeCounterCache(FlowNodeStats flowNodeStats,
Configuration configuration) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
areCountersAvailable(FlowNodeStats runningJob) |
protected java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Long>> |
getCounters(FlowNodeStats flowNodeStats) |
protected java.util.Set<java.lang.String> |
getCountersFor(java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Long>> counters,
java.lang.String group) |
protected long |
getCounterValue(java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Long>> counters,
java.lang.Enum counter) |
protected long |
getCounterValue(java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Long>> counters,
java.lang.String groupName,
java.lang.String counterName) |
protected java.util.Collection<java.lang.String> |
getGroupNames(java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Long>> groups) |
protected FlowNodeStats |
getJobStatusClient() |
getIntProperty
cachedCounters, cachedCounters, getCounterGroups, getCounterGroupsMatching, getCountersFor, getCounterValue, getCounterValue, getLastSuccessfulFetch
protected HadoopNodeCounterCache(FlowNodeStats flowNodeStats, Configuration configuration)
protected FlowNodeStats getJobStatusClient()
getJobStatusClient
in class CounterCache<Configuration,FlowNodeStats,java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Long>>>
protected boolean areCountersAvailable(FlowNodeStats runningJob)
areCountersAvailable
in class CounterCache<Configuration,FlowNodeStats,java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Long>>>
protected java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Long>> getCounters(FlowNodeStats flowNodeStats) throws java.io.IOException
getCounters
in class CounterCache<Configuration,FlowNodeStats,java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Long>>>
java.io.IOException
protected java.util.Collection<java.lang.String> getGroupNames(java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Long>> groups)
getGroupNames
in class CounterCache<Configuration,FlowNodeStats,java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Long>>>
protected java.util.Set<java.lang.String> getCountersFor(java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Long>> counters, java.lang.String group)
getCountersFor
in class CounterCache<Configuration,FlowNodeStats,java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Long>>>
protected long getCounterValue(java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Long>> counters, java.lang.Enum counter)
getCounterValue
in class CounterCache<Configuration,FlowNodeStats,java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Long>>>
protected long getCounterValue(java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Long>> counters, java.lang.String groupName, java.lang.String counterName)
getCounterValue
in class CounterCache<Configuration,FlowNodeStats,java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Long>>>
Copyright © 2007-2015 Xplenty, Inc. All Rights Reserved.