TAO  2.3.3
Public Types | Public Member Functions | Protected Member Functions | List of all members
TAO_Resource_Factory Class Referenceabstract

Factory which manufacturers resources for use by the ORB Core. More...

#include <Resource_Factory.h>

Inheritance diagram for TAO_Resource_Factory:
Inheritance graph
[legend]
Collaboration diagram for TAO_Resource_Factory:
Collaboration graph
[legend]

Public Types

enum  Purging_Strategy { LRU, LFU, FIFO, NOOP }
 
enum  Resource_Usage { TAO_EAGER, TAO_LAZY }
 
- Public Types inherited from ACE_Event_Handler
typedef long Reference_Count
 

Public Member Functions

 TAO_Resource_Factory (void)
 
virtual ~TAO_Resource_Factory (void)
 
virtual int use_locked_data_blocks (void) const
 
virtual ACE_Reactorget_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_Registryget_acceptor_registry (void)
 Return a reference to the acceptor registry. More...
 
virtual TAO_Connector_Registryget_connector_registry (void)
 Return a connector to be utilized. More...
 
virtual void use_local_memory_pool (bool)
 Return the Allocator's memory pool type. More...
 
virtual int input_cdr_allocator_type_locked (void)
 
virtual ACE_Allocatoramh_response_handler_allocator (void)
 Access the AMH response handler allocator. More...
 
virtual ACE_Allocatorami_response_handler_allocator (void)
 Access the AMI response handler allocator. More...
 
virtual TAO_ProtocolFactorySetget_protocol_factories (void)
 
virtual int init_protocol_factories (void)
 
virtual TAO_Codeset_Managercodeset_manager (void)
 Gets the codeset manager. 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
 
virtual int max_muxed_connections (void) const
 
virtual int get_parser_names (char **&names, int &number_of_names)
 
virtual ACE_Lockcreate_cached_connection_lock (void)
 
virtual int locked_transport_cache (void)
 
virtual TAO_Flushing_Strategycreate_flushing_strategy (void)=0
 
virtual TAO_Connection_Purging_Strategycreate_purging_strategy (void)=0
 Creates the connection purging strategy. More...
 
virtual TAO_LF_Strategycreate_lf_strategy (void)=0
 
virtual auto_ptr< TAO_GIOP_Fragmentation_Strategycreate_fragmentation_strategy (TAO_Transport *transport, CORBA::ULong max_message_size) const =0
 Outgoing fragment creation strategy. More...
 
virtual void disable_factory (void)=0
 
virtual TAO_Resource_Factory::Resource_Usage resource_usage_strategy (void) const =0
 Return the resource usage strategy. More...
 
virtual bool drop_replies_during_shutdown () const =0
 
Access the input CDR allocators.
virtual ACE_Allocatorinput_cdr_dblock_allocator (void)
 
virtual ACE_Allocatorinput_cdr_buffer_allocator (void)
 
virtual ACE_Allocatorinput_cdr_msgblock_allocator (void)
 
Access the output CDR allocators.
virtual ACE_Allocatoroutput_cdr_dblock_allocator (void)
 
virtual ACE_Allocatoroutput_cdr_buffer_allocator (void)
 
virtual ACE_Allocatoroutput_cdr_msgblock_allocator (void)
 
- Public Member Functions inherited from ACE_Service_Object
 ACE_Service_Object (ACE_Reactor *=0)
 
virtual ~ACE_Service_Object (void)
 
virtual int suspend (void)
 
virtual int resume (void)
 
- Public Member Functions inherited from ACE_Event_Handler
virtual ~ACE_Event_Handler (void)
 
virtual ACE_HANDLE get_handle (void) const
 
virtual void set_handle (ACE_HANDLE)
 
virtual int priority (void) const
 
virtual void priority (int priority)
 
virtual int handle_input (ACE_HANDLE fd=ACE_INVALID_HANDLE)
 
virtual int handle_output (ACE_HANDLE fd=ACE_INVALID_HANDLE)
 
virtual int handle_exception (ACE_HANDLE fd=ACE_INVALID_HANDLE)
 
virtual int handle_timeout (const ACE_Time_Value &current_time, const void *act=0)
 
virtual int handle_exit (ACE_Process *)
 
virtual int handle_close (ACE_HANDLE handle, ACE_Reactor_Mask close_mask)
 
virtual int handle_signal (int signum, siginfo_t *=0, ucontext_t *=0)
 
virtual int resume_handler (void)
 
virtual int handle_qos (ACE_HANDLE=ACE_INVALID_HANDLE)
 
