net.dpml.transit.monitor
Interface Adapter

All Superinterfaces:
Logger
All Known Implementing Classes:
AntAdapter, LoggingAdapter

public interface Adapter
extends Logger

Utility interface defining a monitor adapter. The contract defines a set of operations dealing with the notification of debug, info and error messages, together with and operation supporting the construction of a messages dedicated to a download action.

Version:
1.0.1
Author:
Digital Product Meta Library

Method Summary
 void notify(URL resource, int expected, int count)
          Hnadle download notification.
 
Methods inherited from interface net.dpml.util.Logger
debug, error, error, getChildLogger, info, isDebugEnabled, isErrorEnabled, isInfoEnabled, isTraceEnabled, isWarnEnabled, trace, warn, warn
 

Method Detail

notify

public void notify(URL resource,
                   int expected,
                   int count)
Hnadle download notification.

Parameters:
resource - the resource under attention
expected - the estimated download size
count - the progress towards expected