|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.util.TimerTask
org.jppf.node.idle.IdleDetectionTask
public class IdleDetectionTask
Timer tasks that displays a message whenever the computer has received no mouse or keyboard input for at least the timeout time.
| Constructor Summary | |
|---|---|
IdleDetectionTask(IdleTimeDetectorFactory factory,
long idleTimeout,
IdleStateListener... initialListeners)
Initialize this task with the specified idle timeout and listeners. |
|
| Method Summary | |
|---|---|
void |
addIdleStateListener(IdleStateListener listener)
Add a listener to the list of listeners. |
IdleState |
getState()
Get the idle state of the system, as specified by the idle timeout. |
void |
removeIdleStateListener(IdleStateListener listener)
Remove a listener from the list of listeners. |
void |
run()
|
| Methods inherited from class java.util.TimerTask |
|---|
cancel, scheduledExecutionTime |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IdleDetectionTask(IdleTimeDetectorFactory factory,
long idleTimeout,
IdleStateListener... initialListeners)
factory - a factory for creating IdleTimeDetector instances.idleTimeout - the time of inactivity after which the system is considered idle, in milliseconds.initialListeners - a set of listeners to add to this task at construction time.| Method Detail |
|---|
public void run()
run in interface Runnablerun in class TimerTaskpublic IdleState getState()
IdleState enum value.public void addIdleStateListener(IdleStateListener listener)
listener - the listener to add.public void removeIdleStateListener(IdleStateListener listener)
listener - the listener to remove.
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||