summaryrefslogtreecommitdiff
path: root/TAO/tao/Resource_Factory.h
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tao/Resource_Factory.h')
-rw-r--r--TAO/tao/Resource_Factory.h146
1 files changed, 0 insertions, 146 deletions
diff --git a/TAO/tao/Resource_Factory.h b/TAO/tao/Resource_Factory.h
deleted file mode 100644
index 71d8a9c7141..00000000000
--- a/TAO/tao/Resource_Factory.h
+++ /dev/null
@@ -1,146 +0,0 @@
-// -*- C++ -*-
-// $Id$
-
-// ============================================================================
-//
-// = LIBRARY
-// TAO
-//
-// = FILENAME
-// Resource_Factory.h
-//
-// = AUTHOR
-// Chris Cleeland
-// Carlos O'Ryan
-//
-// ============================================================================
-
-#ifndef TAO_RESOURCE_FACTORY_H
-#define TAO_RESOURCE_FACTORY_H
-
-#include "ace/Service_Object.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include "ace/Hash_Map_Manager.h"
-#include "tao/IIOP_Connector.h"
-#include "tao/corbafwd.h"
-
-class TAO_Client_Connection_Handler;
-class TAO_POA;
-class TAO_Object_Adapter;
-
-// ****************************************************************
-
-class TAO_Cached_Connector_Lock : public ACE_Adaptive_Lock
-{
- // TITLE
- // This lock class determines the type underlying lock
- // when it gets constructed.
-public:
- TAO_Cached_Connector_Lock (void);
- ~TAO_Cached_Connector_Lock (void);
-};
-
-typedef ACE_Cached_Connect_Strategy<TAO_Client_Connection_Handler,
- TAO_SOCK_CONNECTOR,
- TAO_Cached_Connector_Lock>
- TAO_CACHED_CONNECT_STRATEGY;
-
-// ****************************************************************
-
-class TAO_Collocation_Table_Lock : public ACE_Adaptive_Lock
-{
- // TITLE
- // This lock class determines the type underlying lock
- // when it gets constructed.
-public:
- TAO_Collocation_Table_Lock (void);
- ~TAO_Collocation_Table_Lock (void);
-};
-
-typedef ACE_Hash_Map_Manager<ACE_INET_Addr, TAO_Object_Adapter *, TAO_Collocation_Table_Lock> TAO_GLOBAL_Collocation_Table;
-
-// ****************************************************************
-
-typedef ACE_NOOP_Creation_Strategy<TAO_Client_Connection_Handler>
- TAO_NULL_CREATION_STRATEGY;
-
-typedef ACE_NOOP_Concurrency_Strategy<TAO_Client_Connection_Handler>
- TAO_NULL_ACTIVATION_STRATEGY;
-
-// ****************************************************************
-
-class TAO_Export TAO_Resource_Factory : public ACE_Service_Object
-{
- // = TITLE
- // Factory which manufacturers resources for use by the ORB Core.
- //
- // = DESCRIPTION
- // This class is a factory/repository for critical ORB Core
- // resources.
- //
-public:
- // = Initialization and termination methods.
- TAO_Resource_Factory (void);
- virtual ~TAO_Resource_Factory (void);
-
- // = Resource Retrieval
-
- virtual ACE_Reactor *get_reactor (void);
- // Return an <ACE_Reactor> to be utilized.
-
- virtual ACE_Thread_Manager *get_thr_mgr (void);
- // Return an <ACE_Thread_Manager> to be utilized.
-
- virtual TAO_Connector *get_connector (void);
- // Return an Connector to be utilized.
-
- virtual TAO_Connector_Registry *get_connector_registry (void);
- // Return an Connector to be utilized.
-
- virtual TAO_CACHED_CONNECT_STRATEGY *get_cached_connect_strategy (void);
- // Return an Cached Connect Strategy to be utilized.
-
- virtual TAO_NULL_CREATION_STRATEGY *get_null_creation_strategy (void);
- // This no-op creation strategy is necessary for using the
- // <Strategy_Connector> with the <Cached_Connect_Strategy>.
-
- virtual TAO_NULL_ACTIVATION_STRATEGY *get_null_activation_strategy (void);
- // This no-op activation strategy prevents the cached connector from
- // calling the service handler's <open> method multiple times.
-
- virtual TAO_Acceptor *get_acceptor (void);
- // Return an Acceptor to be utilized.
-
- virtual TAO_POA *get_root_poa (void);
- // Return a root poa to be utilized.
-
- virtual TAO_Object_Adapter *object_adapter (void);
- // Return a object adapter to be utilized.
-
- virtual TAO_GLOBAL_Collocation_Table *get_global_collocation_table (void);
- // Get the global collocation table. Return the pointer to the
- // global collocation table if we are using one, otherwise, return
- // 0.
-
- virtual ACE_Allocator* input_cdr_dblock_allocator (void);
- virtual ACE_Allocator* input_cdr_buffer_allocator (void);
- // Access the input CDR allocators.
-
- virtual ACE_Allocator* output_cdr_dblock_allocator (void);
- virtual ACE_Allocator* output_cdr_buffer_allocator (void);
- // Access the output CDR allocators.
-
- virtual ACE_Data_Block *create_input_cdr_data_block (size_t size);
- // The Message Blocks used for input CDRs must have appropiate
- // locking strategies.
-
- virtual int reactor_lock (void);
- // Returns 0 if a reactor without locking was configured.
-
-};
-
-#endif /* TAO_RESOURCE_FACTORY_H */