virtual int handle_group_qos (ACE_HANDLE=ACE_INVALID_HANDLE)
 
virtual void reactor (ACE_Reactor *reactor)
 
virtual ACE_Reactorreactor (void) const
 
virtual ACE_Reactor_Timer_Interfacereactor_timer_interface (void) const
 
virtual Reference_Count add_reference (void)
 
virtual Reference_Count remove_reference (void)
 
Reference_Counting_Policyreference_counting_policy (void)
 
- Public Member Functions inherited from ACE_Shared_Object
 ACE_Shared_Object (void)
 
virtual ~ACE_Shared_Object (void)
 
virtual int init (int argc, ACE_TCHAR *argv[])
 
virtual int fini (void)
 
virtual int info (ACE_TCHAR **info_string, size_t length=0) const
 

Protected Member Functions

virtual int load_default_protocols (void)
 
- Protected Member Functions inherited from ACE_Event_Handler
 ACE_Event_Handler (ACE_Reactor *=0, int priority=ACE_Event_Handler::LO_PRIORITY)
 

Additional Inherited Members

- Static Public Member Functions inherited from ACE_Event_Handler
static ACE_THR_FUNC_RETURN read_adapter (void *event_handler)
 
static int register_stdin_handler (ACE_Event_Handler *eh, ACE_Reactor *reactor, ACE_Thread_Manager *thr_mgr, int flags=THR_DETACHED)
 
static int remove_stdin_handler (ACE_Reactor *reactor, ACE_Thread_Manager *thr_mgr)
 
- Public Attributes inherited from ACE_Event_Handler
 LO_PRIORITY
 
 HI_PRIORITY
 
 NULL_MASK
 
 READ_MASK
 
 WRITE_MASK
 
 EXCEPT_MASK
 
 ACCEPT_MASK
 
 CONNECT_MASK
 
 TIMER_MASK
 
 QOS_MASK
 
 GROUP_QOS_MASK
 
 SIGNAL_MASK
 
 ALL_EVENTS_MASK
 
 RWE_MASK
 
 DONT_CALL
 
 ACE_EVENT_HANDLER_NOT_RESUMED
 
 ACE_REACTOR_RESUMES_HANDLER
 
 ACE_APPLICATION_RESUMES_HANDLER
 
- Protected Types inherited from ACE_Event_Handler
typedef ACE_Atomic_Op< ACE_SYNCH_MUTEX, Reference_CountAtomic_Reference_Count
 
- Protected Attributes inherited from ACE_Event_Handler
Atomic_Reference_Count reference_count_
 

Detailed Description

Factory which manufacturers resources for use by the ORB Core.

This class is a factory/repository for critical ORB Core resources.

Member Enumeration Documentation

Enumerator
LRU 

Least Recently Used.

LFU 

Least Frequently Used.

FIFO 

First In First Out.

NOOP 

Dont use any strategy.

Enumerator
TAO_EAGER 

Use resources in an eager fashion.

TAO_LAZY 

Use resources in a lazy manner.

Constructor & Destructor Documentation

TAO_Resource_Factory::TAO_Resource_Factory ( void  )
TAO_Resource_Factory::~TAO_Resource_Factory ( void  )
virtual

Member Function Documentation

ACE_Allocator * TAO_Resource_Factory::amh_response_handler_allocator ( void  )
virtual

Access the AMH response handler allocator.

Reimplemented in TAO_Default_Resource_Factory.

ACE_Allocator * TAO_Resource_Factory::ami_response_handler_allocator ( void  )
virtual

Access the AMI response handler allocator.

Reimplemented in TAO_Default_Resource_Factory.

int TAO_Resource_Factory::cache_maximum ( void  ) const
virtual

This denotes the maximum number of connections that can be cached.

Reimplemented in TAO_Default_Resource_Factory.

TAO_Codeset_Manager * TAO_Resource_Factory::codeset_manager ( void  )
virtual

Gets the codeset manager.

Reimplemented in TAO_Default_Resource_Factory.

ACE_Lock * TAO_Resource_Factory::create_cached_connection_lock ( void  )
virtual

Creates the lock for the lock needed in the Cache Map

Deprecated:

Reimplemented in TAO_Default_Resource_Factory.

virtual TAO_Flushing_Strategy* TAO_Resource_Factory::create_flushing_strategy ( void  )
pure virtual

Creates the flushing strategy. The new instance is owned by the caller.

Implemented in TAO_Default_Resource_Factory.

virtual auto_ptr<TAO_GIOP_Fragmentation_Strategy> TAO_Resource_Factory::create_fragmentation_strategy ( TAO_Transport transport,
CORBA::ULong  max_message_size 
) const
pure virtual

