com.bigdata.counters.query
Class CounterSetSelector

java.lang.Object
  extended by com.bigdata.counters.query.CounterSetSelector
All Implemented Interfaces:
ICounterSelector

public class CounterSetSelector
extends Object
implements ICounterSelector

Reads counters from a CounterSet.

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

Field Summary
protected static org.apache.log4j.Logger log
           
 
Constructor Summary
CounterSetSelector(CounterSet counterSet)
           
 
Method Summary
 CounterSet getRoot()
           
 ICounter[] selectCounters(int depth, Pattern pattern, long fromTime, long toTime, PeriodEnum period)
          Selects and returns a collection of performance counters with history.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static final org.apache.log4j.Logger log
Constructor Detail

CounterSetSelector

public CounterSetSelector(CounterSet counterSet)
Method Detail

getRoot

public CounterSet getRoot()

selectCounters

public ICounter[] selectCounters(int depth,
                                 Pattern pattern,
                                 long fromTime,
                                 long toTime,
                                 PeriodEnum period)
Description copied from interface: ICounterSelector
Selects and returns a collection of performance counters with history.

Specified by:
selectCounters in interface ICounterSelector
Parameters:
depth - When non-ZERO, this specifies a constraint on the maximum depth for a counter may can be selected.
pattern - A regular expression which must be satisified (optional).
fromTime - The inclusive lower bound in milliseconds of the performance counter timestamps which will be selected.
toTime - The exclusive upper bound in milliseconds of the performance counter timestamps which will be selected.
period - The unit of aggregation for the selected performance counters.
Returns:
The selected performance counters.


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