|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CacheMonitor
A monitor of a Transit cache activity.
The CacheMonitor must be thread safe.
Monitor
Field Summary |
---|
Fields inherited from interface net.dpml.transit.monitor.Monitor |
---|
BOOTSTRAP_DEBUG_KEY |
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 |
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 artifactvoid addedToLocalCache(URL resource, File localFile)
resource
- the url of the resource added to the local cachelocalFile
- the local file resident in the cachevoid updatedLocalCache(URL resource, File localFile)
resource
- the url of the resource updating the local cachelocalFile
- the local file that has been updatedvoid removedFromLocalCache(URL resource, File localFile)
resource
- the url of the resource removed from the local cachelocalFile
- the local file removed from the cachevoid 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |