Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.altara.mars.engine
Class ProbeWorker  view ProbeWorker download ProbeWorker.java

java.lang.Object
  extended byjava.lang.Thread
      extended byorg.altara.util.Worker
          extended byorg.altara.mars.engine.ProbeWorker
All Implemented Interfaces:
java.lang.Runnable

public class ProbeWorker
extends org.altara.util.Worker

This worker runs Probes in a circular queue. Each Probe is checked to see if it's ready to run and is placed back into the queue. ProbeWorker runs at a fairly low priority and yields often, so as not to interfere with interactive tasks.


Field Summary
private  Controller controller
           
private static int nxid
           
private static int PW_PRIO
           
private static int SPIN_DELAY
           
private  int spincount
           
 
Fields inherited from class org.altara.util.Worker
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ProbeWorker(Controller controller)
           
 
Method Summary
protected  void work()
           
protected  void workExit()
           
 
Methods inherited from class org.altara.util.Worker
kill, lull, run, start, startAsleep, wake, workException
 
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, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PW_PRIO

private static final int PW_PRIO
See Also:
Constant Field Values

SPIN_DELAY

private static final int SPIN_DELAY
See Also:
Constant Field Values

nxid

private static int nxid

controller

private Controller controller

spincount

private int spincount
Constructor Detail

ProbeWorker

public ProbeWorker(Controller controller)
Method Detail

work

protected void work()
             throws java.lang.InterruptedException

workExit

protected void workExit()