/** * Get the counter for the given name and create it if it doesn't exist. * @param name the internal counter name * @return the counter */ public synchronized Counter getCounterForName(String name) { Counter result = subcounters.get(name); if (result == null) { if (LOG.isDebugEnabled()) { LOG.debug("Adding " + name); } result = new Counter(name, localize(name + ".name", name), 0L); subcounters.put(name, result); } return result; }
/** * Get the counter for the given name and create it if it doesn't exist. * @param name the internal counter name * @return the counter */ public synchronized Counter getCounterForName(String name) { Counter result = subcounters.get(name); if (result == null) { LOG.debug("Adding " + name); result = new Counter(name, localize(name + ".name", name), 0L); subcounters.put(name, result); } return result; }
/** * Get the counter for the given name and create it if it doesn't exist. * @param name the internal counter name * @return the counter */ public synchronized Counter getCounterForName(String name) { Counter result = subcounters.get(name); if (result == null) { LOG.debug("Adding " + name); result = new Counter(name, localize(name + ".name", name), 0L); subcounters.put(name, result); } return result; }
Group(String groupName) { try { bundle = getResourceBundle(groupName); } catch (MissingResourceException neverMind) { } this.groupName = groupName; this.displayName = localize("CounterGroupName", groupName); if (LOG.isDebugEnabled()) { LOG.debug("Creating group " + groupName + " with " + (bundle == null ? "nothing" : "bundle")); } }
Group(String groupName) { try { bundle = getResourceBundle(groupName); } catch (MissingResourceException neverMind) { } this.groupName = groupName; this.displayName = localize("CounterGroupName", groupName); LOG.debug("Creating group " + groupName + " with " + (bundle == null ? "nothing" : "bundle")); }
Group(String groupName) { try { bundle = getResourceBundle(groupName); } catch (MissingResourceException neverMind) { } this.groupName = groupName; this.displayName = localize("CounterGroupName", groupName); LOG.debug("Creating group " + groupName + " with " + (bundle == null ? "nothing" : "bundle")); }