net.dpml.transit.monitor
Interface NetworkMonitor
- All Superinterfaces:
- Monitor
- All Known Implementing Classes:
- NetworkMonitorAdapter, NetworkMonitorRouter
- public interface NetworkMonitor
- extends Monitor
A monitor of a download activity or activities.
- Version:
- 1.0.1
- Author:
- Digital Product Meta Library
- See Also:
Monitor
Method Summary |
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. |
notifyUpdate
public void notifyUpdate(URL resource,
int expected,
int count)
- Notify the monitor of the update in the download status.
- Parameters:
resource
- the name of the remote resource being downloaded.expected
- the expected number of bytes to be downloaded.count
- the number of bytes downloaded.
notifyCompletion
public void notifyCompletion(URL resource)
- Notify the monitor of the successful completion of a download
process.
- Parameters:
resource
- the name of the remote resource.