Class SystemMonitor
java.lang.Object
org.jpos.q2.QBeanSupport
org.jpos.q2.qbean.SystemMonitor
- All Implemented Interfaces:
Runnable, Configurable, QBean, SystemMonitorMBean, QBeanSupportMBean, QPersist
Periodically dumps Thread and memory usage
- See Also:
-
Field Summary
Fields inherited from class QBeanSupport
cfg, log, scheduledThreadPoolExecutor -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanlongvoidvoidrun()voidvoidsetDetailRequired(boolean detail) voidsetSleepTime(long sleepTime) voidvoidMethods inherited from class QBeanSupport
addAttr, close, createElement, destroy, getAttrs, getAttrs, getConfiguration, getDump, getFactory, getLoader, getLoaderURLS, getLog, getLogger, getName, getPersist, getProperties, getProperty, getRealm, getScheduledThreadPoolExecutor, getServer, getState, getStateAsString, init, isModified, running, setAttr, setLogger, setModified, setName, setPersist, setProperty, setRealm, setServer, setState, start, stopMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface QBeanSupportMBean
getDump, getLoader, getLoaderURLS, getLogger, getName, getRealm, getServer, setLogger, setName, setPersist, setRealm, setServerMethods inherited from interface QPersist
getPersist, isModified
-
Constructor Details
-
SystemMonitor
public SystemMonitor()
-
-
Method Details
-
initService
- Overrides:
initServicein classQBeanSupport
-
startService
- Overrides:
startServicein classQBeanSupport
-
stopService
- Overrides:
stopServicein classQBeanSupport
-
destroyService
- Overrides:
destroyServicein classQBeanSupport- Throws:
InterruptedException
-
setSleepTime
- Specified by:
setSleepTimein interfaceSystemMonitorMBean
-
getSleepTime
- Specified by:
getSleepTimein interfaceSystemMonitorMBean
-
setDetailRequired
- Specified by:
setDetailRequiredin interfaceSystemMonitorMBean
-
getDetailRequired
- Specified by:
getDetailRequiredin interfaceSystemMonitorMBean
-
run
-
setConfiguration
- Specified by:
setConfigurationin interfaceConfigurable- Overrides:
setConfigurationin classQBeanSupport- Parameters:
cfg- Configuration object- Throws:
ConfigurationException
-