|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Monitor
Transit event monitor.
| Method Summary | |
|---|---|
void |
addedToLocalCache(URL resource,
File localFile)
Notify the monitor that an artifact has been added to the local cache. |
void |
failedDownload(Artifact artifact)
Notify the monitor of a failed download attempt. |
void |
failedDownloadFromHost(String host,
Artifact artifact,
Throwable cause)
Notify the monitor of a failed download attempt relative to an identified host. |
void |
notifyCompletion(URL resource)
Notify the monitor of the successful completion of a download process. |
void |
notifyUpdate(URL resource,
int expected,
int count)
Notify the monitor of the update in the download status. |
void |
removedFromLocalCache(URL resource,
File localFile)
Notify the monitor that an artifact has been removed from the local cache. |
void |
resourceRequested(Artifact artifact)
Notify the monitor that an artifact has been requested. |
void |
updatedLocalCache(URL resource,
File localFile)
Notify the monitor that an artifact in the local cache has been updated. |
| Method Detail |
|---|
void resourceRequested(Artifact artifact)
artifact - the requested artifact
void addedToLocalCache(URL resource,
File localFile)
resource - the url of the resource added to the local cachelocalFile - the local file resident in the cache
void updatedLocalCache(URL resource,
File localFile)
resource - the url of the resource updating the local cachelocalFile - the local file that has been updated
void removedFromLocalCache(URL resource,
File localFile)
resource - the url of the resource removed from the local cachelocalFile - the local file removed from the cache
void failedDownloadFromHost(String host,
Artifact artifact,
Throwable cause)
host - the host raising the fail statusartifact - the requested artifactcause - the exception causing the failurevoid failedDownload(Artifact artifact)
artifact - the requested artifact
void notifyUpdate(URL resource,
int expected,
int count)
resource - the name of the remote resource being downloaded.expected - the expected number of bytes to be downloaded.count - the number of bytes downloaded.void notifyCompletion(URL resource)
resource - the name of the remote resource.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||