diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2005-10-12 09:07:04 +0000 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2005-10-12 09:07:04 +0000 |
commit | ceff960ca06df25036cb8097866fb05caafd4666 (patch) | |
tree | fba4a24642972158d18a2edd85a5f57debb718aa /TAO/tao/ORB_Core.h | |
parent | 3e60578eea8bf0bb92d9ab55a2e695f95cde13a4 (diff) | |
download | ATCD-ceff960ca06df25036cb8097866fb05caafd4666.tar.gz |
ChangeLogTag: Wed Oct 12 08:42:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
Diffstat (limited to 'TAO/tao/ORB_Core.h')
-rw-r--r-- | TAO/tao/ORB_Core.h | 47 |
1 files changed, 20 insertions, 27 deletions
diff --git a/TAO/tao/ORB_Core.h b/TAO/tao/ORB_Core.h index 635200f814e..e78a7eea3d5 100644 --- a/TAO/tao/ORB_Core.h +++ b/TAO/tao/ORB_Core.h @@ -94,15 +94,6 @@ class TAO_Codeset_Manager; class TAO_IORInterceptor_Adapter; class TAO_Valuetype_Adapter; -#if (TAO_HAS_BUFFERING_CONSTRAINT_POLICY == 1) - -class TAO_Eager_Buffering_Sync_Strategy; -class TAO_Delayed_Buffering_Sync_Strategy; - -#endif /* TAO_HAS_BUFFERING_CONSTRAINT_POLICY == 1 */ - -class TAO_Transport_Sync_Strategy; -class TAO_Sync_Strategy; class TAO_Policy_Validator; namespace TAO @@ -110,6 +101,7 @@ namespace TAO class GUIResource_Factory; class PolicyFactory_Registry_Adapter; class ORBInitializer_Registry_Adapter; + class Transport_Queueing_Strategy; } namespace CORBA @@ -519,8 +511,10 @@ public: bool &has_synchronization, Messaging::SyncScope &scope); - TAO_Sync_Strategy &get_sync_strategy (TAO_Stub *stub, - Messaging::SyncScope &scope); + TAO::Transport_Queueing_Strategy &get_transport_queueing_strategy ( + TAO_Stub *stub, + Messaging::SyncScope &scope); + typedef void (*Sync_Scope_Hook) (TAO_ORB_Core *, TAO_Stub *, bool &, @@ -528,19 +522,6 @@ public: static void set_sync_scope_hook (Sync_Scope_Hook hook); -#if (TAO_HAS_BUFFERING_CONSTRAINT_POLICY == 1) - - /// This strategy will buffer messages. - //@{ - TAO_Eager_Buffering_Sync_Strategy &eager_buffering_sync_strategy (void); - TAO_Delayed_Buffering_Sync_Strategy &delayed_buffering_sync_strategy (void); - //@} - -#endif /* TAO_HAS_BUFFERING_CONSTRAINT_POLICY == 1 */ - - /// This strategy will sync with the transport. - TAO_Transport_Sync_Strategy &transport_sync_strategy (void); - /// Handle to the factory for protocols_hooks_.. TAO_Protocols_Hooks *protocols_hooks_; @@ -879,6 +860,9 @@ public: /// Choose to be not a default ORB when there is more than one ORB. void not_default (const char * orb_id); + /// This strategy will sync with the transport. + TAO::Transport_Queueing_Strategy &default_transport_queueing_strategy (void); + protected: /// Destructor is protected since the ORB Core is a reference @@ -968,6 +952,15 @@ private: CORBA::Boolean is_collocation_enabled (TAO_ORB_Core *other_orb, const TAO_MProfile &mp); +#if (TAO_HAS_BUFFERING_CONSTRAINT_POLICY == 1) + + /// This strategy will buffer messages. + //@{ + TAO::Transport_Queueing_Strategy &eager_transport_queueing_strategy (void); + TAO::Transport_Queueing_Strategy &delayed_transport_queueing_strategy (void); + //@} + +#endif /* TAO_HAS_BUFFERING_CONSTRAINT_POLICY == 1 */ protected: @@ -1139,15 +1132,15 @@ protected: #if (TAO_HAS_BUFFERING_CONSTRAINT_POLICY == 1) /// This strategy will buffer messages. - TAO_Eager_Buffering_Sync_Strategy *eager_buffering_sync_strategy_; + TAO::Transport_Queueing_Strategy *eager_transport_queueing_strategy_; /// This strategy will buffer messages. - TAO_Delayed_Buffering_Sync_Strategy *delayed_buffering_sync_strategy_; + TAO::Transport_Queueing_Strategy *delayed_transport_queueing_strategy_; #endif /* TAO_HAS_BUFFERING_CONSTRAINT_POLICY == 1 */ /// This strategy will sync with the transport. - TAO_Transport_Sync_Strategy *transport_sync_strategy_; + TAO::Transport_Queueing_Strategy *default_transport_queueing_strategy_; /// Number of outstanding references to this object. CORBA::ULong refcount_; |