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

Quick Search    Search Deep

edu.emory.mathcs.util.concurrent
Class ThreadUtils.Executioner  view ThreadUtils.Executioner download ThreadUtils.Executioner.java

java.lang.Object
  extended byjava.lang.Thread
      extended byedu.emory.mathcs.util.concurrent.ThreadUtils.Executioner
All Implemented Interfaces:
Callable, java.lang.Runnable
Enclosing class:
ThreadUtils

private static class ThreadUtils.Executioner
extends java.lang.Thread
implements Callable


Nested Class Summary
private static class ThreadUtils.Executioner.Result
           
 
Field Summary
(package private)  java.lang.ThreadDeath cause
           
(package private) static int DESTROY
           
(package private)  boolean done
           
(package private)  java.lang.Thread[] exclude
           
(package private)  int op
           
(package private)  ThreadUtils.Executioner.Result result
           
(package private) static int RESUME
           
(package private) static int STOP
           
(package private) static int SUSPEND
           
(package private)  java.lang.ThreadGroup tg
           
private static java.util.Comparator threadComparator
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
(package private) ThreadUtils.Executioner(java.lang.ThreadGroup tg, int op, java.lang.Thread[] exclude, java.lang.ThreadDeath cause, Callback cb)
           
 
Method Summary
 java.lang.Object call()
          Computes a result, or throws an exception if unable to do so.
static Future doOp(int doWhat, java.lang.ThreadGroup tg, java.lang.Thread[] exclude, java.lang.ThreadDeath cause, Callback cb)
           
private  Future exec()
           
private  void execTGOperation(java.lang.ThreadGroup tg, java.lang.Thread[] exclude, int op)
           
 void run()
          The method of Thread that will be run if there is no Runnable object associated with 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
 

Field Detail

DESTROY

static final int DESTROY
See Also:
Constant Field Values

STOP

static final int STOP
See Also:
Constant Field Values

SUSPEND

static final int SUSPEND
See Also:
Constant Field Values

RESUME

static final int RESUME
See Also:
Constant Field Values

tg

final java.lang.ThreadGroup tg

op

final int op

exclude

final java.lang.Thread[] exclude

done

volatile boolean done

cause

final java.lang.ThreadDeath cause

result

final ThreadUtils.Executioner.Result result

threadComparator

private static java.util.Comparator threadComparator
Constructor Detail

ThreadUtils.Executioner

ThreadUtils.Executioner(java.lang.ThreadGroup tg,
                        int op,
                        java.lang.Thread[] exclude,
                        java.lang.ThreadDeath cause,
                        Callback cb)
Method Detail

doOp

public static Future doOp(int doWhat,
                          java.lang.ThreadGroup tg,
                          java.lang.Thread[] exclude,
                          java.lang.ThreadDeath cause,
                          Callback cb)

exec

private Future exec()

run

public void run()
Description copied from class: java.lang.Thread
The method of Thread that will be run if there is no Runnable object associated with the Thread. Thread's implementation does nothing at all.

Specified by:
run in interface java.lang.Runnable

call

public java.lang.Object call()
                      throws java.lang.InterruptedException
Description copied from interface: Callable
Computes a result, or throws an exception if unable to do so.

Specified by:
call in interface Callable

execTGOperation

private void execTGOperation(java.lang.ThreadGroup tg,
                             java.lang.Thread[] exclude,
                             int op)
                      throws java.lang.InterruptedException