Ejemplo n.º 1
0
 /** {@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;
 }
Ejemplo n.º 2
0
 /** {@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;
 }