7 #ifndef NETWORK_STATE_H
8 #define NETWORK_STATE_H
12 #include <boost/scoped_ptr.hpp>
13 #include <boost/shared_ptr.hpp>
21 class NetworkStateImpl;
197 boost::shared_ptr<NetworkStateImpl> impl_;
200 const boost::scoped_ptr<std::mutex> mutex_;
209 #endif // NETWORK_STATE_H
std::set< std::string > Networks
Type of the container holding collection of shared network names.
NetworkState(const ServerType &server_type)
Constructor.
void enableService(const NetworkState::Origin &origin)
Enable the DHCP service state for respective transition origin.
ServerType
DHCP server type.
The network state is being altered by the DB connection recovery mechanics.
void delayedEnableAll(const unsigned int seconds, const NetworkState::Origin &origin)
Schedules enabling DHCP service in the future.
void reset(const NetworkState::Origin &type)
Reset internal counters.
Holds information about DHCP service enabling status.
std::set< SubnetID > Subnets
Type of the container holding collection of subnet identifiers.
void selectiveEnable(const NetworkState::Subnets &subnets)
Enable DHCP service for selected subnets.
The network state is being altered by a user command.
void enableAll(const NetworkState::Origin &origin)
Enables DHCP service globally and for scopes which have been disabled as a result of control command...
Origin
Origin of the network state transition.
The network state is being altered by a HA internal command.
bool isDelayedEnableAll() const
Checks if delayed enabling of DHCP services is scheduled.
void selectiveDisable(const NetworkState::Subnets &subnets)
Disable DHCP service for selected subnets.
Defines the logger used by the top-level component of kea-dhcp-ddns.
bool isServiceEnabled() const
Checks if the DHCP service is globally enabled.
void disableService(const NetworkState::Origin &origin)
Disable the DHCP service state for respective transition origin.
boost::shared_ptr< NetworkState > NetworkStatePtr
Pointer to the NetworkState object.