#include <ControllerPool.hpp>
Public Member Functions | |
ControllerAndVdbState (const ControllerInfo &ctrl) | |
Constructs a ControllerAndVdbState object with the given controller, considering last vdb failure is now minus 60 seconds (ie. | |
bool | isVdbUp (int now) |
Gives the state of the vdb. | |
operator std::wstring () | |
Gives a string representation of this object: prints controller + state. | |
Public Attributes | |
ControllerInfo | controller |
Controller. | |
int | lastVdbFailure |
Last time the vdb has been seen failing. |
CarobNS::ControllerAndVdbState::ControllerAndVdbState | ( | const ControllerInfo & | ctrl | ) | [inline] |
Constructs a ControllerAndVdbState
object with the given controller, considering last vdb failure is now minus 60 seconds (ie.
no failure)
ctrl | controller to refer to |
bool CarobNS::ControllerAndVdbState::isVdbUp | ( | int | now | ) | [inline] |
Gives the state of the vdb.
Returns true if the last vdb failure is older than 5 seconds (refering to given time), false if the vdb failed during the last 5 seconds
now | the time to compare last vdb failure to |