Class SimpleRSProcedureManager.SimpleSubprocedurePool
java.lang.Object
org.apache.hadoop.hbase.procedure.SimpleRSProcedureManager.SimpleSubprocedurePool
- All Implemented Interfaces:
Closeable,AutoCloseable,org.apache.hadoop.hbase.Abortable
- Enclosing class:
- SimpleRSProcedureManager
public static class SimpleRSProcedureManager.SimpleSubprocedurePool
extends Object
implements Closeable, org.apache.hadoop.hbase.Abortable
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSimpleSubprocedurePool(String name, org.apache.hadoop.conf.Configuration conf) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidclose()Attempt to cleanly shutdown any running tasks - allows currently running tasks to cleanly finishbooleanvoidsubmitTask(Callable<Void> task) Submit a task to the pool.booleanWait for all of the currently outstanding tasks submitted viasubmitTask(Callable)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.hadoop.hbase.Abortable
abort
-
Field Details
-
taskPool
-
executor
-
aborted
-
futures
-
name
-
-
Constructor Details
-
SimpleSubprocedurePool
-
-
Method Details
-
submitTask
Submit a task to the pool. -
waitForOutstandingTasks
public boolean waitForOutstandingTasks() throws org.apache.hadoop.hbase.errorhandling.ForeignExceptionWait for all of the currently outstanding tasks submitted viasubmitTask(Callable)- Returns:
- true on success, false otherwise
- Throws:
org.apache.hadoop.hbase.errorhandling.ForeignException
-
close
Attempt to cleanly shutdown any running tasks - allows currently running tasks to cleanly finish- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
abort
- Specified by:
abortin interfaceorg.apache.hadoop.hbase.Abortable
-
isAborted
- Specified by:
isAbortedin interfaceorg.apache.hadoop.hbase.Abortable
-