jPOS 1.6.1 API Documentation

org.jpos.q2.qbean
Class SystemMonitor

java.lang.Object
  extended by org.jpos.q2.QBeanSupport
      extended by 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

Field Summary
 
Fields inherited from class org.jpos.q2.QBeanSupport
stateString
 
Fields inherited from interface org.jpos.q2.QBean
DESTROYED, FAILED, STARTED, STARTING, STOPPED, STOPPING
 
Constructor Summary
SystemMonitor()
           
 
Method Summary
 void dump(java.io.PrintStream p, java.lang.String indent)
           
 boolean getDetailRequired()
           
 long getSleepTime()
           
 void run()
           
 void setDetailRequired(boolean detail)
           
 void setSleepTime(long sleepTime)
           
 void showThreadGroup(java.lang.ThreadGroup g, java.io.PrintStream p, java.lang.String indent)
           
 void startService()
           
 void stopService()
           
 
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
 
Methods inherited from interface org.jpos.q2.QBeanSupportMBean
getLoader, getLoaderURLS, getLogger, getName, getServer, setLogger, setName, setPersist, setServer, shutdownQ2
 
Methods inherited from interface org.jpos.q2.QBean
destroy, getState, getStateAsString, init, start, stop
 
Methods inherited from interface org.jpos.q2.QPersist
getPersist, isModified
 

Constructor Detail

SystemMonitor

public SystemMonitor()
Method Detail

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

jPOS.org