|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nuiton.web.filter.MonitoringFilter
public class MonitoringFilter
Monitoring filter is a simple non-intrusive servlet filter that collect statistics about page computing time per request URI. All gathered data are published using JMX Bean to make it available through monitoring tools such as jconsole.
| Field Summary | |
|---|---|
protected ObjectName |
servletStatisticsMBeanName
The objectName where the MBean will be registered. |
protected ServletStatisticsService |
servletStatisticsService
The service used to record statistics before and after filter is called. |
| Constructor Summary | |
|---|---|
MonitoringFilter()
|
|
| Method Summary | |
|---|---|
void |
destroy()
Detach the MBean, print statistics. |
void |
doFilter(javax.servlet.ServletRequest servletRequest,
javax.servlet.ServletResponse servletResponse,
javax.servlet.FilterChain filterChain)
|
void |
init(javax.servlet.FilterConfig filterConfig)
Attach the MBean. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ObjectName servletStatisticsMBeanName
protected ServletStatisticsService servletStatisticsService
| Constructor Detail |
|---|
public MonitoringFilter()
| Method Detail |
|---|
public void init(javax.servlet.FilterConfig filterConfig)
throws javax.servlet.ServletException
init in interface javax.servlet.Filterjavax.servlet.ServletException
public void doFilter(javax.servlet.ServletRequest servletRequest,
javax.servlet.ServletResponse servletResponse,
javax.servlet.FilterChain filterChain)
throws IOException,
javax.servlet.ServletException
doFilter in interface javax.servlet.FilterIOException
javax.servlet.ServletExceptionpublic void destroy()
destroy in interface javax.servlet.Filter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||