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
Modifier and TypeFieldDescriptionprivate boolean
private static final String
Maximum number of concurrent snapshot region tasks that can run concurrentlyprivate static final int
private final ThreadPoolExecutor
private static final org.slf4j.Logger
private final String
private final ExecutorCompletionService<Void>
-
Constructor Summary
ConstructorDescriptionLogRollBackupSubprocedurePool
(String name, org.apache.hadoop.conf.Configuration conf) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Abort the server or client.void
close()
Attempt to cleanly shutdown any running tasks - allows currently running tasks to cleanly finishboolean
Check if the server or client was aborted.void
submitTask
(Callable<Void> task) Submit a task to the pool.boolean
Wait 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:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
abort
Description copied from interface:Abortable
Abort the server or client. -
isAborted
Description copied from interface:Abortable
Check if the server or client was aborted.
-