public synchronized Group getGroup(String groupName) { return super.getGroup(groupName); }
public static <C extends org.apache.hadoop.mapreduce.Counter, G extends CounterGroupBase<C>> TwoNestedMap<String, String, Long> getCounterMap(AbstractCounters<C, G> allCounters) { TwoNestedMap<String, String, Long> counterMap = new TwoNestedMap<>(); for (String groupName : allCounters.getGroupNames()) { G group = allCounters.getGroup(groupName); for (C counter : group) { counterMap.put(groupName, counter.getName(), counter.getValue()); } } return counterMap; }
public synchronized Group getGroup(String groupName) { return super.getGroup(groupName); }
public synchronized Group getGroup(String groupName) { return super.getGroup(groupName); }
public synchronized Group getGroup(String groupName) { return super.getGroup(groupName); }
/** * Find a counter, create one if necessary * @param groupName of the counter * @param counterName name of the counter * @return the matching counter */ public C findCounter(String groupName, String counterName) { G grp = getGroup(groupName); return grp.findCounter(counterName); }
/** * Find a counter, create one if necessary * @param groupName of the counter * @param counterName name of the counter * @return the matching counter */ public C findCounter(String groupName, String counterName) { G grp = getGroup(groupName); return grp.findCounter(counterName); }
/** * Find a counter, create one if necessary * @param groupName of the counter * @param counterName name of the counter * @return the matching counter */ public C findCounter(String groupName, String counterName) { G grp = getGroup(groupName); return grp.findCounter(counterName); }
/** * Find a counter, create one if necessary * @param groupName of the counter * @param counterName name of the counter * @return the matching counter */ public C findCounter(String groupName, String counterName) { G grp = getGroup(groupName); return grp.findCounter(counterName); }
/** * Find the file system counter for the given scheme and enum. * @param scheme of the file system * @param key the enum of the counter * @return the file system counter */ @InterfaceAudience.Private public synchronized C findCounter(String scheme, FileSystemCounter key) { return ((FileSystemCounterGroup<C>) getGroup( FileSystemCounter.class.getName()).getUnderlyingGroup()). findCounter(scheme, key); }
/** * Find the file system counter for the given scheme and enum. * @param scheme of the file system * @param key the enum of the counter * @return the file system counter */ @InterfaceAudience.Private public synchronized C findCounter(String scheme, FileSystemCounter key) { return ((FileSystemCounterGroup<C>) getGroup( FileSystemCounter.class.getName()).getUnderlyingGroup()). findCounter(scheme, key); }
/** * Find the file system counter for the given scheme and enum. * @param scheme of the file system * @param key the enum of the counter * @return the file system counter */ @InterfaceAudience.Private public synchronized C findCounter(String scheme, FileSystemCounter key) { return ((FileSystemCounterGroup<C>) getGroup( FileSystemCounter.class.getName()).getUnderlyingGroup()). findCounter(scheme, key); }
/** * Find the file system counter for the given scheme and enum. * @param scheme of the file system * @param key the enum of the counter * @return the file system counter */ @InterfaceAudience.Private public synchronized C findCounter(String scheme, FileSystemCounter key) { return ((FileSystemCounterGroup<C>) getGroup( FileSystemCounter.class.getName()).getUnderlyingGroup()). findCounter(scheme, key); }
G group = counters.getGroup(groupName); group.setDisplayName(groupDisplayName);
G group = counters.getGroup(groupName); group.setDisplayName(groupDisplayName);
G group = counters.getGroup(groupName); group.setDisplayName(groupDisplayName);
G group = counters.getGroup(groupName); group.setDisplayName(groupDisplayName);