Outgoing fragment creation strategy.

Implemented in TAO_Default_Resource_Factory.

virtual TAO_LF_Strategy* TAO_Resource_Factory::create_lf_strategy ( void  )
pure virtual

Creates the leader followers strategy. The new instance is owned by the caller.

Implemented in TAO_Default_Resource_Factory.

virtual TAO_Connection_Purging_Strategy* TAO_Resource_Factory::create_purging_strategy ( void  )
pure virtual

Creates the connection purging strategy.

Implemented in TAO_Default_Resource_Factory.

virtual void TAO_Resource_Factory::disable_factory ( void  )
pure virtual

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.

Implemented in TAO_Default_Resource_Factory.

virtual bool TAO_Resource_Factory::drop_replies_during_shutdown ( ) const
pure virtual

Return the value of the strategy that indicates whether the ORB should wait for the replies during shutdown or drop replies during shutdown.

Implemented in TAO_Default_Resource_Factory.

TAO_Acceptor_Registry * TAO_Resource_Factory::get_acceptor_registry ( void  )
virtual

Return a reference to the acceptor registry.

Reimplemented in TAO_Default_Resource_Factory.

TAO_Connector_Registry * TAO_Resource_Factory::get_connector_registry ( void  )
virtual

Return a connector to be utilized.

Reimplemented in TAO_Default_Resource_Factory.

int TAO_Resource_Factory::get_parser_names ( char **&  names,
int &  number_of_names 
)
virtual

Reimplemented in TAO_Default_Resource_Factory.

TAO_ProtocolFactorySet * TAO_Resource_Factory::get_protocol_factories ( void  )
virtual

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.

ACE_Reactor * TAO_Resource_Factory::get_reactor ( void  )
virtual

Return an ACE_Reactor to be utilized.

Reimplemented in TAO_Default_Resource_Factory.

int TAO_Resource_Factory::init_protocol_factories ( void  )
virtual

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.

int TAO_Resource_Factory::input_cdr_allocator_type_locked ( void  )
virtual

Reimplemented in TAO_Default_Resource_Factory.

ACE_Allocator * TAO_Resource_Factory::input_cdr_buffer_allocator ( void  )
virtual

Reimplemented in TAO_Default_Resource_Factory.

ACE_Allocator * TAO_Resource_Factory::input_cdr_dblock_allocator ( void  )
virtual

Reimplemented in TAO_Default_Resource_Factory.

ACE_Allocator * TAO_Resource_Factory::input_cdr_msgblock_allocator ( void  )
virtual

Reimplemented in TAO_Default_Resource_Factory.

int TAO_Resource_Factory::load_default_protocols ( void  )
protectedvirtual

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.

int TAO_Resource_Factory::locked_transport_cache ( void  )
virtual

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.

int TAO_Resource_Factory::max_muxed_connections ( void  ) const
virtual

Return the number of muxed connections that are allowed for a remote endpoint

Reimplemented in TAO_Default_Resource_Factory.

ACE_Allocator * TAO_Resource_Factory::output_cdr_buffer_allocator ( void  )
virtual

Reimplemented in TAO_Default_Resource_Factory.

ACE_Allocator * TAO_Resource_Factory::output_cdr_dblock_allocator ( void  )
virtual

Reimplemented in TAO_Default_Resource_Factory.

ACE_Allocator * TAO_Resource_Factory::output_cdr_msgblock_allocator ( void  )
virtual

Reimplemented in TAO_Default_Resource_Factory.

int TAO_Resource_Factory::purge_percentage ( void  ) const
virtual

This denotes the amount of entries to remove from the connection cache.

Reimplemented in TAO_Default_Resource_Factory.

void TAO_Resource_Factory::reclaim_reactor ( ACE_Reactor reactor)
virtual

Reclaim reactor resources (e.g. deallocate, etc).

Reimplemented in TAO_Default_Resource_Factory.

virtual TAO_Resource_Factory::Resource_Usage TAO_Resource_Factory::resource_usage_strategy ( void  ) const
pure virtual

Return the resource usage strategy.

Implemented in TAO_Default_Resource_Factory.

void TAO_Resource_Factory::use_local_memory_pool ( bool  )
virtual

Return the Allocator's memory pool type.

Reimplemented in TAO_Default_Resource_Factory.

int TAO_Resource_Factory::use_locked_data_blocks ( void  ) const
virtual

@ Backwards compatibility, return 1 if the ORB core should use Locked_Data_Blocks

Reimplemented in TAO_Default_Resource_Factory.


The documentation for this class was generated from the following files: