Class LogRollBackupSubprocedurePool
java.lang.Object
org.apache.hadoop.hbase.backup.regionserver.LogRollBackupSubprocedurePool
- All Implemented Interfaces:
Closeable,AutoCloseable,Abortable
Handle running each of the individual tasks for completing a backup procedure on a region server.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate static final StringMaximum number of concurrent snapshot region tasks that can run concurrentlyprivate static final intprivate final ThreadPoolExecutorprivate static final org.slf4j.Loggerprivate final Stringprivate final ExecutorCompletionService<Void> -
Constructor Summary
ConstructorsConstructorDescriptionLogRollBackupSubprocedurePool(String name, org.apache.hadoop.conf.Configuration conf) -
Method Summary
Modifier and TypeMethodDescriptionvoidAbort the server or client.voidclose()Attempt to cleanly shutdown any running tasks - allows currently running tasks to cleanly finishbooleanCheck if the server or client was aborted.voidsubmitTask(Callable<Void> task) Submit a task to the pool.booleanWait for all of the currently outstanding tasks submitted viasubmitTask(Callable)
-
Field Details
-
LOG
-
CONCURENT_BACKUP_TASKS_KEY
Maximum number of concurrent snapshot region tasks that can run concurrently- See Also:
-
DEFAULT_CONCURRENT_BACKUP_TASKS
- See Also:
-
taskPool
-
executor
-
aborted
-
futures
-
name
-
-
Constructor Details
-
LogRollBackupSubprocedurePool
-
-
Method Details
-
submitTask
Submit a task to the pool. -
waitForOutstandingTasks
Wait for all of the currently outstanding tasks submitted viasubmitTask(Callable)- Returns:
- true on success, false otherwise
- Throws:
ForeignException- exception
-
close
Attempt to cleanly shutdown any running tasks - allows currently running tasks to cleanly finish- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
abort
Description copied from interface:AbortableAbort the server or client. -
isAborted
Description copied from interface:AbortableCheck if the server or client was aborted.
-