net.dpml.transit.monitor
Class ConnectionMonitorRouter
java.lang.Object
net.dpml.transit.monitor.AbstractMonitorRouter
net.dpml.transit.monitor.ConnectionMonitorRouter
- All Implemented Interfaces:
- ConnectionMonitor, Monitor, Router
public class ConnectionMonitorRouter
- extends AbstractMonitorRouter
- implements ConnectionMonitor, Router
A connection monitor implementation that routes connection notification requests
to registered listeners.
- Version:
- 1.0.3
- Author:
- Digital Product Meta Library
Method Summary |
void |
addMonitor(Monitor monitor)
Add a monitor to the set of registered monitors. |
void |
connectCompleted(URL url)
Notify registered monitors of a connection completed event. |
void |
connectionOpened(URL url)
Notify registered monitors of a connection opened event. |
void |
connectStarted(URL url)
Notify registered monitors of a connection started event. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConnectionMonitorRouter
public ConnectionMonitorRouter()
connectionOpened
public void connectionOpened(URL url)
- Notify registered monitors of a connection opened event.
- Specified by:
connectionOpened
in interface ConnectionMonitor
- Parameters:
url
- the target url
connectStarted
public void connectStarted(URL url)
- Notify registered monitors of a connection started event.
- Specified by:
connectStarted
in interface ConnectionMonitor
- Parameters:
url
- the target url
connectCompleted
public void connectCompleted(URL url)
- Notify registered monitors of a connection completed event.
- Specified by:
connectCompleted
in interface ConnectionMonitor
- Parameters:
url
- the target url
addMonitor
public void addMonitor(Monitor monitor)
- Add a monitor to the set of registered monitors.
- Specified by:
addMonitor
in interface Router
- Overrides:
addMonitor
in class AbstractMonitorRouter
- Parameters:
monitor
- the monitor to add