org.illeva.jordino.core
Class WatchDog

java.lang.Object
  extended byjava.lang.Thread
      extended byorg.illeva.jordino.core.WatchDog
All Implemented Interfaces:
java.lang.Runnable

public class WatchDog
extends java.lang.Thread

This thread listen the pop look for incoming messages.


Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
WatchDog(MessageQueue aQueue)
          Builds a Watchdog object.
 
Method Summary
 boolean getSemaphore()
          Return a boolean to indicate if the thread is running.
 int getStatus()
          Return the status of object.
 void run()
          Thread at work.
 void setSemaphore(boolean aFlag)
          Set the boolean flag to start or stop the thread.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WatchDog

public WatchDog(MessageQueue aQueue)
Builds a Watchdog object.

Since:
Jordino Version 1.0
Method Detail

getStatus

public int getStatus()
Return the status of object.

Since:
Jordino Version 1.0

getSemaphore

public boolean getSemaphore()
Return a boolean to indicate if the thread is running.

Since:
Jordino Version 1.0

setSemaphore

public void setSemaphore(boolean aFlag)
Set the boolean flag to start or stop the thread.

Since:
Jordino Version 1.0

run

public void run()
Thread at work.

Since:
Jordino Version 1.0