1
// Admin.cpp,v 1.6 2003/10/28 18:34:23 bala Exp
4
#if ! defined (__ACE_INLINE__)
6
#endif /* __ACE_INLINE__ */
10
"Admin.cpp,v 1.6 2003/10/28 18:34:23 bala Exp")
12
#include "orbsvcs/CosNotifyChannelAdminC.h"
14
#include "Container_T.h"
16
#include "EventChannel.h"
18
TAO_Notify_Admin::TAO_Notify_Admin (void)
20
, proxy_container_ (0)
21
, filter_operator_ (CosNotifyChannelAdmin::OR_OP)
23
// Initialize all Admin objects to initially be subscribed for all events.
24
// This is a reasonable default and is required to allow Cos Event consumers/suppliers to send/receive events,
25
this->subscribed_types_.insert (TAO_Notify_EventType::special ());
28
TAO_Notify_Admin::~TAO_Notify_Admin ()
30
this->ec_->_decr_refcnt ();
34
TAO_Notify_Admin::init (TAO_Notify_EventChannel *ec ACE_ENV_ARG_DECL)
38
this->ec_->_incr_refcnt ();
40
this->TAO_Notify_Object::init (ec);
42
ACE_NEW_THROW_EX (this->proxy_container_,
43
TAO_Notify_Proxy_Container (),
47
this->proxy_container_->init (ACE_ENV_SINGLE_ARG_PARAMETER);
53
TAO_Notify_Admin::remove (TAO_Notify_Proxy* proxy ACE_ENV_ARG_DECL)
55
this->proxy_container_->remove (proxy ACE_ENV_ARG_PARAMETER);
60
TAO_Notify_Admin::subscribed_types (TAO_Notify_EventTypeSeq& subscribed_types ACE_ENV_ARG_DECL)
62
ACE_GUARD_THROW_EX (TAO_SYNCH_MUTEX, ace_mon, this->lock_,
67
subscribed_types = this->subscribed_types_;
71
TAO_Notify_Admin::shutdown (ACE_ENV_SINGLE_ARG_DECL)
73
if (TAO_Notify_Object::shutdown (ACE_ENV_SINGLE_ARG_PARAMETER) == 1)
76
this->proxy_container_->shutdown (ACE_ENV_SINGLE_ARG_PARAMETER);
79
delete this->proxy_container_;
85
TAO_Notify_Admin::insert (TAO_Notify_Proxy* proxy ACE_ENV_ARG_DECL)
87
this->proxy_container_->insert (proxy ACE_ENV_ARG_PARAMETER);
90
#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION)
92
template class TAO_ESF_Shutdown_Proxy<TAO_Notify_Proxy>;
93
template class TAO_Notify_Container_T <TAO_Notify_Proxy>;
95
#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
97
#pragma TAO_ESF_Shutdown_Proxy<TAO_Notify_Proxy>
98
#pragma instantiate TAO_Notify_Container_T <TAO_Notify_Proxy>
100
#endif /*ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */