Package org.opencms.mx
Class CmsDiagnosticsMXBean
- java.lang.Object
-
- org.opencms.mx.CmsDiagnosticsMXBean
-
- All Implemented Interfaces:
I_CmsDiagnosticsMXBean
public class CmsDiagnosticsMXBean extends java.lang.Object implements I_CmsDiagnosticsMXBean
Bean for special diagnostic information retrievable via JMX.
-
-
Field Summary
Fields Modifier and Type Field Description static CmsDiagnosticsMXBean
INSTANCE
The instance.
-
Constructor Summary
Constructors Constructor Description CmsDiagnosticsMXBean()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
listActiveRequests()
Contains a textual representation of the current requests running in the OpenCmsServlet.static void
register()
Registers an MBean of this class.
-
-
-
Field Detail
-
INSTANCE
public static final CmsDiagnosticsMXBean INSTANCE
The instance.
-
-
Constructor Detail
-
CmsDiagnosticsMXBean
public CmsDiagnosticsMXBean()
-
-
Method Detail
-
register
public static void register() throws java.lang.Exception
Registers an MBean of this class.- Throws:
java.lang.Exception
- if registration fails
-
listActiveRequests
public java.lang.String listActiveRequests()
Description copied from interface:I_CmsDiagnosticsMXBean
Contains a textual representation of the current requests running in the OpenCmsServlet.For each request, a line of text containing the thread id of the thread handling the request, the request URL, and the current runtime is produced. They look like this:
(#67) http://www.adfasdfasdf.com 33333
- Specified by:
listActiveRequests
in interfaceI_CmsDiagnosticsMXBean
- Returns:
- a textual representation of the current requests in the OpenCmsServlet
- See Also:
I_CmsDiagnosticsMXBean.listActiveRequests()
-
-