|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.webservices.instrument.InstrumentationServiceImpl
public final class InstrumentationServiceImpl
Implementation of InstrumentationService component. This component
allows you to access sample information from the InstrumentManager.
| Field Summary |
|---|
| Fields inherited from interface org.apache.cocoon.webservices.instrument.InstrumentationService |
|---|
ROLE |
| Constructor Summary | |
|---|---|
InstrumentationServiceImpl()
|
|
| Method Summary | |
|---|---|
String[] |
getSampleNames()
Obtain a list of available samples, useful for browsing available samples. |
int[] |
getSampleSnapshot(String path)
Obtain an array of samples from a specified sample name. |
void |
setInstrumentManager(InstrumentManager iManager)
Sets the InstrumentManager for this service object. |
| Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
|---|
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InstrumentationServiceImpl()
| Method Detail |
|---|
public void setInstrumentManager(InstrumentManager iManager)
InstrumentManager for this service object.
setInstrumentManager in interface InstrumentManageableiManager - an InstrumentManager instance
public int[] getSampleSnapshot(String path)
throws Exception
The specified path parameter identifies a sample, hierarchically from Instrumentable name to Instrument name, to Instrument sample name (including any child Instrumentables) using the '.' character as a separator.
eg: instrument-manager.active-thread-count.maximum_1000_600
The above example identifies the sample 'maximum_1000_600' on instrument 'active-thread-count', on instrumentable 'instrument-manager'.
The length of the returned array is dependant on the configuration of the sample being accessed. Check instrumentation.xconf for the length of pre- defined samples that operate constantly, when instrumentation is enabled.
getSampleSnapshot in interface InstrumentationServicepath - path value
int[] array of samples
Exception - if an error occurspublic String[] getSampleNames()
getSampleNames in interface InstrumentationServiceString[] array of sample names
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||