net.dpml.transit.monitor
Class ConnectionMonitorRouter

java.lang.Object
  extended by net.dpml.transit.monitor.AbstractMonitorRouter
      extended by 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

Field Summary
 
Fields inherited from interface net.dpml.transit.monitor.Monitor
BOOTSTRAP_DEBUG_KEY
 
Constructor Summary
ConnectionMonitorRouter()
           
 
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 net.dpml.transit.monitor.AbstractMonitorRouter
removeMonitor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.dpml.transit.monitor.Router
removeMonitor
 

Constructor Detail

ConnectionMonitorRouter

public ConnectionMonitorRouter()
Method Detail

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