SMILA (incubation) API documentation

org.eclipse.smila.management.performance
Class PerformanceCounter

java.lang.Object
  extended by org.eclipse.smila.management.performance.PerformanceCounter

public class PerformanceCounter
extends java.lang.Object

PerformanceCounter base class.


Constructor Summary
PerformanceCounter(PerformanceCounterFormula formula)
          Constructs PerformanceCounter object.
 
Method Summary
 void decrement()
          Decrement the counter by one.
 void decrementBy(long value)
          Decrement by.
 PerformanceSample getNextPerformanceSample()
          Gets the next performance sample.
 double getNextSampleValue()
          Sample and gets the next value.
 double getNextValue()
          Gets the next value.
 void increment()
          Increment the counter by one.
 void incrementBy(long value)
          Increment by.
 void reset()
          Reset the counter.
 void setRawValue(long rawValue)
          Sets the raw value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PerformanceCounter

public PerformanceCounter(PerformanceCounterFormula formula)
Constructs PerformanceCounter object.

Parameters:
formula - counter value calculation formula
Method Detail

incrementBy

public void incrementBy(long value)
Increment by.

Parameters:
value - value to increment counter by

decrementBy

public void decrementBy(long value)
Decrement by.

Parameters:
value - value to decrement counter by

getNextValue

public double getNextValue()
Gets the next value.

Returns:
next calculated value

getNextSampleValue

public double getNextSampleValue()
Sample and gets the next value.

Returns:
next calculated value

getNextPerformanceSample

public PerformanceSample getNextPerformanceSample()
Gets the next performance sample.

Returns:
next sample

reset

public void reset()
Reset the counter.


setRawValue

public void setRawValue(long rawValue)
Sets the raw value.

Parameters:
rawValue - set the new raw value for the counter

increment

public void increment()
Increment the counter by one.


decrement

public void decrement()
Decrement the counter by one.


SMILA (incubation) API documentation