/** {@inheritDoc} */ public final CounterSample getCounterSample(String name) { Simon s = manager.getSimon(name); if (s != null && s instanceof Counter) { return new CounterSample((org.javasimon.CounterSample) s.sample()); } return null; }
/** {@inheritDoc} */ public final StopwatchSample getStopwatchSample(String name) { Simon s = manager.getSimon(name); if (s != null && s instanceof Stopwatch) { return new StopwatchSample((org.javasimon.StopwatchSample) s.sample()); } return null; }