Package cloud.piranha.monitor.jmx
Class JMXServerInitializer
- java.lang.Object
-
- cloud.piranha.monitor.jmx.JMXServerInitializer
-
- All Implemented Interfaces:
ServletContainerInitializer
public class JMXServerInitializer extends Object implements ServletContainerInitializer
Bootstraps the JMX server.This class initializes the JMX server and registers the PiranhaInfo MBean if and only if it finds the appropriate attribute in the ServletContext.
- Author:
- Manfred Riem ([email protected])
-
-
Constructor Summary
Constructors Constructor Description JMXServerInitializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onStartup(Set<Class<?>> annotatedClasses, ServletContext servletContext)
On startup.
-
-
-
Method Detail
-
onStartup
public void onStartup(Set<Class<?>> annotatedClasses, ServletContext servletContext) throws ServletException
On startup.- Specified by:
onStartup
in interfaceServletContainerInitializer
- Parameters:
annotatedClasses
- the annotated class.servletContext
- the Servlet context.- Throws:
ServletException
- when a Servlet error occurs.
-
-