43 for (
auto const& server :
servers_) {
45 servers->add(server->toElement());
48 result->set(
"servers", servers);
static ElementPtr create(const Position &pos=ZERO_POSITION())
Create a NullElement.
static ElementPtr createMap(const Position &pos=ZERO_POSITION())
Creates an empty MapElement type ElementPtr.
static ElementPtr createList(const Position &pos=ZERO_POSITION())
Creates an empty ListElement type ElementPtr.
bool peer_updates_
Peer updates flag.
CfgAttributes attributes_
Attribute configurations.
bool enabled_
Enable flag.
RadiusService(const std::string &name)
Constructor.
data::ElementPtr toElement() const override
Unparse service configuration.
size_t max_pending_requests_
Maximum number of pending requests.
asiolink::IntervalTimerPtr idle_timer_
Idle timer.
long idle_timer_interval_
Idle timer interval in seconds.
Servers servers_
Server list.
void cancelIdleTimer()
Cancel idle timer.
virtual ~RadiusService()
Destructor.
static std::mutex idle_timer_mutex_
Idle timer mutex.
std::string name_
Name (access or accounting).
boost::shared_ptr< Element > ElementPtr
Defines the logger used by the top-level component of kea-lfc.
RAII lock object to protect the code in the same scope with a mutex.