|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.siprop.v2.core.router.impl.MessageRouter
public class MessageRouter
This class is a router for MessageContextImpl.
Field Summary | |
---|---|
static java.lang.String |
CONTROLMESSAGE_BASENAME
base name of StackControlMessageImpl |
Constructor Summary | |
---|---|
MessageRouter()
Constructor. |
Method Summary | |
---|---|
void |
addRoute(RouterInfo routerinfo)
add Route information. |
void |
doRoute(Context messagecontext)
Execute routing. |
RouterInfo |
getRouterInfo(RouteKey routekey)
get RouterInfo. |
void |
removeRoute(RouteKey routekey)
delete Route information by RouteKey. |
void |
removeRoute(RouterInfo routerinfo)
delete Route information by RouterInfo. |
void |
setThreadPoolCount(int count)
|
void |
start()
Start Router. |
void |
stop()
Stop router. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String CONTROLMESSAGE_BASENAME
Constructor Detail |
---|
public MessageRouter()
Method Detail |
---|
public void start()
DynamicRouter
start
in interface DynamicRouter
public void stop()
DynamicRouter
stop
in interface DynamicRouter
public void setThreadPoolCount(int count)
count
- public void addRoute(RouterInfo routerinfo)
DynamicRouter
addRoute
in interface DynamicRouter
routerinfo
- Route informationpublic void doRoute(Context messagecontext) throws MessageException
Router
doRoute
in interface Router
MessageException
public RouterInfo getRouterInfo(RouteKey routekey)
DynamicRouter
getRouterInfo
in interface DynamicRouter
routekey
- Route key
public void removeRoute(RouteKey routekey)
DynamicRouter
removeRoute
in interface DynamicRouter
routekey
- Route keypublic void removeRoute(RouterInfo routerinfo)
DynamicRouter
removeRoute
in interface DynamicRouter
routerinfo
- Route information
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |