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