wt.router
Class Router
java.lang.Object
wt.services.ServiceEventListenerAdapter
wt.router.Router
- All Implemented Interfaces:
- KeyedEventListener, RouterIfc
- class Router
- extends ServiceEventListenerAdapter
- implements RouterIfc
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
config
private RouterConfig config
rrr
private RoundRobinRouter rrr
Router
private Router(String managerName)
newRouter
public static Router newRouter(String routerName,
int routerNum,
String managerName)
throws IOException,
WTPropertyVetoException,
WTException
- Throws:
IOException
WTPropertyVetoException
WTException
notifyVetoableEvent
public void notifyVetoableEvent(Object event)
throws WTException
- Description copied from interface:
KeyedEventListener
- Notify the listener that a single-object event has occurred. Sometimes
the listener may object to the event by throwing an exception. Whether
the exception will be honored depends on the object which generated
the event.
Supported API: true
- Specified by:
notifyVetoableEvent
in interface KeyedEventListener
- Overrides:
notifyVetoableEvent
in class ServiceEventListenerAdapter
- Parameters:
event
-
- Throws:
WTException
getConfig
public RouterConfig getConfig()
- Description copied from interface:
RouterIfc
- Gets the object for the association that plays role: CONFIG.
Supported API: false
- Specified by:
getConfig
in interface RouterIfc
- Returns:
- RouterConfig
setConfig
public void setConfig(RouterConfig a_Config)
- Description copied from interface:
RouterIfc
- Sets the object for the association that plays role: CONFIG.
Supported API: false
- Specified by:
setConfig
in interface RouterIfc
- Parameters:
a_Config
-
getRoundRobinRouter
public RoundRobinRouter getRoundRobinRouter()
- Description copied from interface:
RouterIfc
- Gets the object for the association that plays role: ROUND_ROBIN_ROUTER.
Supported API: false
- Specified by:
getRoundRobinRouter
in interface RouterIfc
- Returns:
- RoundRobinRouter
setRoundRobinRouter
public void setRoundRobinRouter(RoundRobinRouter a_RoundRobinRouter)
- Description copied from interface:
RouterIfc
- Sets the object for the association that plays role: ROUND_ROBIN_ROUTER.
Supported API: false
- Specified by:
setRoundRobinRouter
in interface RouterIfc
- Parameters:
a_RoundRobinRouter
-