#include <default_resource.h>
Inheritance diagram for TAO_Default_Resource_Factory:
Member Accessors | |
enum | { TAO_ALLOCATOR_THREAD_LOCK } |
enum | TRANSLATOR_TYPE { CHAR_TRANSLATOR, WCHAR_TRANSLATOR } |
int | get_parser_names (char **&names, int &number_of_names) |
int | cdr_allocator_source (void) |
Modify and get the source for the CDR allocators. | |
virtual int | use_locked_data_blocks (void) const |
virtual ACE_Reactor * | get_reactor (void) |
Return an <ACE_Reactor> to be utilized. | |
virtual void | reclaim_reactor (ACE_Reactor *) |
Reclaim reactor resources (e.g. deallocate, etc). | |
virtual TAO_Acceptor_Registry * | get_acceptor_registry (void) |
Return a reference to the acceptor registry. | |
virtual TAO_Connector_Registry * | get_connector_registry (void) |
Return an Connector to be utilized. | |
virtual ACE_Allocator * | input_cdr_dblock_allocator (void) |
Access the input CDR allocators. | |
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. | |
virtual ACE_Allocator * | output_cdr_buffer_allocator (void) |
virtual ACE_Allocator * | output_cdr_msgblock_allocator (void) |
virtual TAO_ProtocolFactorySet * | get_protocol_factories (void) |
virtual TAO_Codeset_Manager * | get_codeset_manager () |
virtual int | init_protocol_factories (void) |
virtual int | cache_maximum (void) const |
This denotes the maximum number of connections that can be cached. | |
virtual int | purge_percentage (void) const |
virtual int | max_muxed_connections (void) const |
virtual ACE_Lock * | create_cached_connection_lock (void) |
virtual ACE_Lock * | create_object_key_table_lock (void) |
Creates a lock needed for the table that stores the object keys. | |
virtual ACE_Lock * | create_corba_object_lock (void) |
Creates the lock for the CORBA Object. | |
virtual int | locked_transport_cache (void) |
virtual TAO_Flushing_Strategy * | create_flushing_strategy (void) |
virtual TAO_Connection_Purging_Strategy * | create_purging_strategy (void) |
Creates the connection purging strategy. | |
TAO_Resource_Factory::Resource_Usage | resource_usage_strategy (void) const |
Return the resource usage strategy. | |
virtual TAO_LF_Strategy * | create_lf_strategy (void) |
virtual void | disable_factory (void) |
Public Types | |
Public Methods | |
TAO_Default_Resource_Factory (void) | |
Constructor. | |
virtual | ~TAO_Default_Resource_Factory (void) |
Destructor. | |
Service Configurator Hooks | |
virtual int | init (int argc, ACE_TCHAR *argv[]) |
Dynamic linking hook. | |
int | parse_args (int argc, ACE_TCHAR *argv[]) |
Parse svc.conf arguments. | |
Protected Methods | |
virtual ACE_Reactor_Impl * | allocate_reactor_impl (void) const |
Obtain the reactor implementation. | |
int | add_to_ior_parser_names (const char *) |
Add a Parser name to the list of Parser names. | |
void | report_option_value_error (const ACE_TCHAR *option_name, const ACE_TCHAR *option_value) |
virtual int | load_default_protocols (void) |
Protected Attributes | |
int | use_locked_data_blocks_ |
The type of data blocks that the ORB should use. | |
int | parser_names_count_ |
The number of the different types of Parsers. | |
char ** | parser_names_ |
Array consisting of the names of the parsers. | |
int | index_ |
Index of the current element in the parser_names_ array. | |
TAO_ProtocolFactorySet | protocol_factories_ |
list of loaded protocol factories. | |
TAO_Resource_Factory::Purging_Strategy | connection_purging_type_ |
int | cache_maximum_ |
int | purge_percentage_ |
int | max_muxed_connections_ |
int | reactor_mask_signals_ |
If <0> then we create reactors with signal handling disabled. | |
int | dynamically_allocated_reactor_ |
int | options_processed_ |
int | factory_disabled_ |
Private Types | |
enum | Lock_Type { TAO_NULL_LOCK, TAO_THREAD_LOCK } |
enum | Flushing_Strategy_Type { TAO_LEADER_FOLLOWER_FLUSHING, TAO_REACTIVE_FLUSHING, TAO_BLOCKING_FLUSHING } |
Private Attributes | |
Lock_Type | cached_connection_lock_type_ |
Type of lock used by the cached connector. | |
Lock_Type | object_key_table_lock_type_ |
Type of lock used by the corba object. | |
Lock_Type | corba_object_lock_type_ |
Type of lock used by the corba object. | |
int | flushing_strategy_type_ |
Type of flushing strategy configured. | |
TAO_Codeset_Manager * | codeset_manager_ |
Resource_Usage | resource_usage_strategy_ |
Resource usage strategy. |
Using a <{resource source specifier}> as a discriminator, the factory can return resource instances which are, e.g., global, stored in thread-specific storage, stored in shared memory, etc.
static Resource_Factory ""
Alternatively, explicitly pre-load the Resource_Factory using the following in your code:
ACE_Service_Config::process_directive ( ACE_TEXT ("static Resource_Factory \"\"") );
In both cases, place the appropriate resource factory arguments, if any, between the quotes immediately following "Resource_Factory."
|
|
|
|
|
|
|
|
|
Constructor.
|
|
Destructor.
|
|
Add a Parser name to the list of Parser names.
|
|
Obtain the reactor implementation.
Reimplemented in TAO_QtResource_Factory, and TAO_XT_Resource_Factory. |
|
This denotes the maximum number of connections that can be cached.
Reimplemented from TAO_Resource_Factory. |
|
Modify and get the source for the CDR allocators.
|
|
Creates the lock for the lock needed in the Cache Map Reimplemented from TAO_Resource_Factory. |
|
Creates the lock for the CORBA Object.
Reimplemented from TAO_Resource_Factory. |
|
Creates the flushing strategy. The new instance is owned by the caller. Implements TAO_Resource_Factory. |
|
Creates the leader followers strategy. The new instance is owned by the caller. Implements TAO_Resource_Factory. |
|
Creates a lock needed for the table that stores the object keys.
Reimplemented from TAO_Resource_Factory. |
|
Creates the connection purging strategy.
Implements TAO_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. Implements TAO_Resource_Factory. |
|
Return a reference to the acceptor registry.
Reimplemented from TAO_Resource_Factory. |
|
Reimplemented from TAO_Resource_Factory. |
|
Return an Connector to be utilized.
Reimplemented from TAO_Resource_Factory. |
|
Reimplemented from TAO_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 from TAO_Resource_Factory. |
|
Return an <ACE_Reactor> to be utilized.
Reimplemented from TAO_Resource_Factory. |
|
Dynamic linking hook.
Reimplemented from ACE_Shared_Object. |
|
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 from TAO_Resource_Factory. |
|
Reimplemented from TAO_Resource_Factory. |
|
Reimplemented from TAO_Resource_Factory. |
|
Access the input CDR allocators.
Reimplemented from TAO_Resource_Factory. |
|
Reimplemented from TAO_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 from TAO_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 from TAO_Resource_Factory. |
|
Return the number of muxed connections that are allowed for a remote endpoint Reimplemented from TAO_Resource_Factory. |
|
Reimplemented from TAO_Resource_Factory. |
|
Access the output CDR allocators.
Reimplemented from TAO_Resource_Factory. |
|
Reimplemented from TAO_Resource_Factory. |
|
Parse svc.conf arguments.
|
|
This denotes the amount of entries to remove from the connection cache. Reimplemented from TAO_Resource_Factory. |
|
Reclaim reactor resources (e.g. deallocate, etc).
Reimplemented from TAO_Resource_Factory. |
|
|
|
Return the resource usage strategy.
Implements TAO_Resource_Factory. |
|
@ Backwards compatibility, return 1 if the ORB core should use Locked_Data_Blocks Reimplemented from TAO_Resource_Factory. |
|
Specifies the maximum number of connections which should get cached in the ORB. |
|
Type of lock used by the cached connector.
|
|
|
|
Specifies the typeof purging strategy we should use for cleaning up unused connections |
|
Type of lock used by the corba object.
|
|
Flag that is set to 1 if the reactor obtained from the get_reactor() method is dynamically allocated. If this flag is set to 1, then the reclaim_reactor() method with call the delete operator on the given reactor. This flag is necessary to make sure that a reactor not allocated by the default resource factory is not reclaimed by the default resource factory. Such a situation can occur when a resource factory derived from the default one overrides the get_reactor() method but does not override the reclaim_reactor() method. |
|
This flag specifies whether the factory has been disabled. If it has been disabled we should print warnings if options were processed before (or later). |
|
Type of flushing strategy configured.
|
|
Index of the current element in the parser_names_ array.
|
|
Specifies the limit on the number of muxed connections allowed per-property for the ORB. A value of 0 indicates no limit |
|
Type of lock used by the corba object.
|
|
This flag is used to determine whether options have been processed via the init() function. It is necessary to properly report errors when the default factory is replaced. |
|
Array consisting of the names of the parsers.
|
|
The number of the different types of Parsers.
|
|
list of loaded protocol factories.
|
|
Specifies the percentage of entries which should get purged on demand. |
|
If <0> then we create reactors with signal handling disabled.
|
|
Resource usage strategy.
|
|
The type of data blocks that the ORB should use.
|