org.jpos.util
Class SystemMonitor
java.lang.Object
org.jpos.util.SystemMonitor
- All Implemented Interfaces:
- Runnable, Loggeable, LogSource
public class SystemMonitor
- extends Object
- implements Runnable, LogSource, Loggeable
Periodically dumps Thread and memory usage
- Version:
- $Id$
- Author:
- apr@cs.com.uy
- See Also:
Logger
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SystemMonitor
public SystemMonitor()
- noargs constructor
SystemMonitor
public SystemMonitor(int sleepTime,
Logger logger,
String realm)
- Parameters:
sleepTime - sleeplogger - current loggerrealm - instance realm
setSleepTime
public void setSleepTime(int sleepTime)
- Parameters:
sleepTime - new sleepTime;
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
setLogger
public void setLogger(Logger logger,
String realm)
- Specified by:
setLogger in interface LogSource
getRealm
public String getRealm()
- Specified by:
getRealm in interface LogSource
getLogger
public Logger getLogger()
- Specified by:
getLogger in interface LogSource
Copyright © 1998-2012 jPOS.org. All Rights Reserved.