Extension SDK

oracle.ide.util
Class MonitorThread

java.lang.Object
  extended byoracle.ide.util.MonitorThread

public class MonitorThread
extends java.lang.Object

The MonitorThread class. Use this class when you need to continuously monitor some activity or when you need to countinously carry out some task.


Nested Class Summary
static interface MonitorThread.MonitorListener
          Implement this interface so that the MonitorThread let's you do the actual monitoring or carrying out a task.
 
Constructor Summary
MonitorThread()
           
 
Method Summary
 void finish()
          Call this method when you want to stop the monitor.
 int getInterval()
          Gets the interval of time between calls to the MonitorListener monitor method.
 void monitorObject(java.lang.Object object, MonitorThread.MonitorListener listener)
          Call this method to specified the object that you want to monitor.
 void setInterval(int interval)
          Sets the interval of time between calls to the MonitorListener monitor method.
 void start()
          Call this method to start monitoring.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MonitorThread

public MonitorThread()
Method Detail

monitorObject

public void monitorObject(java.lang.Object object,
                          MonitorThread.MonitorListener listener)
Call this method to specified the object that you want to monitor. The lisneter.monitor() method will be called and passed the given object.


finish

public void finish()
Call this method when you want to stop the monitor.


getInterval

public int getInterval()
Gets the interval of time between calls to the MonitorListener monitor method. The default interval is 2000 ms.


setInterval

public void setInterval(int interval)
Sets the interval of time between calls to the MonitorListener monitor method.


start

public void start()
Call this method to start monitoring.


Extension SDK

 

Copyright ©1997, 2003, Oracle. All rights reserved.