Kea  1.9.9-git
isc::config::CommandMgrImpl Class Reference

Implementation of the CommandMgr. More...

Public Member Functions

 CommandMgrImpl ()
 Constructor. More...
 
void doAccept ()
 Asynchronously accepts next connection. More...
 
std::string getLockName ()
 Returns the lock file name. More...
 
void openCommandSocket (const isc::data::ConstElementPtr &socket_info)
 Opens acceptor service allowing the control clients to connect. More...
 

Public Attributes

boost::shared_ptr< UnixDomainSocketAcceptoracceptor_
 Pointer to the acceptor service. More...
 
ConnectionPool connection_pool_
 Pool of connections. More...
 
IOServicePtr io_service_
 Pointer to the IO service used by the server process for running asynchronous tasks. More...
 
boost::shared_ptr< UnixDomainSocketsocket_
 Pointer to the socket into which the new connection is accepted. More...
 
std::string socket_name_
 Path to the unix domain socket descriptor. More...
 
long timeout_
 Connection timeout. More...
 

Detailed Description

Implementation of the CommandMgr.

Definition at line 473 of file command_mgr.cc.

Constructor & Destructor Documentation

isc::config::CommandMgrImpl::CommandMgrImpl ( )
inline

Constructor.

Definition at line 477 of file command_mgr.cc.

Member Function Documentation

void isc::config::CommandMgrImpl::doAccept ( )

Asynchronously accepts next connection.

Definition at line 594 of file command_mgr.cc.

References isc::config::command_logger, isc::config::COMMAND_SOCKET_ACCEPT_FAIL, and LOG_ERROR.

std::string isc::config::CommandMgrImpl::getLockName ( )
inline

Returns the lock file name.

Definition at line 493 of file command_mgr.cc.

void isc::config::CommandMgrImpl::openCommandSocket ( const isc::data::ConstElementPtr socket_info)

Opens acceptor service allowing the control clients to connect.

Parameters
socket_infoConfiguration information for the control socket.
Exceptions
BadSocketInfoWhen socket configuration is invalid.
SocketErrorWhen socket operation fails.

Definition at line 520 of file command_mgr.cc.

References isc::dhcp::IfaceMgr::addExternalSocket(), isc::config::COMMAND_ACCEPTOR_START, isc::config::command_logger, isc::dhcp::IfaceMgr::instance(), isc_throw, LOG_INFO, and isc::Exception::what().

+ Here is the call graph for this function:

Member Data Documentation

boost::shared_ptr<UnixDomainSocketAcceptor> isc::config::CommandMgrImpl::acceptor_

Pointer to the acceptor service.

Definition at line 502 of file command_mgr.cc.

ConnectionPool isc::config::CommandMgrImpl::connection_pool_

Pool of connections.

Definition at line 513 of file command_mgr.cc.

IOServicePtr isc::config::CommandMgrImpl::io_service_

Pointer to the IO service used by the server process for running asynchronous tasks.

Definition at line 499 of file command_mgr.cc.

boost::shared_ptr<UnixDomainSocket> isc::config::CommandMgrImpl::socket_

Pointer to the socket into which the new connection is accepted.

Definition at line 505 of file command_mgr.cc.

std::string isc::config::CommandMgrImpl::socket_name_

Path to the unix domain socket descriptor.

This is used to remove the socket file once the connection terminates.

Definition at line 510 of file command_mgr.cc.

long isc::config::CommandMgrImpl::timeout_

Connection timeout.

Definition at line 516 of file command_mgr.cc.


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