public abstract class AbstractServiceManagerServlet
extends javax.servlet.http.HttpServlet
implements org.apache.excalibur.instrument.Instrumentable
| Modifier and Type | Field and Description |
|---|---|
private java.util.ArrayList |
m_childList
Deprecated.
Stores the child instrumentables during initialization.
|
private java.lang.String |
m_instrumentableName
Deprecated.
Instrumentable Name assigned to this Instrumentable
|
private java.util.ArrayList |
m_instrumentList
Deprecated.
Stores the instruments during initialization.
|
private org.apache.excalibur.instrument.CounterInstrument |
m_instrumentRequests
Deprecated.
Counts the number of times the service is requested.
|
private org.apache.excalibur.instrument.ValueInstrument |
m_instrumentTime
Deprecated.
Records the amount of time execute takes to be processed.
|
private org.apache.avalon.framework.logger.Logger |
m_logger
Deprecated.
|
private java.lang.String |
m_referenceName
Deprecated.
|
private boolean |
m_registered
Deprecated.
Flag which is to used to keep track of when the Instrumentable has been registered.
|
private org.apache.avalon.framework.service.ServiceManager |
m_serviceManager
Deprecated.
|
| Constructor and Description |
|---|
AbstractServiceManagerServlet(java.lang.String referenceName)
Deprecated.
Create a new AbstractServiceManagerServlet.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addChildInstrumentable(org.apache.excalibur.instrument.Instrumentable child)
Deprecated.
Adds a child Instrumentable to the list of child Instrumentables
published by the component.
|
protected void |
addInstrument(org.apache.excalibur.instrument.Instrument instrument)
Deprecated.
Adds an Instrument to the list of Instruments published by the component.
|
void |
destroy()
Deprecated.
Called by the servlet container to indicate to a servlet that the servlet
is being taken out of service.
|
org.apache.excalibur.instrument.Instrumentable[] |
getChildInstrumentables()
Deprecated.
Any Object which implements Instrumentable can also make use of other
Instrumentable child objects.
|
java.lang.String |
getInstrumentableName()
Deprecated.
Gets the name of the Instrumentable.
|
org.apache.excalibur.instrument.Instrument[] |
getInstruments()
Deprecated.
Obtain a reference to all the Instruments that the Instrumentable object
wishes to expose.
|
protected org.apache.avalon.framework.logger.Logger |
getLogger()
Deprecated.
Obtain a reference to the servlet's logger.
|
org.apache.avalon.framework.service.ServiceManager |
getServiceManager()
Deprecated.
Returns the current ServiceManager.
|
void |
init(javax.servlet.ServletConfig config)
Deprecated.
Called by the servlet container to initialize a servlet before it is
put into service.
|
void |
service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Deprecated.
Receives standard HTTP requests from the public service method and dispatches
them to the doXXX methods defined in this class.
|
void |
setInstrumentableName(java.lang.String name)
Deprecated.
Sets the name for the Instrumentable.
|
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, serviceprivate java.lang.String m_referenceName
private org.apache.avalon.framework.service.ServiceManager m_serviceManager
private org.apache.avalon.framework.logger.Logger m_logger
private java.lang.String m_instrumentableName
private java.util.ArrayList m_instrumentList
private java.util.ArrayList m_childList
private boolean m_registered
private org.apache.excalibur.instrument.CounterInstrument m_instrumentRequests
private org.apache.excalibur.instrument.ValueInstrument m_instrumentTime
public AbstractServiceManagerServlet(java.lang.String referenceName)
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 void init(javax.servlet.ServletConfig config)
throws javax.servlet.ServletException
init in interface javax.servlet.Servletinit in class javax.servlet.GenericServletconfig - ServletConfig object for the servlet.javax.servlet.ServletException - If there are any initialization problems.public void destroy()
destroy in interface javax.servlet.Servletdestroy in class javax.servlet.GenericServletpublic void service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException
service in class javax.servlet.http.HttpServletrequest - The HttpServletRequest object that contains the request the
client made of the servlet.response - The HttpServletResponse object that contains the response
the servlet returns to the client.javax.servlet.ServletExceptionjava.io.IOExceptionpublic final java.lang.String getInstrumentableName()
getInstrumentableName in interface org.apache.excalibur.instrument.Instrumentablepublic final void setInstrumentableName(java.lang.String name)
This value may be set by a parent Instrumentable, or by the InstrumentManager using the value of the 'instrumentable' attribute in the configuration of the component.
setInstrumentableName in interface org.apache.excalibur.instrument.Instrumentablename - The name used to identify a Instrumentable.public final org.apache.excalibur.instrument.Instrumentable[] getChildInstrumentables()
getChildInstrumentables in interface org.apache.excalibur.instrument.Instrumentablepublic final org.apache.excalibur.instrument.Instrument[] getInstruments()
getInstruments in interface org.apache.excalibur.instrument.Instrumentableprotected void addInstrument(org.apache.excalibur.instrument.Instrument instrument)
instrument - Instrument to publish.protected void addChildInstrumentable(org.apache.excalibur.instrument.Instrumentable child)
Note that Child Instrumentables must be named by the caller using the setInstrumentableName method.
child - Child Instrumentable to publish.protected org.apache.avalon.framework.logger.Logger getLogger()
public org.apache.avalon.framework.service.ServiceManager getServiceManager()