|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.util.AsyncDiskService
public class AsyncDiskService
| Field Summary | |
|---|---|
static org.apache.commons.logging.Log |
LOG
|
| Constructor Summary | |
|---|---|
AsyncDiskService(String[] volumes)
Create a AsyncDiskServices with a set of volumes (specified by their root directories). |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final org.apache.commons.logging.Log LOG
| Constructor Detail |
|---|
public AsyncDiskService(String[] volumes)
throws IOException
volumes - The roots of the file system volumes.
IOException| Method Detail |
|---|
public void execute(String root,
Runnable task)
public void shutdown()
public boolean awaitTermination(long milliseconds)
throws InterruptedException
milliseconds - The number of milliseconds to wait
InterruptedExceptionpublic List<Runnable> shutdownNow()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||