@LimitedPrivate({"HDFS","MapReduce"})
@Unstable
public class AsyncDiskService
extends java.lang.Object
| Modifier and Type | Field | Description |
|---|---|---|
static org.slf4j.Logger |
LOG |
| Constructor | Description |
|---|---|
AsyncDiskService(java.lang.String[] volumes) |
Create a AsyncDiskServices with a set of volumes (specified by their
root directories).
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
awaitTermination(long milliseconds) |
Wait for the termination of the thread pools.
|
void |
execute(java.lang.String root,
java.lang.Runnable task) |
Execute the task sometime in the future, using ThreadPools.
|
void |
shutdown() |
Gracefully start the shut down of all ThreadPools.
|
java.util.List<java.lang.Runnable> |
shutdownNow() |
Shut down all ThreadPools immediately.
|
public AsyncDiskService(java.lang.String[] volumes)
volumes - The roots of the file system volumes.public void execute(java.lang.String root,
java.lang.Runnable task)
root - root.task - task.public void shutdown()
public boolean awaitTermination(long milliseconds)
throws java.lang.InterruptedException
milliseconds - The number of milliseconds to waitjava.lang.InterruptedException - if the thread is interrupted.public java.util.List<java.lang.Runnable> shutdownNow()
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.