/** * Creates a new DefaultInstrumentManagerImpl. */ public DefaultInstrumentManagerImpl() { // Initialize the Instrumentable elements. m_totalMemoryInstrument = new ValueInstrument( "total-memory" ); m_freeMemoryInstrument = new ValueInstrument( "free-memory" ); m_memoryInstrument = new ValueInstrument( "memory" ); m_activeThreadCountInstrument = new ValueInstrument( "active-thread-count" ); m_registrationsInstrument = new CounterInstrument( "instrumentable-registrations" ); m_instrumentablesInstrument = new ValueInstrument( "instrumentables" ); m_instrumentsInstrument = new ValueInstrument( "instruments" ); m_samplesInstrument = new ValueInstrument( "samples" ); m_leasedSamplesInstrument = new ValueInstrument( "leased-samples" ); m_leaseRequestsInstrument = new CounterInstrument( "lease-requests" ); m_stateSavesInstrument = new CounterInstrument( "state-saves" ); m_stateSaveTimeInstrument = new ValueInstrument( "state-save-time" ); }
/** * Create a new AbstractComponentManagerServlet. * * @param referenceName A name which does not include any spaces or periods * that will be used to name the logger category and * instrumentable which represents this servlet. */ public AbstractComponentManagerServlet( String referenceName ) { //System.out.println( "AbstractComponentManagerServlet( " + referenceName + " )" ); m_referenceName = referenceName; // Set up Instrumentable like AbstractInstrumentable m_registered = false; m_instrumentList = new ArrayList(); m_childList = new ArrayList(); // Create the instruments setInstrumentableName( referenceName ); addInstrument( m_instrumentRequests = new CounterInstrument( "requests" ) ); addInstrument( m_instrumentTime = new ValueInstrument( "time" ) ); }
/** * Create a new AbstractServiceManagerServlet. * * @param referenceName A name which does not include any spaces or periods * that will be used to name the logger category and * instrumentable which represents this servlet. */ public AbstractServiceManagerServlet( String referenceName ) { //System.out.println( "AbstractServiceManagerServlet( " + referenceName + " )" ); m_referenceName = referenceName; // Set up Instrumentable like AbstractInstrumentable m_registered = false; m_instrumentList = new ArrayList(); m_childList = new ArrayList(); // Create the instruments setInstrumentableName( referenceName ); addInstrument( m_instrumentRequests = new CounterInstrument( "requests" ) ); addInstrument( m_instrumentTime = new ValueInstrument( "time" ) ); }
m_sizeInstrument = new ValueInstrument( INSTRUMENT_SIZE_NAME ); m_readySizeInstrument = new ValueInstrument( INSTRUMENT_READY_SIZE_NAME ); m_getsInstrument = new CounterInstrument( INSTRUMENT_GETS_NAME ); m_putsInstrument = new CounterInstrument( INSTRUMENT_PUTS_NAME );
/** * Creates a new ComponentHandler. */ public ComponentHandler() { // Initialize the Instrumentable elements. setInstrumentableName( ExcaliburComponentManager.INSTRUMENTABLE_NAME + ".unnamed handler" ); addInstrument( m_referencesInstrument = new ValueInstrument( "references" ) ); addInstrument( m_getsInstrument = new CounterInstrument( "gets" ) ); addInstrument( m_putsInstrument = new CounterInstrument( "puts" ) ); }