org.jppf.client.loadbalancer
Class LoadBalancer.ExecutionThread

java.lang.Object
  extended by java.lang.Thread
      extended by org.jppf.client.loadbalancer.LoadBalancer.ExecutionThread
All Implemented Interfaces:
Runnable
Direct Known Subclasses:
LoadBalancer.LocalExecutionThread, LoadBalancer.RemoteExecutionThread
Enclosing class:
LoadBalancer

public abstract class LoadBalancer.ExecutionThread
extends Thread

Instances of this class are intended to perform local and remote task executions concurrently.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
protected  Exception exception
          Exception that may result from the execution.
protected  JPPFJob job
          The execution to perform.
protected  List<JPPFTask> tasks
          The tasks to execute.
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
LoadBalancer.ExecutionThread(List<JPPFTask> tasks, JPPFJob job)
          Initialize this execution thread for remote excution.
 
Method Summary
 Exception getException()
          Get the resulting exception.
abstract  void run()
          Perform the execution.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

tasks

protected List<JPPFTask> tasks
The tasks to execute.


exception

protected Exception exception
Exception that may result from the execution.


job

protected JPPFJob job
The execution to perform.

Constructor Detail

LoadBalancer.ExecutionThread

public LoadBalancer.ExecutionThread(List<JPPFTask> tasks,
                                    JPPFJob job)
Initialize this execution thread for remote excution.

Parameters:
tasks - the tasks to execute.
job - the execution to perform.
Method Detail

run

public abstract void run()
Perform the execution.

Specified by:
run in interface Runnable
Overrides:
run in class Thread
See Also:
Runnable.run()

getException

public Exception getException()
Get the resulting exception.

Returns:
an Exception or null if no exception was raised.


Copyright © 2005-2010 JPPF Team.