TAO_CosNotification
2.0.8
|
Implements a Thread Pool Worker Task. More...
#include <ThreadPool_Task.h>
Public Member Functions | |
TAO_Notify_ThreadPool_Task (void) | |
Constructor. | |
virtual | ~TAO_Notify_ThreadPool_Task () |
Destructor. | |
virtual int | init (int argc, ACE_TCHAR **argv) |
Call the base class init. | |
virtual int | close (u_long flags) |
release reference to my self. | |
void | init (const NotifyExt::ThreadPoolParams &tp_params, const TAO_Notify_AdminProperties::Ptr &admin_properties) |
Activate the threadpool. | |
virtual void | execute (TAO_Notify_Method_Request &method_request) |
Queue the request. | |
virtual void | shutdown () |
Shutdown task. | |
virtual void | update_qos_properties (const TAO_Notify_QoSProperties &qos_properties) |
Update QoS Properties. | |
virtual TAO_Notify_Timer * | timer (void) |
The object used by clients to register timers. | |
TAO_Notify_Buffering_Strategy * | buffering_strategy (void) |
Provide access to the underlying buffering strategy. | |
Protected Member Functions | |
virtual int | svc (void) |
Task svc. | |
Private Member Functions | |
virtual void | release (void) |
Release. | |
Private Attributes | |
ACE_Auto_Ptr < TAO_Notify_Buffering_Strategy > | buffering_strategy_ |
The buffering strategy to use. | |
bool | shutdown_ |
Shutdown. | |
TAO_Notify_Timer_Queue::Ptr | timer_ |
The Queue based timer. | |
Friends | |
class | TAO_Notify_Method_Request_Shutdown |
Implements a Thread Pool Worker Task.
TAO_Notify_ThreadPool_Task::TAO_Notify_ThreadPool_Task | ( | void | ) |
Constructor.
TAO_Notify_ThreadPool_Task::~TAO_Notify_ThreadPool_Task | ( | ) | [virtual] |
Destructor.
TAO_Notify_Buffering_Strategy * TAO_Notify_ThreadPool_Task::buffering_strategy | ( | void | ) |
Provide access to the underlying buffering strategy.
int TAO_Notify_ThreadPool_Task::close | ( | u_long | flags | ) | [virtual] |
release reference to my self.
Reimplemented from ACE_Task_Base.
void TAO_Notify_ThreadPool_Task::execute | ( | TAO_Notify_Method_Request & | method_request | ) | [virtual] |
Queue the request.
Implements TAO_Notify_Worker_Task.
int TAO_Notify_ThreadPool_Task::init | ( | int | argc, |
ACE_TCHAR ** | argv | ||
) | [virtual] |
Call the base class init.
void TAO_Notify_ThreadPool_Task::init | ( | const NotifyExt::ThreadPoolParams & | tp_params, |
const TAO_Notify_AdminProperties::Ptr & | admin_properties | ||
) |
Activate the threadpool.
void TAO_Notify_ThreadPool_Task::release | ( | void | ) | [private, virtual] |
Release.
Implements TAO_Notify_Refcountable.
void TAO_Notify_ThreadPool_Task::shutdown | ( | void | ) | [virtual] |
Shutdown task.
Implements TAO_Notify_Worker_Task.
int TAO_Notify_ThreadPool_Task::svc | ( | void | ) | [protected, virtual] |
Task svc.
Reimplemented from ACE_Task_Base.
TAO_Notify_Timer * TAO_Notify_ThreadPool_Task::timer | ( | void | ) | [virtual] |
The object used by clients to register timers.
Implements TAO_Notify_Worker_Task.
void TAO_Notify_ThreadPool_Task::update_qos_properties | ( | const TAO_Notify_QoSProperties & | qos_properties | ) | [virtual] |
Update QoS Properties.
Reimplemented from TAO_Notify_Worker_Task.
friend class TAO_Notify_Method_Request_Shutdown [friend] |
ACE_Auto_Ptr< TAO_Notify_Buffering_Strategy > TAO_Notify_ThreadPool_Task::buffering_strategy_ [private] |
The buffering strategy to use.
bool TAO_Notify_ThreadPool_Task::shutdown_ [private] |
Shutdown.
The Queue based timer.