JMXFilterInitServlet (Hyperic HQ Plugin API)
Keywords: org.hyperic.hq.product.servlet.filter.JMXFilterInitServlet class

Overview | Package | Class | Tree | Deprecated | Index | Help
| Hyperic HQ Plugin API v. 4.4.0.2
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.hyperic.hq.product.servlet.filter
Class JMXFilterInitServlet

    java.lang.Object
      javax.servlet.GenericServlet
          javax.servlet.http.HttpServlet
              org.hyperic.hq.product.servlet.filter.JMXFilterInitServlet

All Implemented Interfaces:
  java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

    public class JMXFilterInitServlet

extends javax.servlet.http.HttpServlet

Initialize Measurements for the current application. This needs to be loaded on startup. Because of the special issues with classloader and default web.xml, we must take into account multiple use cases. Some containers will create a single instance of this servlet or one one per context, with one class (and associated statics) or multiple classes.

See Also:
  Serialized Form

Constructor Summary
`JMXFilterInitServlet()`

Method Summary
`void` | `destroy()`
`static javax.management.MBeanServer` | `getMBeanServer()`
`void` | `init()`
`void` | `registerContextMBean(javax.servlet.ServletContext ctx, JMXFilter filter)` Create an MBean and init it for a servlet context.
`static void` | `registerFilter(JMXFilter f)`
`void` | `registerServletMBean(java.lang.String contextName, java.lang.String servletPath, ServletInfo bean)`
`static void` | `registerSessionListener(JMXSessionListener sessionL)`

Methods inherited from class javax.servlet.http.HttpServlet
`doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service`

Methods inherited from class javax.servlet.GenericServlet
`getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### JMXFilterInitServlet

    public JMXFilterInitServlet()

Method Detail

### registerFilter

    public static void registerFilter(JMXFilter f)

### registerSessionListener

    public static void registerSessionListener(JMXSessionListener sessionL)

### registerServletMBean

    public void registerServletMBean(java.lang.String contextName,
                                     java.lang.String servletPath,
                                     ServletInfo bean)

### registerContextMBean

    public void registerContextMBean(javax.servlet.ServletContext ctx,
                                     JMXFilter filter)

  Create an MBean and init it for a servlet context. Must be called from init() for all webapps that were registered before init was called, and also in registerFilter for all new apps - to deal with the different order in the case of a shared class (in parent loader). In both cases, the filter is known. The session listener may be null if no session was created (common case), so it must be registered on the first session.

### getMBeanServer

    public static javax.management.MBeanServer getMBeanServer()

### init

    public void init()
              throws javax.servlet.ServletException

  Overrides:
    `init` in class `javax.servlet.GenericServlet`
  Throws:
    `javax.servlet.ServletException`

### destroy

    public void destroy()

  Specified by:
    `destroy` in interface `javax.servlet.Servlet`
  Overrides:
    `destroy` in class `javax.servlet.GenericServlet`

Overview | Package | Class | Tree | Deprecated | Index | Help
| Hyperic HQ Plugin API v. 4.4.0.2
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2004-2006 Hyperic, Inc. support@hyperic.net, All Rights Reserved.