7 #ifndef CMD_HTTP_LISTENER_H
8 #define CMD_HTTP_LISTENER_H
36 const uint16_t thread_pool_size = 1);
93 return (thread_pool_size_);
104 return (thread_pool_->getThreadCount());
113 return (thread_io_service_);
130 std::size_t thread_pool_size_;
142 #endif // CMD_HTTP_LISTENER_H
bool isStopped()
Indicates if the thread pool is stopped.
virtual ~CmdHttpListener()
Destructor.
boost::shared_ptr< CmdHttpListener > CmdHttpListenerPtr
Defines a shared pointer to CmdHttpListener.
boost::shared_ptr< IOService > IOServicePtr
Defines a smart pointer to an IOService instance.
void stop()
Stops the listener's thread pool.
asiolink::IOServicePtr getThreadIOService() const
Fetches a pointer to the internal IOService used to drive the thread-pool in multi-threaded mode...
uint16_t getThreadPoolSize() const
Fetches the maximum size of the thread pool.
bool isPaused()
Indicates if the thread pool is paused.
CmdHttpListener(const asiolink::IOAddress &address, const uint16_t port, const uint16_t thread_pool_size=1)
Constructor.
Defines the logger used by the top-level component of kea-dhcp-ddns.
bool isRunning()
Indicates if the thread pool is running.
A multi-threaded HTTP listener that can process API commands requests.
boost::shared_ptr< HttpThreadPool > HttpThreadPoolPtr
Defines a pointer to a thread pool.
uint16_t getThreadCount() const
Fetches the number of threads in the pool.
boost::shared_ptr< HttpListener > HttpListenerPtr
Pointer to the HttpListener.
uint16_t getPort() const
Fetches the port number on which to listen.
The IOAddress class represents an IP addresses (version agnostic)
void start()
Starts running the listener's thread pool.
isc::asiolink::IOAddress getAddress() const
Fetches the IP address on which to listen.
void resume()
Resumes running the listener's thread pool.
void pause()
Pauses the listener's thread pool.