org.jpos.q2.qbean
Class SystemMonitor
java.lang.Object
org.jpos.q2.QBeanSupport
org.jpos.q2.qbean.SystemMonitor
- All Implemented Interfaces:
- Runnable, Configurable, QBean, SystemMonitorMBean, QBeanSupportMBean, QPersist, Loggeable
public class SystemMonitor
- extends QBeanSupport
- implements Runnable, SystemMonitorMBean, Loggeable
Periodically dumps Thread and memory usage
- Version:
- $Id$
- Author:
- apr@cs.com.uy
- See Also:
Logger
| Methods inherited from class org.jpos.q2.QBeanSupport |
addAttr, createElement, destroy, destroyService, getAttrs, getAttrs, getConfiguration, getFactory, getLoader, getLoaderURLS, getLog, getLogger, getName, getPersist, getProperties, getProperty, getRealm, getServer, getState, getStateAsString, init, initService, isModified, running, setAttr, setConfiguration, setLogger, setModified, setName, setPersist, setProperty, setRealm, setServer, setState, shutdownQ2, start, stop |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jpos.q2.QBeanSupportMBean |
getLoader, getLoaderURLS, getLogger, getName, getRealm, getServer, setLogger, setName, setPersist, setRealm, setServer, shutdownQ2 |
SystemMonitor
public SystemMonitor()
startService
public void startService()
- Overrides:
startService in class QBeanSupport
stopService
public void stopService()
- Overrides:
stopService in class QBeanSupport
setSleepTime
public void setSleepTime(long sleepTime)
- Specified by:
setSleepTime in interface SystemMonitorMBean
getSleepTime
public long getSleepTime()
- Specified by:
getSleepTime in interface SystemMonitorMBean
setDetailRequired
public void setDetailRequired(boolean detail)
- Specified by:
setDetailRequired in interface SystemMonitorMBean
getDetailRequired
public boolean getDetailRequired()
- Specified by:
getDetailRequired in interface SystemMonitorMBean
showThreadGroup
public void showThreadGroup(ThreadGroup g,
PrintStream p,
String indent)
run
public void run()
- Specified by:
run in interface Runnable
dump
public void dump(PrintStream p,
String indent)
- Specified by:
dump in interface Loggeable
Copyright © 1998-2012 jPOS.org. All Rights Reserved.