com.bigdata.counters
Interface IInstrument<T>

All Known Subinterfaces:
ICounter<T>
All Known Implementing Classes:
HistoryInstrument, Instrument, OneShotInstrument

public interface IInstrument<T>

Interface used to construct a counter that reports on an instrumented value.

Version:
$Id: IInstrument.java 2265 2009-10-26 12:51:06Z thompsonbry $
Author:
Bryan Thompson

Method Summary
 T getValue()
          Obtain a sample.
 long lastModified()
          Obtain the timestamp for the last collected sample.
 void setValue(T value, long timestamp)
          Set the current value.
 

Method Detail

getValue

T getValue()
Obtain a sample.


lastModified

long lastModified()
Obtain the timestamp for the last collected sample.


setValue

void setValue(T value,
              long timestamp)
Set the current value.

Parameters:
value - The sampled value.
timestamp - The timestamp for that sample.
Throws:
UnsupportedOperationException - if this operation is not allowed.


Copyright © 2006-2012 SYSTAP, LLC. All Rights Reserved.