|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.infoscape.proteus.router.Router
|
+--com.infoscape.proteus.router.SwitchedRouter
A SwitchedRouter has multiple sinks, and routes messages based on the value returned by an abstract method called getMatch() which takes the incoming message as argument.
| Constructor Summary | |
SwitchedRouter(org.jdom.Element elt)
|
|
| Method Summary | |
protected abstract java.lang.String |
getMatch(java.lang.Object msg)
|
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 |
public SwitchedRouter(org.jdom.Element elt)
throws java.lang.Exception
elt -
java.lang.Exception| Method Detail |
public void route(java.lang.Object msg)
throws java.lang.Exception
route in class Routermsg -
java.lang.Exception
protected abstract java.lang.String getMatch(java.lang.Object msg)
throws java.lang.Exception
msg -
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||