|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The public interface to the DefaultInstrumentManager implementation.
Field Summary | |
static int |
INSTRUMENT_SAMPLE_TYPE_COUNTER
Type which identifies CounterInstrumentSamples. |
static int |
INSTRUMENT_SAMPLE_TYPE_MAXIMUM
Type which identifies MaximumInstrumentSamples. |
static int |
INSTRUMENT_SAMPLE_TYPE_MEAN
Type which identifies MeanInstrumentSamples. |
static int |
INSTRUMENT_SAMPLE_TYPE_MINIMUM
Type which identifies MinimumInstrumentSamples. |
static int |
INSTRUMENT_TYPE_COUNTER
Type which identifies CounterInstruments. |
static int |
INSTRUMENT_TYPE_NONE
Type which specifies that the type of a Instrument has not yet been determined. |
static int |
INSTRUMENT_TYPE_VALUE
Type which identifies ValueInstruments. |
Fields inherited from interface org.apache.excalibur.instrument.InstrumentManager |
ROLE |
Method Summary | |
java.lang.String |
getDescription()
Returns the description of this DefaultInstrumentManager. |
InstrumentableDescriptor |
getInstrumentableDescriptor(java.lang.String instrumentableName)
Returns a InstrumentableDescriptor based on its name or the name of any of its children. |
InstrumentableDescriptor[] |
getInstrumentableDescriptors()
Returns an array of Descriptors for the Instrumentables managed by this DefaultInstrumentManager. |
int |
getLeaseSampleCount()
Returns the current number of leased samples. |
long |
getMaxLeasedSampleLease()
Returns the maximum number of milliseconds that a lease will be granted for. |
int |
getMaxLeasedSamples()
Returns the maximum number of leased samples that will be approved. |
int |
getMaxLeasedSampleSize()
Returns the maximum size of a leased sample. |
java.lang.String |
getName()
Returns the name used to identify this DefaultInstrumentManager. |
int |
getStateVersion()
Returns the stateVersion of the DefaultInstrumeManager. |
void |
invokeGarbageCollection()
Invokes garbage collection. |
InstrumentableDescriptor |
locateInstrumentableDescriptor(java.lang.String instrumentableName)
Searches the entire instrument tree for an instrumentable with the given name. |
InstrumentDescriptor |
locateInstrumentDescriptor(java.lang.String instrumentName)
Searches the entire instrument tree for an instrument with the given name. |
InstrumentSampleDescriptor |
locateInstrumentSampleDescriptor(java.lang.String sampleName)
Searches the entire instrument tree for an instrument sample with the given name. |
Methods inherited from interface org.apache.excalibur.instrument.InstrumentManager |
registerInstrumentable |
Field Detail |
public static final int INSTRUMENT_TYPE_NONE
public static final int INSTRUMENT_TYPE_COUNTER
public static final int INSTRUMENT_TYPE_VALUE
public static final int INSTRUMENT_SAMPLE_TYPE_COUNTER
public static final int INSTRUMENT_SAMPLE_TYPE_MINIMUM
public static final int INSTRUMENT_SAMPLE_TYPE_MAXIMUM
public static final int INSTRUMENT_SAMPLE_TYPE_MEAN
Method Detail |
public java.lang.String getName()
public java.lang.String getDescription()
public InstrumentableDescriptor getInstrumentableDescriptor(java.lang.String instrumentableName) throws NoSuchInstrumentableException
instrumentableName
- Name of the Instrumentable being requested.
NoSuchInstrumentableException
- If the specified Instrumentable
does not exist.public InstrumentableDescriptor[] getInstrumentableDescriptors()
public InstrumentableDescriptor locateInstrumentableDescriptor(java.lang.String instrumentableName) throws NoSuchInstrumentableException
instrumentableName
- Name of the Instrumentable being requested.
NoSuchInstrumentableException
- If the specified Instrumentable
does not exist.public InstrumentDescriptor locateInstrumentDescriptor(java.lang.String instrumentName) throws NoSuchInstrumentException
instrumentName
- Name of the Instrument being requested.
NoSuchInstrumentException
- If the specified Instrument does
not exist.public InstrumentSampleDescriptor locateInstrumentSampleDescriptor(java.lang.String sampleName) throws NoSuchInstrumentSampleException
sampleName
- Name of the Instrument Sample being requested.
NoSuchInstrumentSampleException
- If the specified Instrument
Sample does not exist.public int getStateVersion()
Clients can use this value to tell whether or not anything has changed without having to do an exhaustive comparison.
public void invokeGarbageCollection()
public int getLeaseSampleCount()
public int getMaxLeasedSamples()
public int getMaxLeasedSampleSize()
public long getMaxLeasedSampleLease()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |