de.is24.util.monitoring.jmx
Class WebContextJmxAppMon4JNamingStrategy
java.lang.Object
de.is24.util.monitoring.jmx.WebContextJmxAppMon4JNamingStrategy
- All Implemented Interfaces:
- JmxAppMon4JNamingStrategy, org.springframework.beans.factory.Aware, org.springframework.web.context.ServletContextAware
public class WebContextJmxAppMon4JNamingStrategy
- extends Object
- implements JmxAppMon4JNamingStrategy, org.springframework.web.context.ServletContextAware
This classes provides the contextPath of the servletContext as jmx prefix for the InApplicationMonitorJMXConnector.
This should be used for webApps, cause multiple webApps create multiple instances of the InApplicationMonitorJMXConnector and override eachother.
- See Also:
InApplicationMonitorJMXConnector
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
prefix
private String prefix
WebContextJmxAppMon4JNamingStrategy
public WebContextJmxAppMon4JNamingStrategy()
getJmxPrefix
public String getJmxPrefix()
- Specified by:
getJmxPrefix in interface JmxAppMon4JNamingStrategy
- Returns:
- the String provided by the
ServletContext.getContext(String) method - See Also:
JmxAppMon4JNamingStrategy.getJmxPrefix()
setServletContext
public void setServletContext(javax.servlet.ServletContext servletContext)
- Specified by:
setServletContext in interface org.springframework.web.context.ServletContextAware
- Parameters:
servletContext - the servlet context- See Also:
ServletContextAware.setServletContext(ServletContext)
Copyright © 2013 Immobilien Scout GmbH. All Rights Reserved.