org.hyperic.hq.common
Class DiagnosticThread
java.lang.Object
org.hyperic.hq.common.DiagnosticThread
- All Implemented Interfaces:
- java.lang.Runnable
public class DiagnosticThread
- extends java.lang.Object
- implements java.lang.Runnable
The DiagnosticThread is a simple object running within the server that
prints diagnostic information to the server log for objects that have been
registered via addDiagnosticObject().
The DiagnosticThread does not start until the first DiagnosticObject has
been added to the list.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getInterval
public long getInterval()
setInterval
public static void setInterval(long interval)
- Set the interval at which the DiagnosticThread will print status info
- Parameters:
interval
- The interval in milliseconds.
XXX -- Technically, access to interval should be synchronized
addDiagnosticObject
public static void addDiagnosticObject(DiagnosticObject o)
getDiagnosticObjects
public static java.util.Collection getDiagnosticObjects()
run
public void run()
- Specified by:
run
in interface java.lang.Runnable
Copyright © 2004-2006 Hyperic, Inc. support@hyperic.net, All Rights Reserved.