org.jpos.q2.qbean
Class SystemMonitor
java.lang.Object
org.jpos.q2.QBeanSupport
org.jpos.q2.qbean.SystemMonitor
- All Implemented Interfaces:
- java.lang.Runnable, Configurable, QBean, SystemMonitorMBean, QBeanSupportMBean, QPersist, Loggeable
public class SystemMonitor
- extends QBeanSupport
- implements java.lang.Runnable, SystemMonitorMBean, Loggeable
Periodically dumps Thread and memory usage
- Version:
- $Id: SystemMonitor.java 2602 2008-02-04 13:31:40Z apr $
- Author:
- apr@cs.com.uy
- See Also:
Logger
| Methods inherited from class org.jpos.q2.QBeanSupport |
destroy, getConfiguration, getFactory, getLoader, getLoaderURLS, getLog, getLogger, getName, getPersist, getServer, getState, getStateAsString, init, isModified, running, setConfiguration, setLogger, setModified, setName, setPersist, setServer, setState, shutdownQ2, start, stop |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SystemMonitor
public SystemMonitor()
startService
public void startService()
stopService
public void stopService()
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(java.lang.ThreadGroup g,
java.io.PrintStream p,
java.lang.String indent)
run
public void run()
- Specified by:
run in interface java.lang.Runnable
dump
public void dump(java.io.PrintStream p,
java.lang.String indent)
- Specified by:
dump in interface Loggeable