Kea 2.7.5
isc::config::HttpCommandMgrImpl Class Reference

Implementation of the HttpCommandMgr. More...

Public Member Functions

 HttpCommandMgrImpl ()
 Constructor.
 
void close (bool remove)
 Close control socket.
 
void configure (HttpCommandConfigPtr config)
 Configure control socket from configuration.
 
void garbageCollectListeners ()
 Removes listeners which are no longer in use.
 
ConstHttpListenerPtr getHttpListener () const
 Returns a const pointer to the HTTP listener.
 

Public Attributes

size_t active_
 Number of active listeners (0 or 1).
 
HttpCommandConfigPtr current_config_
 Current config.
 
vector< HttpListenerPtrhttp_listeners_
 Active listeners.
 
long idle_timeout_
 Idle connection timeout.
 
IOServicePtr io_service_
 Pointer to the IO service.
 
long timeout_
 Connection timeout.
 
bool use_external_
 Use external sockets flag.
 

Detailed Description

Implementation of the HttpCommandMgr.

Definition at line 28 of file http_command_mgr.cc.

Constructor & Destructor Documentation

◆ HttpCommandMgrImpl()

isc::config::HttpCommandMgrImpl::HttpCommandMgrImpl ( )
inline

Constructor.

Definition at line 32 of file http_command_mgr.cc.

Member Function Documentation

◆ close()

void isc::config::HttpCommandMgrImpl::close ( bool remove)

Close control socket.

Parameters
removeWhen true remove the listeners immediately.

Definition at line 163 of file http_command_mgr.cc.

References active_, isc::config::command_logger, current_config_, garbageCollectListeners(), isc::config::HTTP_COMMAND_MGR_SERVICE_STOPPING, and LOG_INFO.

Referenced by configure().

+ Here is the call graph for this function:

◆ configure()

void isc::config::HttpCommandMgrImpl::configure ( HttpCommandConfigPtr config)

Configure control socket from configuration.

Parameters
configConfiguration of the control socket.

Definition at line 78 of file http_command_mgr.cc.

References active_, close(), isc::config::command_logger, current_config_, isc::config::HTTP_COMMAND_MGR_IGNORED_TLS_SETUP_CHANGES, isc::config::HTTP_COMMAND_MGR_SERVICE_STARTED, http_listeners_, idle_timeout_, io_service_, LOG_INFO, LOG_WARN, timeout_, and use_external_.

+ Here is the call graph for this function:

◆ garbageCollectListeners()

void isc::config::HttpCommandMgrImpl::garbageCollectListeners ( )

Removes listeners which are no longer in use.

Definition at line 182 of file http_command_mgr.cc.

References active_, http_listeners_, and io_service_.

Referenced by close().

◆ getHttpListener()

ConstHttpListenerPtr isc::config::HttpCommandMgrImpl::getHttpListener ( ) const

Returns a const pointer to the HTTP listener.

Definition at line 206 of file http_command_mgr.cc.

References http_listeners_.

Member Data Documentation

◆ active_

size_t isc::config::HttpCommandMgrImpl::active_

Number of active listeners (0 or 1).

Definition at line 71 of file http_command_mgr.cc.

Referenced by close(), configure(), and garbageCollectListeners().

◆ current_config_

HttpCommandConfigPtr isc::config::HttpCommandMgrImpl::current_config_

Current config.

Definition at line 65 of file http_command_mgr.cc.

Referenced by close(), and configure().

◆ http_listeners_

vector<HttpListenerPtr> isc::config::HttpCommandMgrImpl::http_listeners_

Active listeners.

Definition at line 68 of file http_command_mgr.cc.

Referenced by configure(), garbageCollectListeners(), and getHttpListener().

◆ idle_timeout_

long isc::config::HttpCommandMgrImpl::idle_timeout_

Idle connection timeout.

Definition at line 62 of file http_command_mgr.cc.

Referenced by configure().

◆ io_service_

IOServicePtr isc::config::HttpCommandMgrImpl::io_service_

Pointer to the IO service.

Definition at line 56 of file http_command_mgr.cc.

Referenced by configure(), and garbageCollectListeners().

◆ timeout_

long isc::config::HttpCommandMgrImpl::timeout_

Connection timeout.

Definition at line 59 of file http_command_mgr.cc.

Referenced by configure().

◆ use_external_

bool isc::config::HttpCommandMgrImpl::use_external_

Use external sockets flag.

Definition at line 74 of file http_command_mgr.cc.

Referenced by configure().


The documentation for this class was generated from the following file: