public class FileDownloadStatus
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static byte |
blockComplete
When the task on
blockComplete status, it means that the task has been completed
downloading successfully. |
static byte |
completed
When the task on
completed status, it means that the task is completed downloading
successfully. |
static byte |
connected
When the task on
connected status, it means that the task is successfully connected
to the back-end. |
static byte |
error
When the task on
error status, it means that the task must occur some error and there
isn't any valid chance to retry, so the task is finished with error. |
static byte |
INVALID_STATUS
When the task on
INVALID_STATUS status, it means that the task is IDLE. |
static byte |
paused
When the task on
paused status, it means that the task is paused manually. |
static byte |
pending
When the task on
pending status, it means that the task is in the list on the
FileDownloadService and just waiting for start. |
static byte |
progress
When the task on
progress status, it means that the task is fetching data from the
back-end. |
static byte |
retry
When the task on
retry status, it means that the task must occur some error, but
there is a valid chance to retry, so the task is retry to download again. |
static byte |
started
When the task on
started status, it means that the network access thread of
downloading this task is started. |
static byte |
toFileDownloadService
When the task on
toFileDownloadService status, it means that the task is just post to
the FileDownloadService. |
static byte |
toLaunchPool
When the task on
toLaunchPool status, it means that the task is just into the
LaunchPool and is scheduled for launch. |
static byte |
warn
When the task on
warn status, it means that there is another same task(same url,
same path to store content) is running. |
| Constructor and Description |
|---|
FileDownloadStatus() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isIng(int status) |
static boolean |
isKeepAhead(int status,
int nextStatus) |
static boolean |
isKeepFlow(int status,
int nextStatus) |
static boolean |
isMoreLikelyCompleted(BaseDownloadTask task) |
static boolean |
isOver(int status) |
public static final byte toLaunchPool
toLaunchPool status, it means that the task is just into the
LaunchPool and is scheduled for launch.
The task is scheduled for launch and it isn't on the FileDownloadService yet.
public static final byte toFileDownloadService
toFileDownloadService status, it means that the task is just post to
the FileDownloadService.
The task is posting to the FileDownloadService and after this status, this task can start.
public static final byte pending
pending status, it means that the task is in the list on the
FileDownloadService and just waiting for start.
The task is waiting on the FileDownloadService.
The count of downloading simultaneously, you can configure in filedownloader.properties.
public static final byte started
started status, it means that the network access thread of
downloading this task is started.
The task is downloading on the FileDownloadService.
public static final byte connected
connected status, it means that the task is successfully connected
to the back-end.
The task is downloading on the FileDownloadService.
public static final byte progress
progress status, it means that the task is fetching data from the
back-end.
The task is downloading on the FileDownloadService.
public static final byte blockComplete
blockComplete status, it means that the task has been completed
downloading successfully.
The task is completed downloading successfully and the action-flow is blocked for doing something before callback completed method.
public static final byte retry
retry status, it means that the task must occur some error, but
there is a valid chance to retry, so the task is retry to download again.
The task is restarting on the FileDownloadService.
public static final byte error
error status, it means that the task must occur some error and there
isn't any valid chance to retry, so the task is finished with error.
The task is finished with an error.
public static final byte paused
paused status, it means that the task is paused manually.
The task is finished with the pause action.
public static final byte completed
completed status, it means that the task is completed downloading
successfully.
The task is finished with completed downloading successfully.
public static final byte warn
warn status, it means that there is another same task(same url,
same path to store content) is running.
The task is finished with the warn status.
public static final byte INVALID_STATUS
INVALID_STATUS status, it means that the task is IDLE.
The task is clear and it isn't launched.
public static boolean isOver(int status)
public static boolean isIng(int status)
public static boolean isKeepAhead(int status,
int nextStatus)
public static boolean isKeepFlow(int status,
int nextStatus)
public static boolean isMoreLikelyCompleted(BaseDownloadTask task)