|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use TaskController | |
|---|---|
| edu.rice.cs.plt.concurrent | Contains tools to support safe multi-threaded programs. |
| edu.rice.cs.plt.swing | |
| Uses of TaskController in edu.rice.cs.plt.concurrent |
|---|
| Subclasses of TaskController in edu.rice.cs.plt.concurrent | |
|---|---|
class |
ExecutorIncrementalTaskController<I,R>
A TaskController for an IncrementalTask, which is scheduled for execution by an Executor. |
class |
ExecutorTaskController<R>
A TaskController for a simple task, which is scheduled for execution by an Executor. |
class |
FutureTaskController<T>
Treats an arbitrary Future-producing computation as a TaskController. |
class |
IncrementalTaskController<I,R>
Provides access to a concurrent task that produces incremental results. |
class |
PollingTaskController<R>
A TaskController for tasks that are run without any facility for executing code when the task is complete — instead, the controller must either block, poll for the task's current status. |
class |
ProcessIncrementalTaskController<I,R>
A TaskController that executes an IncrementalTask in another Java process. |
class |
ProcessTaskController<R>
A TaskController that executes a simple task in another Java process. |
| Methods in edu.rice.cs.plt.concurrent that return TaskController | ||
|---|---|---|
static
|
ConcurrentUtil.asTaskController(Future<? extends T> future)
Wrap a Future in a TaskController interface (which is also a Thunk). |
|
static
|
ConcurrentUtil.asTaskController(Thunk<? extends Future<? extends T>> futureThunk)
Wrap a Future produced by a Thunk in a TaskController interface (which is also a Thunk). |
|
static
|
ConcurrentUtil.computeInProcess(Thunk<? extends R> task)
Execute the given task in a separate process and provide access to its result. |
|
static
|
ConcurrentUtil.computeInProcess(Thunk<? extends R> task,
boolean start)
Execute the given task in a separate process and provide access to its result. |
|
static
|
ConcurrentUtil.computeInProcess(Thunk<? extends R> task,
JVMBuilder jvmBuilder)
Execute the given task in a separate process and provide access to its result. |
|
static
|
ConcurrentUtil.computeInProcess(Thunk<? extends R> task,
JVMBuilder jvmBuilder,
boolean start)
Execute the given task in a separate process and provide access to its result. |
|
static
|
ConcurrentUtil.computeInThread(Thunk<? extends R> task)
Execute the given task in a separate thread, and provide access to its result. |
|
static
|
ConcurrentUtil.computeInThread(Thunk<? extends R> task,
boolean start)
Execute the given task in a separate thread, and provide access to its result. |
|
static
|
ConcurrentUtil.computeWithExecutor(Thunk<? extends R> task,
Executor exec)
Execute the given task with exec and provide access to its result. |
|
static
|
ConcurrentUtil.computeWithExecutor(Thunk<? extends R> task,
Executor exec,
boolean start)
Execute the given task with exec and provide access to its result. |
|
static TaskController<String> |
ConcurrentUtil.processErrAsString(Process p)
Create a task providing access to the given process's error output as a string. |
|
static TaskController<String> |
ConcurrentUtil.processErrAsString(Process p,
Executor exec)
Create a task providing access to the given process's error output as a string. |
|
static TaskController<String> |
ConcurrentUtil.processOutAsString(Process p)
Create a task providing access to the given process's standard output as a string. |
|
static TaskController<String> |
ConcurrentUtil.processOutAsString(Process p,
Executor exec)
Create a task providing access to the given process's standard output as a string. |
|
static TaskController<Void> |
ConcurrentUtil.runInThread(Runnable task)
Execute the given task in a separate thread, and provide access to its result. |
|
static TaskController<Void> |
ConcurrentUtil.runInThread(Runnable task,
boolean start)
Execute the given task in a separate thread, and provide access to its result. |
|
| Uses of TaskController in edu.rice.cs.plt.swing |
|---|
| Subclasses of TaskController in edu.rice.cs.plt.swing | |
|---|---|
class |
SwingWorker<R,I>
A utility class providing the core functionality of javax.swing.SwingWorker (first available
in Java 6), in addition to supporting the IncrementalTaskController interface. |
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||