#include <Strategies_T.h>
Inheritance diagram for ACE_Creation_Strategy< SVC_HANDLER >:
Public Types | |
typedef SVC_HANDLER::addr_type | addr_type |
typedef SVC_HANDLER | handler_type |
typedef SVC_HANDLER::stream_type | stream_type |
Public Member Functions | |
ACE_Creation_Strategy (ACE_Thread_Manager *=0, ACE_Reactor *=ACE_Reactor::instance()) | |
Default constructor. | |
int | open (ACE_Thread_Manager *=0, ACE_Reactor *=ACE_Reactor::instance()) |
virtual | ~ACE_Creation_Strategy (void) |
virtual int | make_svc_handler (SVC_HANDLER *&sh) |
void | dump (void) const |
Dump the state of an object. | |
Public Attributes | |
ACE_ALLOC_HOOK_DECLARE | |
Declare the dynamic allocation hooks. | |
Protected Attributes | |
ACE_Thread_Manager * | thr_mgr_ |
Pointer to a thread manager. | |
ACE_Reactor * | reactor_ |
Pointer to an ACE_Reactor. |
The default behavior is to make a new SVC_HANDLER. However, subclasses can override this strategy to perform SVC_HANDLER creation in any way that they like (such as creating subclass instances of SVC_HANDLER, using a singleton, dynamically linking the handler, etc.).
Definition at line 84 of file Strategies_T.h.
|
Definition at line 89 of file Strategies_T.h. |
|
Definition at line 90 of file Strategies_T.h. |
|
Definition at line 91 of file Strategies_T.h. |
|
Default constructor.
Definition at line 31 of file Strategies_T.inl. References ACE_ERROR, ACE_TEXT, ACE_TRACE, LM_ERROR, and ACE_Creation_Strategy< SVC_HANDLER >::open().
|
|
Definition at line 1444 of file Strategies_T.cpp. References ACE_TRACE.
01445 { 01446 ACE_TRACE ("ACE_Creation_Strategy<SVC_HANDLER>::~ACE_Creation_Strategy"); 01447 } |
|
Dump the state of an object.
Reimplemented in ACE_Singleton_Strategy< SVC_HANDLER >, and ACE_DLL_Strategy< SVC_HANDLER >. Definition at line 1464 of file Strategies_T.cpp. References ACE_TRACE. Referenced by ACE_Strategy_Acceptor< SVC_HANDLER, >::dump().
01465 { 01466 #if defined (ACE_HAS_DUMP) 01467 ACE_TRACE ("ACE_Creation_Strategy<SVC_HANDLER>::dump"); 01468 #endif /* ACE_HAS_DUMP */ 01469 } |
|
Create a SVC_HANDLER with the appropriate creation strategy. The default behavior of this method is to make a new if == 0 (passing in the ), else is unchanged. Returns -1 on failure, else 0. Reimplemented in ACE_Singleton_Strategy< SVC_HANDLER >, ACE_DLL_Strategy< SVC_HANDLER >, and ACE_NOOP_Creation_Strategy< SVC_HANDLER >. Definition at line 1453 of file Strategies_T.cpp. References ACE_NEW_RETURN, and ACE_TRACE. Referenced by ACE_Strategy_Acceptor< SVC_HANDLER, >::make_svc_handler().
01454 { 01455 ACE_TRACE ("ACE_Creation_Strategy<SVC_HANDLER>::make_svc_handler"); 01456 01457 if (sh == 0) 01458 ACE_NEW_RETURN (sh, SVC_HANDLER (this->thr_mgr_), -1); 01459 sh->reactor (this->reactor_); 01460 return 0; 01461 } |
|
An ACE_Thread_Manager is useful when creating active objects and the ACE_Reactor is used to initialize the service handler's reactor. Definition at line 21 of file Strategies_T.inl. References ACE_TRACE, and ACE_Creation_Strategy< SVC_HANDLER >::thr_mgr_. Referenced by ACE_Creation_Strategy< SVC_HANDLER >::ACE_Creation_Strategy().
|
|
Declare the dynamic allocation hooks.
Reimplemented in ACE_Singleton_Strategy< SVC_HANDLER >, and ACE_DLL_Strategy< SVC_HANDLER >. Definition at line 119 of file Strategies_T.h. |
|
Pointer to an ACE_Reactor.
Definition at line 126 of file Strategies_T.h. |
|
Pointer to a thread manager.
Definition at line 123 of file Strategies_T.h. Referenced by ACE_Creation_Strategy< SVC_HANDLER >::open(). |