public class SimpleRSProcedureManager.SimpleSubprocedurePool extends Object implements Closeable, Abortable
Constructor and Description |
---|
SimpleSubprocedurePool(String name,
Configuration conf) |
Modifier and Type | Method and Description |
---|---|
void |
abort(String why,
Throwable e)
Abort the server or client.
|
void |
close()
Attempt to cleanly shutdown any running tasks - allows currently running tasks to cleanly
finish
|
boolean |
isAborted()
Check if the server or client was aborted.
|
void |
submitTask(Callable<Void> task)
Submit a task to the pool.
|
boolean |
waitForOutstandingTasks()
Wait for all of the currently outstanding tasks submitted via
submitTask(Callable) |
public SimpleSubprocedurePool(String name, Configuration conf)
public boolean waitForOutstandingTasks() throws ForeignException
submitTask(Callable)
ForeignException
public void close()
close
in interface Closeable
close
in interface AutoCloseable
public void abort(String why, Throwable e)
Abortable