CarobNS::RoundRobinControllerPool Class Reference

Implements a controller selection policy that iterates through the controller list, one after the other, starting with the first one in the list. More...

#include <ControllerPool.hpp>

Inheritance diagram for CarobNS::RoundRobinControllerPool:

CarobNS::AbstractControllerPool List of all members.

Public Member Functions

 RoundRobinControllerPool (const std::vector< ControllerInfo > &controllerList, int pingDelayInMs, int controllerTimeoutInMs) throw (DriverException, UnexpectedException)
 Creates a new RoundRobinControllerPool object.
ControllerInfo getController () throw (NoMoreControllerException, UnexpectedException)

Detailed Description

Implements a controller selection policy that iterates through the controller list, one after the other, starting with the first one in the list.


Constructor & Destructor Documentation

CarobNS::RoundRobinControllerPool::RoundRobinControllerPool ( const std::vector< ControllerInfo > &  controllerList,
int  pingDelayInMs,
int  controllerTimeoutInMs 
) throw (DriverException, UnexpectedException)

Creates a new RoundRobinControllerPool object.

Parameters:
controllerList the controller list on which the policy applies
pingDelayInMs Interval in milliseconds between two pings of a controller
controllerTimeoutInMs timeout in milliseconds after which a controller is considered as dead if it did not respond to pings


Member Function Documentation

ControllerInfo CarobNS::RoundRobinControllerPool::getController (  )  throw (NoMoreControllerException, UnexpectedException) [virtual]

See also:
AbstractControllerPool::getController()

Implements CarobNS::AbstractControllerPool.


The documentation for this class was generated from the following file:
Generated on Fri Mar 9 17:40:20 2007 for Carob by  doxygen 1.4.7