de.phleisch.app.itsucks.job.download
Interface DownloadJob

All Superinterfaces:
Job
All Known Implementing Classes:
UrlDownloadJob

public interface DownloadJob
extends Job


Field Summary
 
Fields inherited from interface de.phleisch.app.itsucks.job.Job
JOB_PRIORITY_PROPERTY, JOB_STATE_PROPERTY, MAX_PRIORITY, MIN_PRIORITY, STATE_ALREADY_PROCESSED, STATE_ASSIGNED, STATE_CLOSED, STATE_ERROR, STATE_FAILED, STATE_FINISHED, STATE_IGNORED, STATE_IN_PROGRESS, STATE_IN_PROGRESS_RETRY, STATE_OPEN, STATE_REOPEN
 
Method Summary
 long getBytesDownloaded()
          Returns the count of bytes which are downloaded
 DataRetriever getDataRetriever()
           
 int getDepth()
          Gets the recursive depth of the job.
 int getMaxRetryCount()
          Returns the maximum count of retries when an retryable error occurs.
 Metadata getMetadata()
          Gets the metadata of the data retriever.
 float getProgress()
          Returns the current download progress.
 int getRetryCount()
          Returns the actual retry count.
 java.io.File getSavePath()
          Returns the base save path for saving downloaded files.
 boolean isSaveToDisk()
           
 
Methods inherited from interface de.phleisch.app.itsucks.job.Job
abort, addPropertyChangeListener, getGroupContext, getId, getJobManager, getName, getParameter, getParameterList, getPriority, getState, isClosed, isIgnoreFilter, removePropertyChangeListener, run, setGroupContext, setId, setIgnoreFilter, setJobManager, setName, setParameter, setPriority, setState
 

Method Detail

getDepth

int getDepth()
Gets the recursive depth of the job.

Returns:

isSaveToDisk

boolean isSaveToDisk()
Returns:
true if this file should be saved as file.

getSavePath

java.io.File getSavePath()
Returns the base save path for saving downloaded files.

Returns:

getDataRetriever

DataRetriever getDataRetriever()
Returns:
the data retriever used to download from the url.

getProgress

float getProgress()
Returns the current download progress.

Returns:

getMaxRetryCount

int getMaxRetryCount()
Returns the maximum count of retries when an retryable error occurs.

Returns:

getRetryCount

int getRetryCount()
Returns the actual retry count.

Returns:

getBytesDownloaded

long getBytesDownloaded()
Returns the count of bytes which are downloaded

Returns:

getMetadata

Metadata getMetadata()
Gets the metadata of the data retriever.

Returns:


Copyright © 2010. All Rights Reserved.