|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.dpml.transit.monitor.AbstractAdapter net.dpml.transit.monitor.ConnectionMonitorAdapter
Adapts connection events to logging messages.
The NetworkMonitor must be thread safe.
Monitor
Field Summary |
Fields inherited from interface net.dpml.transit.monitor.Monitor |
BOOTSTRAP_DEBUG_KEY |
Constructor Summary | |
ConnectionMonitorAdapter(Adapter adapter)
Creation of a new adaptive connection monitor. |
Method Summary | |
void |
connectCompleted(URL url)
Notify the monitor that a connection was completed. |
void |
connectionOpened(URL url)
Notify the monitor that a connection was opened. |
void |
connectStarted(URL url)
Notify the monitor that a connection was started. |
protected Adapter |
getAdapter()
Returns the adapter assigned to this adaptive monitor. |
boolean |
isTraceEnabled()
Test is debug trace monitoring is enabled. |
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 ConnectionMonitorAdapter(Adapter adapter)
adapter
- the adapter to assign to the monitorMethod Detail |
public void connectionOpened(URL url)
connectionOpened
in interface ConnectionMonitor
url
- the url on which the open connection was issuedpublic void connectStarted(URL url)
connectStarted
in interface ConnectionMonitor
url
- the target connectionpublic void connectCompleted(URL url)
connectCompleted
in interface ConnectionMonitor
url
- the target connectionpublic 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 |