Author: rmannibucau
Date: Thu Aug 1 11:56:41 2013
New Revision: 1509183
URL: http://svn.apache.org/r1509183
Log:
CounterStopWatch doesn't need a role, it is in the counter
Modified:
commons/sandbox/monitoring/trunk/core/src/main/java/org/apache/commons/monitoring/stopwatches/CounterStopWatch.java
Modified:
commons/sandbox/monitoring/trunk/core/src/main/java/org/apache/commons/monitoring/stopwatches/CounterStopWatch.java
URL:
http://svn.apache.org/viewvc/commons/sandbox/monitoring/trunk/core/src/main/java/org/apache/commons/monitoring/stopwatches/CounterStopWatch.java?rev=1509183&r1=1509182&r2=1509183&view=diff
==============================================================================
---
commons/sandbox/monitoring/trunk/core/src/main/java/org/apache/commons/monitoring/stopwatches/CounterStopWatch.java
(original)
+++
commons/sandbox/monitoring/trunk/core/src/main/java/org/apache/commons/monitoring/stopwatches/CounterStopWatch.java
Thu Aug 1 11:56:41 2013
@@ -17,7 +17,6 @@
package org.apache.commons.monitoring.stopwatches;
-import org.apache.commons.monitoring.Role;
import org.apache.commons.monitoring.counter.Counter;
import java.util.concurrent.atomic.AtomicInteger;
@@ -32,13 +31,11 @@ import static org.apache.commons.monitor
public class CounterStopWatch implements StopWatch {
protected final Counter counter;
protected final long startedAt;
- protected final Role role;
protected final AtomicInteger concurrencyCounter;
protected long stopedAt;
protected boolean stoped;
public CounterStopWatch(final Counter counter) {
- this.role = Role.PERFORMANCES;
this.counter = counter;
startedAt = nanotime();