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
-
Constructor Summary
ConstructorDescriptionSimpleSubprocedurePool
(String name, org.apache.hadoop.conf.Configuration conf) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
close()
Attempt to cleanly shutdown any running tasks - allows currently running tasks to cleanly finishboolean
void
submitTask
(Callable<Void> task) Submit a task to the pool.boolean
Wait 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, wait
Methods 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:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
abort
- Specified by:
abort
in interfaceorg.apache.hadoop.hbase.Abortable
-
isAborted
- Specified by:
isAborted
in interfaceorg.apache.hadoop.hbase.Abortable
-