com.bigdata.counters
Class DefaultInstrumentFactory

java.lang.Object
  extended by com.bigdata.counters.DefaultInstrumentFactory
All Implemented Interfaces:
ICounterSet.IInstrumentFactory

public class DefaultInstrumentFactory
extends Object
implements ICounterSet.IInstrumentFactory

Used to read in CounterSet XML, aggregating data into HistoryInstruments.

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

Field Summary
static DefaultInstrumentFactory NO_OVERWRITE_60M
           
static DefaultInstrumentFactory OVERWRITE_60M
          Instance supports overwrite, so the ring buffer will eventually overwrite old values as new values arrive.
 
Constructor Summary
DefaultInstrumentFactory(int nslots, PeriodEnum period, boolean overwrite)
           
 
Method Summary
 IInstrument newInstance(Class type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OVERWRITE_60M

public static final DefaultInstrumentFactory OVERWRITE_60M
Instance supports overwrite, so the ring buffer will eventually overwrite old values as new values arrive. Minutes are migrated onto hours and hours are migrated onto days. Up to 30 days of data will be retained.


NO_OVERWRITE_60M

public static final DefaultInstrumentFactory NO_OVERWRITE_60M
Constructor Detail

DefaultInstrumentFactory

public DefaultInstrumentFactory(int nslots,
                                PeriodEnum period,
                                boolean overwrite)
Parameters:
nslots - The #of units of the period to be retained by the History.
period - The period in which those units are measured.
overwrite - If the History may serve as a ring buffer.
Method Detail

newInstance

public IInstrument newInstance(Class type)
Specified by:
newInstance in interface ICounterSet.IInstrumentFactory


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