public class CoordinatorStats extends Object
| Constructor and Description |
|---|
CoordinatorStats() |
public boolean hasPerTierStats()
public boolean hasPerDataSourceStats()
public boolean hasPerDutyStats()
public long getTieredStat(String statName, String tier)
statName - the name of the statisticstier - the tierstatName under tier tierNullPointerException - if statName is not foundpublic void forEachTieredStat(String statName, ObjLongConsumer<String> consumer)
public void forEachDataSourceStat(String statName, ObjLongConsumer<String> consumer)
public void forEachDutyStat(String statName, ObjLongConsumer<String> consumer)
public long getGlobalStat(String statName)
public void accumulateMaxTieredStat(String statName, String tier, long value)
public void addToGlobalStat(String statName, long value)
public CoordinatorStats accumulate(CoordinatorStats stats)
Copyright © 2011–2021 The Apache Software Foundation. All rights reserved.