public class FwdServerJMX extends FwdJMX
| Modifier and Type | Class and Description |
|---|---|
static class |
FwdServerJMX.Counter
Long values' counter
|
private static class |
FwdServerJMX.Holder
Instance holder (Lazy initialization)
|
static class |
FwdServerJMX.MapCounter
String-long map counter
|
static class |
FwdServerJMX.QueryProfiler
Profiler which is able to count number of cache misses and hits of each executed query
|
static class |
FwdServerJMX.ThreadsCpuTimers
Defines the threads cpu counters.
|
static class |
FwdServerJMX.TimeStat
Time counters
|
| Modifier and Type | Field and Description |
|---|---|
static boolean |
JMX_DEBUG
When
true, enable usage of some MBeans |
private static CentralLogger |
LOG
Logger.
|
| Modifier | Constructor and Description |
|---|---|
private |
FwdServerJMX()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
dumpAll(java.lang.String file)
Print all counters' values to the file.
|
void |
enableAll(boolean val)
Enable/disable all counters
|
static void |
init()
Initialize singleton
|
static void |
register(java.lang.Object mbean,
java.lang.String name)
Register MBean
|
void |
registerMBeans()
Register MBeans
|
void |
resetAll()
Reset all counters
|
getAnnotation, registerMBean, setAnnotationpublic static final boolean JMX_DEBUG
true, enable usage of some MBeansprivate static final CentralLogger LOG
public void registerMBeans()
registerMBeans in class FwdJMXpublic static void init()
public static void register(java.lang.Object mbean,
java.lang.String name)
mbean - MBean to be registeredname - MBean namepublic void dumpAll(java.lang.String file)
throws java.io.IOException
dumpAll in interface FwdJMXMBeandumpAll in class FwdJMXfile - The output file name (will be appended if exists).java.io.IOException - If IO exception occurspublic void resetAll()
resetAll in interface FwdJMXMBeanresetAll in class FwdJMXpublic void enableAll(boolean val)
enableAll in interface FwdJMXMBeanenableAll in class FwdJMXval - new value of the "enable" flag