com.infoscape.proteus.router
Class StraightRouter

java.lang.Object
  |
  +--com.infoscape.proteus.router.Router
        |
        +--com.infoscape.proteus.router.StraightRouter
All Implemented Interfaces:
MessageHandler, MessageSink, java.lang.Runnable, Transactional

public class StraightRouter
extends Router

A StraightRouter has one source and one sink, and routes messages straight from the former to the latter.


Constructor Summary
StraightRouter(org.jdom.Element elt)
           
 
Method Summary
 void route(java.lang.Object msg)
           
 
Methods inherited from class com.infoscape.proteus.router.Router
addSink, commit, disconnect, getConnection, log, log, putMessage, reconnect, rollback, routeMessage, run, setSyncPoint
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StraightRouter

public StraightRouter(org.jdom.Element elt)
               throws java.lang.Exception
Parameters:
elt -
Throws:
java.lang.Exception
Method Detail

route

public void route(java.lang.Object msg)
           throws java.lang.Exception
Specified by:
route in class Router
Parameters:
msg -
Throws:
java.lang.Exception