public class MetricEnabler extends Object implements MetricEnablerMXBean
Modifier and Type | Field and Description |
---|---|
protected org.javasimon.jmx.JmxRegisterCallback |
jmxCB |
protected org.javasimon.utils.LoggingCallback |
lgCB |
protected MetricSerializer |
serializer |
protected MetricSerializingCallback |
srzCB |
Constructor and Description |
---|
MetricEnabler() |
Modifier and Type | Method and Description |
---|---|
void |
disable() |
void |
disableLogging() |
void |
disableSerializing() |
void |
enable() |
void |
enableLogging() |
void |
enableSerializing() |
boolean |
isEnabled() |
boolean |
isLogging() |
boolean |
isSerializing() |
protected void |
setSerializer(MetricSerializer serializer) |
protected MetricSerializer serializer
protected org.javasimon.utils.LoggingCallback lgCB
protected final org.javasimon.jmx.JmxRegisterCallback jmxCB
protected MetricSerializingCallback srzCB
public MetricEnabler()
protected void setSerializer(MetricSerializer serializer)
public void enable()
enable
in interface MetricEnablerMXBean
public void disable()
disable
in interface MetricEnablerMXBean
public boolean isEnabled()
isEnabled
in interface MetricEnablerMXBean
public void enableLogging()
enableLogging
in interface MetricEnablerMXBean
public void disableLogging()
disableLogging
in interface MetricEnablerMXBean
public boolean isLogging()
isLogging
in interface MetricEnablerMXBean
public void enableSerializing() throws IOException
enableSerializing
in interface MetricEnablerMXBean
IOException
public void disableSerializing() throws IOException
disableSerializing
in interface MetricEnablerMXBean
IOException
public boolean isSerializing()
isSerializing
in interface MetricEnablerMXBean
Copyright © 2016 Nuxeo SA. All rights reserved.