|
Extension SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.ide.util.MonitorThread
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 |
public MonitorThread()
Method Detail |
public void monitorObject(java.lang.Object object, MonitorThread.MonitorListener listener)
object
that you want
to monitor. The lisneter.monitor()
method will be called
and passed the given object
.
public void finish()
public int getInterval()
MonitorListener
monitor method. The default interval is 2000 ms.
public void setInterval(int interval)
MonitorListener
monitor method.
public void start()
|
Extension SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright ©1997, 2003, Oracle. All rights reserved.