org.apache.excalibur.instrument.manager.impl
Class InstrumentSampleFactory

java.lang.Object
  extended by org.apache.excalibur.instrument.manager.impl.InstrumentSampleFactory

 class InstrumentSampleFactory
extends java.lang.Object

The InstrumentSample represents a single data sample in a ProfileDataSet. Access to InstrumentSamples are synchronized through the ProfileDataSet.

Author:
Avalon Development Team

Constructor Summary
InstrumentSampleFactory()
           
 
Method Summary
(package private) static InstrumentSample getInstrumentSample(InstrumentProxy instrumentProxy, int type, java.lang.String name, long interval, int size, java.lang.String description, long lease)
          A Profile Sample Type loaded in from a Configuration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InstrumentSampleFactory

InstrumentSampleFactory()
Method Detail

getInstrumentSample

static InstrumentSample getInstrumentSample(InstrumentProxy instrumentProxy,
                                            int type,
                                            java.lang.String name,
                                            long interval,
                                            int size,
                                            java.lang.String description,
                                            long lease)
A Profile Sample Type loaded in from a Configuration.

Parameters:
instrumentProxy - The InstrumentProxy which owns the InstrumentSample.
type - Type of the InstrumentSample to create.
name - The name of the new InstrumentSample.
interval - The sample interval of the new InstrumentSample.
size - The number of samples to store as history.
description - The description of the new InstrumentSample.
lease - Requested lease time in milliseconds. A value of 0 implies that the lease will never expire.