@Test public void testSupportedSpecialChars() { AtomicLong hyphen = Stats.exportLong("c-d"); AtomicLong slash = Stats.exportLong("d/f"); AtomicLong dot = Stats.exportLong("f.g"); hyphen.incrementAndGet(); slash.incrementAndGet(); dot.incrementAndGet(); assertCounter("c-d", 1); assertCounter("d/f", 1); assertCounter("f.g", 1); }
public static AtomicLong exportLong(String name) { return exportLong(name, 0L); }
Stats { public static AtomicLong exportLong(String name) { return exportLong(name, 0L); } }
Stats { public static AtomicLong exportLong(String name) { return exportLong(name, 0L); }  }
Stats { public static AtomicLong exportLong(String name) { return exportLong(name, 0L); }  static String normalizeName(String name); static Stat<T> export(Stat<T> var); static Stat<String> exportString(Stat<String> var); static void exportAll(Iterable<Stat<? extends Number>> vars); static AtomicInteger export(final String name, final AtomicInteger intVar); static AtomicInteger exportInt(String name); static AtomicInteger exportInt(String name, int initialValue); static AtomicLong export(String name, final AtomicLong longVar); static AtomicLong exportLong(String name); static AtomicLong exportLong(String name, long initialValue); static AtomicDouble export(String name, final AtomicDouble doubleVar); static void exportSize(String name, final Collection<?> collection); static Stat<T> exportStatic(Stat<T> var); static Iterable<Stat<?>> getVariables(); @VisibleForTesting static void flush(); static Stat<T> getVariable(String name); }
Stats { public static AtomicLong exportLong(String name) { return exportLong(name, 0L); }  static String normalizeName(String name); static Stat<T> export(Stat<T> var); static Stat<String> exportString(Stat<String> var); static void exportAll(Iterable<Stat<? extends Number>> vars); static AtomicInteger export(final String name, final AtomicInteger intVar); static AtomicInteger exportInt(String name); static AtomicInteger exportInt(String name, int initialValue); static AtomicLong export(String name, final AtomicLong longVar); static AtomicLong exportLong(String name); static AtomicLong exportLong(String name, long initialValue); static AtomicDouble export(String name, final AtomicDouble doubleVar); static void exportSize(String name, final Collection<?> collection); static Stat<T> exportStatic(Stat<T> var); static Iterable<Stat<?>> getVariables(); @VisibleForTesting static void flush(); static Stat<T> getVariable(String name); static final StatsProvider STATS_PROVIDER; static final StatRegistry STAT_REGISTRY; }