public class CounterInstrument extends AbstractInstrument
| Constructor and Description |
|---|
CounterInstrument(java.lang.String name)
Creates a new CounterInstrument.
|
| Modifier and Type | Method and Description |
|---|---|
void |
increment()
Increments the Instrument.
|
void |
increment(int count)
Increments the Instrument by a specified count.
|
getInstrumentName, getInstrumentProxy, isActive, setInstrumentProxypublic CounterInstrument(java.lang.String name)
name - The name of the Instrument. The value should be a string
which does not contain spaces or periods.public void increment()
public void increment(int count)
count - A positive integer to increment the counter by.java.lang.IllegalArgumentException - If the count is not positive.