Package org.apache.hadoop.hbase.executor
Class ExecutorService.ExecutorStatus
java.lang.Object
org.apache.hadoop.hbase.executor.ExecutorService.ExecutorStatus
- Enclosing class:
- ExecutorService
A snapshot of the status of a particular executor. This includes the contents of the executor's
pending queue, as well as the threads and events currently being processed. This is a
consistent snapshot that is immutable once constructed.
-
Field Summary
Modifier and TypeFieldDescription(package private) final ExecutorService.Executor
(package private) final List<EventHandler>
(package private) final List<ExecutorService.RunningEventStatus>
-
Constructor Summary
ConstructorDescriptionExecutorStatus
(ExecutorService.Executor executor, List<EventHandler> queuedEvents, List<ExecutorService.RunningEventStatus> running) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Dump a textual representation of the executor's status to the given writer.
-
Field Details
-
executor
-
queuedEvents
-
running
-
-
Constructor Details
-
ExecutorStatus
ExecutorStatus(ExecutorService.Executor executor, List<EventHandler> queuedEvents, List<ExecutorService.RunningEventStatus> running)
-
-
Method Details
-
getQueuedEvents
-
getRunning
-
dumpTo
Dump a textual representation of the executor's status to the given writer.- Parameters:
out
- the stream to write toindent
- a string prefix for each line, used for indentation- Throws:
IOException
-