#include <Strategies_T.h>
Inheritance diagram for ACE_Process_Strategy
Public Methods | |
ACE_Process_Strategy (size_t n_processes = 1, ACE_Event_Handler *acceptor = 0, ACE_Reactor * = 0, int avoid_zombies = 0) | |
Initialize the strategy. If is non-0 then set a flag to to avoid zombies. | |
virtual int | open (size_t n_processes = 1, ACE_Event_Handler *acceptor = 0, ACE_Reactor * = 0, int avoid_zombies = 0) |
Initialize the strategy. If is non-0 then set a flag to to avoid zombies. | |
virtual | ~ACE_Process_Strategy (void) |
virtual int | activate_svc_handler (SVC_HANDLER *svc_handler, void *arg = 0) |
void | dump (void) const |
Dump the state of an object. | |
Public Attributes | |
ACE_ALLOC_HOOK_DECLARE | |
Declare the dynamic allocation hooks. | |
Protected Types | |
typedef ACE_Concurrency_Strategy< SVC_HANDLER> | inherited |
Protected Attributes | |
size_t | n_processes_ |
Number of processes to spawn. | |
ACE_Event_Handler* | acceptor_ |
ACE_Reactor* | reactor_ |
This class provides a strategy that manages the creation of processes to handle requests from clients concurrently. It behaves as a "process factory", using to fork threads "on-demand" to run the service specified by a user-supplied <SVC_HANDLER> in a separate process.
|
|
|
Initialize the strategy. If is non-0 then set a flag to to avoid zombies.
|
|
|
|
Activate the <svc_handler> with an appropriate concurrency strategy. This method activates the SVC_HANDLER by first forking and then calling the <open> method of the SVC_HANDLER in the child. Reimplemented from ACE_Concurrency_Strategy. |
|
Dump the state of an object.
Reimplemented from ACE_Concurrency_Strategy. |
|
Initialize the strategy. If is non-0 then set a flag to to avoid zombies.
|
|
Declare the dynamic allocation hooks.
Reimplemented from ACE_Concurrency_Strategy. |
|
This is the in the parent is listening on. We need to make sure that we remove it from the Reactor and close it down in the child. |
|
Number of processes to spawn.
|
|
This is the <Reactor> the child is using in conjunction with the . We need to remove the from this <Reactor> in the child. |