Hyperic HQ Plugin API v. 4.4.0.2

org.hyperic.hq.common
Class DiagnosticThread

java.lang.Object
  extended by 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.


Method Summary
static void addDiagnosticObject(DiagnosticObject o)
           
static java.util.Collection getDiagnosticObjects()
           
 long getInterval()
           
 void run()
           
static void setInterval(long interval)
          Set the interval at which the DiagnosticThread will print status info
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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

Hyperic HQ Plugin API v. 4.4.0.2

Copyright © 2004-2006 Hyperic, Inc. support@hyperic.net, All Rights Reserved.