public class DirectoryReader extends Task.OnFile<DirectoryReader.Result,AccessDeniedException>
| Modifier and Type | Class and Description |
|---|---|
static class |
DirectoryReader.ListSubDirectories
Task to list only sub-directories.
|
static class |
DirectoryReader.Request
Request specifying which information to retrieve on each element contained in the directory.
|
static class |
DirectoryReader.Result
Result.
|
Task.OnFile.Parameter<TParam,TResult,TError extends Exception>| Modifier and Type | Field and Description |
|---|---|
protected File |
dir |
protected WorkProgress |
progress |
protected DirectoryReader.Request |
request |
NB_PRIORITES, PRIORITY_BACKGROUND, PRIORITY_IMPORTANT, PRIORITY_LOW, PRIORITY_NORMAL, PRIORITY_RATHER_IMPORTANT, PRIORITY_RATHER_LOW, PRIORITY_TOP, PRIORITY_URGENT, STATUS_BLOCKED, STATUS_DONE, STATUS_EXECUTED, STATUS_NOT_STARTED, STATUS_RUNNING, STATUS_STARTED_READY, STATUS_STARTED_WAITING, taskJoin| Constructor and Description |
|---|
DirectoryReader(File dir,
byte priority,
DirectoryReader.Request request)
Constructor.
|
DirectoryReader(File dir,
byte priority,
DirectoryReader.Request request,
WorkProgress progress)
Constructor.
|
DirectoryReader(TaskManager taskManager,
File dir,
byte priority,
DirectoryReader.Request request)
Constructor.
|
DirectoryReader(TaskManager taskManager,
File dir,
byte priority,
DirectoryReader.Request request,
WorkProgress progress)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
File |
getDirectory() |
DirectoryReader.Result |
run()
Method to implement to execute the task.
|
cancel, cancelIfExecutionNotStarted, changeNextExecutionTime, ensureUnblocked, executeAgainAt, executeAgainIn, executeAt, executeEvery, executeIn, executeNextOccurenceNow, executeNextOccurenceNow, getApplication, getCancelEvent, getDescription, getError, getMaxBlockingTimeInNanoBeforeToLog, getOutput, getPriority, getResult, getStatus, getTaskManager, hasError, isCancelled, isCancelling, isDone, isRunning, isStarted, isSuccessful, ondone, setDescription, setDone, setError, setPriority, start, startOn, startOn, startOnDone, stopRepeat, toStringprotected File dir
protected DirectoryReader.Request request
protected WorkProgress progress
public DirectoryReader(TaskManager taskManager, File dir, byte priority, DirectoryReader.Request request, WorkProgress progress)
public DirectoryReader(File dir, byte priority, DirectoryReader.Request request, WorkProgress progress)
public DirectoryReader(TaskManager taskManager, File dir, byte priority, DirectoryReader.Request request)
public DirectoryReader(File dir, byte priority, DirectoryReader.Request request)
public File getDirectory()
public DirectoryReader.Result run() throws AccessDeniedException
Taskrun in class Task<DirectoryReader.Result,AccessDeniedException>AccessDeniedExceptionCopyright © 2019. All rights reserved.