org.jppf.client.loadbalancer
Class LoadBalancer.ExecutionThread
java.lang.Object
java.lang.Thread
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.
| 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 |
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.
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.
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.