#include <ControllerPool.hpp>
Inheritance diagram for CarobNS::RoundRobinControllerPool:
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) |
CarobNS::RoundRobinControllerPool::RoundRobinControllerPool | ( | const std::vector< ControllerInfo > & | controllerList, | |
int | pingDelayInMs, | |||
int | controllerTimeoutInMs | |||
) | throw (DriverException, UnexpectedException) |
Creates a new RoundRobinControllerPool
object.
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 |
ControllerInfo CarobNS::RoundRobinControllerPool::getController | ( | ) | throw (NoMoreControllerException, UnexpectedException) [virtual] |