wt.router
Class Router

java.lang.Object
  extended bywt.services.ServiceEventListenerAdapter
      extended bywt.router.Router
All Implemented Interfaces:
KeyedEventListener, RouterIfc

class Router
extends ServiceEventListenerAdapter
implements RouterIfc


Field Summary
private  RouterConfig config
           
private  RoundRobinRouter rrr
           
 
Fields inherited from class wt.services.ServiceEventListenerAdapter
 
Fields inherited from interface wt.router.RouterIfc
CONFIG, ROUND_ROBIN_ROUTER
 
Fields inherited from interface wt.events.KeyedEventListener
KEYED_EVENT_BRANCH
 
Constructor Summary
private Router(String managerName)
           
 
Method Summary
 RouterConfig getConfig()
          Gets the object for the association that plays role: CONFIG.
 RoundRobinRouter getRoundRobinRouter()
          Gets the object for the association that plays role: ROUND_ROBIN_ROUTER.
static Router newRouter(String routerName, int routerNum, String managerName)
           
 void notifyVetoableEvent(Object event)
          Notify the listener that a single-object event has occurred.
 void setConfig(RouterConfig a_Config)
          Sets the object for the association that plays role: CONFIG.
 void setRoundRobinRouter(RoundRobinRouter a_RoundRobinRouter)
          Sets the object for the association that plays role: ROUND_ROBIN_ROUTER.
 
Methods inherited from class wt.services.ServiceEventListenerAdapter
getKeyedEventBranch, getServiceId, logException, logException, logNotification, notifyEvent, notifyMultiObjectEvent, notifyVetoableMultiObjectEvent, setKeyedEventBranch
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface wt.events.KeyedEventListener
getKeyedEventBranch, notifyEvent, notifyMultiObjectEvent, notifyVetoableMultiObjectEvent, setKeyedEventBranch
 

Field Detail

config

private RouterConfig config

rrr

private RoundRobinRouter rrr
Constructor Detail

Router

private Router(String managerName)
Method Detail

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 -