Kea 2.7.6
|
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< HttpListenerPtr > | http_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. | |
Implementation of the HttpCommandMgr
.
Definition at line 28 of file http_command_mgr.cc.
|
inline |
Constructor.
Definition at line 32 of file http_command_mgr.cc.
void isc::config::HttpCommandMgrImpl::close | ( | bool | remove | ) |
Close control socket.
remove | When 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().
void isc::config::HttpCommandMgrImpl::configure | ( | HttpCommandConfigPtr | config | ) |
Configure control socket from configuration.
config | Configuration 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_, isc::asiolink::IOAddress::toText(), and use_external_.
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().
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_.
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().
HttpCommandConfigPtr isc::config::HttpCommandMgrImpl::current_config_ |
Current config.
Definition at line 65 of file http_command_mgr.cc.
Referenced by close(), and configure().
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().
long isc::config::HttpCommandMgrImpl::idle_timeout_ |
Idle connection timeout.
Definition at line 62 of file http_command_mgr.cc.
Referenced by configure().
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().
long isc::config::HttpCommandMgrImpl::timeout_ |
bool isc::config::HttpCommandMgrImpl::use_external_ |
Use external sockets flag.
Definition at line 74 of file http_command_mgr.cc.
Referenced by configure().