#include <Resource_Factory.h>
Inheritance diagram for TAO_Resource_Factory:
Public Types | |
enum | Purging_Strategy { LRU, LFU, FIFO, NOOP } |
Public Methods | |
TAO_Resource_Factory (void) | |
virtual | ~TAO_Resource_Factory (void) |
virtual int | use_locked_data_blocks (void) const |
Backwards compatibility, return 1 if the ORB core should use Locked_Data_Blocks. More... | |
virtual ACE_Reactor * | get_reactor (void) |
Return an <ACE_Reactor> to be utilized. More... | |
virtual void | reclaim_reactor (ACE_Reactor *reactor) |
Reclaim reactor resources (e.g. deallocate, etc). More... | |
virtual TAO_Acceptor_Registry * | get_acceptor_registry (void) |
Return a reference to the acceptor registry. More... | |
virtual TAO_Connector_Registry * | get_connector_registry (void) |
Return an Connector to be utilized. More... | |
virtual ACE_Allocator * | input_cdr_dblock_allocator (void) |
Access the input CDR allocators. More... | |
virtual ACE_Allocator * | input_cdr_buffer_allocator (void) |
virtual ACE_Allocator * | input_cdr_msgblock_allocator (void) |
virtual int | input_cdr_allocator_type_locked (void) |
virtual ACE_Allocator * | output_cdr_dblock_allocator (void) |
Access the output CDR allocators. More... | |
virtual ACE_Allocator * | output_cdr_buffer_allocator (void) |
virtual ACE_Allocator * | output_cdr_msgblock_allocator (void) |
virtual TAO_ProtocolFactorySet * | get_protocol_factories (void) |
The protocol factory list is implemented in this class since a) it will be a global resource and b) it is initialized at start up and then not altered. More... | |
virtual int | init_protocol_factories (void) |
this method will loop through the protocol list and using the protocol name field this method will retrieve a pointer to the associated protocol factory from the service configurator. More... | |
virtual int | cache_maximum (void) const |
This denotes the maximum number of connections that can be cached. More... | |
virtual int | purge_percentage (void) const |
This denotes the amount of entries to remove from the connection cache. More... | |
virtual int | max_muxed_connections (void) const |
Return the number of muxed connections that are allowed for a remote endpoint. More... | |
virtual int | get_parser_names (char **&names, int &number_of_names) |
virtual ACE_Lock * | create_cached_connection_lock (void) |
Creates the lock for the lock needed in the Cache Map @todo: This method needs to go away as it doesnt make much sense now. More... | |
virtual int | locked_transport_cache (void) |
Should the transport cache have a lock or not? Return 1 if the transport cache needs to be locked else return 0. More... | |
virtual TAO_Flushing_Strategy * | create_flushing_strategy (void)=0 |
Creates the flushing strategy. The new instance is owned by the caller. More... | |
virtual TAO_Connection_Purging_Strategy * | create_purging_strategy (void)=0 |
Creates the connection purging strategy. More... | |
virtual TAO_LF_Strategy * | create_lf_strategy (void)=0 |
Creates the leader followers strategy. The new instance is owned by the caller. More... | |
virtual void | disable_factory (void)=0 |
Disables the factory. When a new factory is installed and used, this function should be called on the previously used (default) factory. This should result in proper error reporting if the user attempts to set options on an unused factory. More... | |
Protected Methods | |
virtual int | load_default_protocols (void) |
Loads the default protocols. More... |
This class is a factory/repository for critical ORB Core resources.
|
|
|
|
|
|
|
This denotes the maximum number of connections that can be cached.
Reimplemented in TAO_Default_Resource_Factory. |
|
Creates the lock for the lock needed in the Cache Map @todo: This method needs to go away as it doesnt make much sense now.
Reimplemented in TAO_Default_Resource_Factory. |
|
Creates the flushing strategy. The new instance is owned by the caller.
Reimplemented in TAO_Default_Resource_Factory. |
|
Creates the leader followers strategy. The new instance is owned by the caller.
Reimplemented in TAO_Default_Resource_Factory. |
|
Creates the connection purging strategy.
Reimplemented in TAO_Default_Resource_Factory. |
|
Disables the factory. When a new factory is installed and used, this function should be called on the previously used (default) factory. This should result in proper error reporting if the user attempts to set options on an unused factory.
Reimplemented in TAO_Default_Resource_Factory. |
|
Return a reference to the acceptor registry.
Reimplemented in TAO_Default_Resource_Factory. |
|
Return an Connector to be utilized.
Reimplemented in TAO_Default_Resource_Factory. |
|
Reimplemented in TAO_Default_Resource_Factory. |
|
The protocol factory list is implemented in this class since a) it will be a global resource and b) it is initialized at start up and then not altered. Returns a container holding the list of loaded protocols. Reimplemented in TAO_Default_Resource_Factory. |
|
Return an <ACE_Reactor> to be utilized.
Reimplemented in TAO_Default_Resource_Factory. |
|
this method will loop through the protocol list and using the protocol name field this method will retrieve a pointer to the associated protocol factory from the service configurator. It is assumed that only one thread will call this method at ORB initialization. NON-THREAD-SAFE Reimplemented in TAO_Default_Resource_Factory. |
|
Reimplemented in TAO_Default_Resource_Factory. |
|
Reimplemented in TAO_Default_Resource_Factory. |
|
Access the input CDR allocators.
Reimplemented in TAO_Default_Resource_Factory. |
|
Reimplemented in TAO_Default_Resource_Factory. |
|
Loads the default protocols. This method is used so that the advanced_resource.cpp can call the one in default_resource.cpp without calling unnecessary functions. Reimplemented in TAO_Default_Resource_Factory. |
|
Should the transport cache have a lock or not? Return 1 if the transport cache needs to be locked else return 0.
Reimplemented in TAO_Default_Resource_Factory. |
|
Return the number of muxed connections that are allowed for a remote endpoint.
Reimplemented in TAO_Default_Resource_Factory. |
|
Reimplemented in TAO_Default_Resource_Factory. |
|
Access the output CDR allocators.
Reimplemented in TAO_Default_Resource_Factory. |
|
Reimplemented in TAO_Default_Resource_Factory. |
|
This denotes the amount of entries to remove from the connection cache.
Reimplemented in TAO_Default_Resource_Factory. |
|
Reclaim reactor resources (e.g. deallocate, etc).
Reimplemented in TAO_Default_Resource_Factory. |
|
Backwards compatibility, return 1 if the ORB core should use Locked_Data_Blocks. @ Reimplemented in TAO_Default_Resource_Factory. |