1 19 20 package org.apache.excalibur.instrument.manager; 21 22 28 public interface InstrumentDescriptor 29 { 30 36 boolean isConfigured(); 37 38 44 boolean isRegistered(); 45 46 47 55 String getName(); 56 57 62 String getDescription(); 63 64 72 int getType(); 73 74 81 InstrumentableDescriptor getInstrumentableDescriptor(); 82 83 93 void addCounterInstrumentListener( CounterInstrumentListener listener ); 94 95 105 void removeCounterInstrumentListener( CounterInstrumentListener listener ); 106 107 117 void addValueInstrumentListener( ValueInstrumentListener listener ); 118 119 129 void removeValueInstrumentListener( ValueInstrumentListener listener ); 130 131 141 InstrumentSampleDescriptor getInstrumentSampleDescriptor( String instrumentSampleName ) 142 throws NoSuchInstrumentSampleException; 143 144 163 InstrumentSampleDescriptor createInstrumentSample( String sampleDescription, 164 long sampleInterval, 165 int sampleSize, 166 long sampleLease, 167 int sampleType ); 168 169 176 InstrumentSampleDescriptor[] getInstrumentSampleDescriptors(); 177 178 187 int getStateVersion(); 188 } 189 | Popular Tags |