Package org.jolokia.server.core.backend
Class Config
java.lang.Object
org.jolokia.server.core.backend.Config
- All Implemented Interfaces:
MBeanRegistration,ConfigMBean
MBean for exporting various configuration tuning opportunities
to the outside world.
- Since:
- Jun 12, 2009
- Author:
- roland
-
Field Summary
Fields inherited from interface org.jolokia.server.core.backend.ConfigMBean
OBJECT_NAME -
Constructor Summary
ConstructorsConstructorDescriptionConfig(DebugStore pDebugStore, String pOName) Constructor with the configurable objects as parameters. -
Method Summary
Modifier and TypeMethodDescriptionGet latest debug information if debugging is switched on.intNumber of debug entries to rememberbooleanisDebug()Check, whether debugging is switched onvoidvoidpostRegister(Boolean registrationDone) voidpreRegister(MBeanServer server, ObjectName name) voidReset all debug information stored internallyvoidsetDebug(boolean pSwitch) Set debugging to given statevoidsetMaxDebugEntries(int pNumber) Set the number of debugging info to remember
-
Constructor Details
-
Config
Constructor with the configurable objects as parameters.- Parameters:
pDebugStore- debug store for holding debug messagespOName- object name under which to register this MBean
-
-
Method Details
-
debugInfo
Get latest debug information if debugging is switched on. The returned output will not take more thanConfigMBean.getMaxDebugEntries()lines.- Specified by:
debugInfoin interfaceConfigMBean- Returns:
- debug info in plain ascii.
-
resetDebugInfo
public void resetDebugInfo()Reset all debug information stored internally- Specified by:
resetDebugInfoin interfaceConfigMBean
-
isDebug
public boolean isDebug()Check, whether debugging is switched on- Specified by:
isDebugin interfaceConfigMBean- Returns:
- state of debugging
-
setDebug
public void setDebug(boolean pSwitch) Set debugging to given state- Specified by:
setDebugin interfaceConfigMBean- Parameters:
pSwitch- true, if debugging should be switched on, false otherwise
-
getMaxDebugEntries
public int getMaxDebugEntries()Number of debug entries to remember- Specified by:
getMaxDebugEntriesin interfaceConfigMBean- Returns:
- number of debug entries
-
setMaxDebugEntries
public void setMaxDebugEntries(int pNumber) Set the number of debugging info to remember- Specified by:
setMaxDebugEntriesin interfaceConfigMBean- Parameters:
pNumber- entries to set
-
preRegister
public ObjectName preRegister(MBeanServer server, ObjectName name) throws MalformedObjectNameException - Specified by:
preRegisterin interfaceMBeanRegistration- Throws:
MalformedObjectNameException
-
postRegister
- Specified by:
postRegisterin interfaceMBeanRegistration
-
preDeregister
public void preDeregister()- Specified by:
preDeregisterin interfaceMBeanRegistration
-
postDeregister
public void postDeregister()- Specified by:
postDeregisterin interfaceMBeanRegistration
-