|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.dpml.transit.monitor.AbstractAdapter
net.dpml.transit.monitor.NetworkMonitorAdapter
Adapts network events to logging messages.
| Field Summary |
| Fields inherited from interface net.dpml.transit.monitor.Monitor |
BOOTSTRAP_DEBUG_KEY |
| Constructor Summary | |
NetworkMonitorAdapter(Adapter adapter)
Creation of a new network monitor adapter. |
|
| Method Summary | |
protected Adapter |
getAdapter()
Returns the adapter assigned to this adaptive monitor. |
boolean |
isTraceEnabled()
Test is debug trace monitoring is enabled. |
void |
notifyCompletion(URL resource)
Handle the notification of the completion of of download process. |
void |
notifyUpdate(URL resource,
int expected,
int count)
Handle the notification of an update in the download status. |
void |
trace(String message)
Notify the monitor of a trace level message to log. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public NetworkMonitorAdapter(Adapter adapter)
adapter - the logging adapter| Method Detail |
public void notifyUpdate(URL resource,
int expected,
int count)
notifyUpdate in interface NetworkMonitorresource - the name of the remote resource being downloaded.expected - the expected number of bytes to be downloaded.count - the number of bytes downloaded.public void notifyCompletion(URL resource)
notifyCompletion in interface NetworkMonitorresource - the url of the completed resourcepublic boolean isTraceEnabled()
public void trace(String message)
message - the trace level message to logprotected Adapter getAdapter()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||