summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ProxyPushConsumer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/orbsvcs/orbsvcs/CosEvent/CEC_ProxyPushConsumer.cpp')
-rw-r--r--TAO/orbsvcs/orbsvcs/CosEvent/CEC_ProxyPushConsumer.cpp89
1 files changed, 32 insertions, 57 deletions
diff --git a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ProxyPushConsumer.cpp b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ProxyPushConsumer.cpp
index c65d0968f98..6fad8240c31 100644
--- a/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ProxyPushConsumer.cpp
+++ b/TAO/orbsvcs/orbsvcs/CosEvent/CEC_ProxyPushConsumer.cpp
@@ -44,60 +44,51 @@ TAO_CEC_ProxyPushConsumer::~TAO_CEC_ProxyPushConsumer (void)
void
TAO_CEC_ProxyPushConsumer::activate (
- CosEventChannelAdmin::ProxyPushConsumer_ptr &activated_proxy
- ACE_ENV_ARG_DECL)
+ CosEventChannelAdmin::ProxyPushConsumer_ptr &activated_proxy)
ACE_THROW_SPEC ((CORBA::SystemException))
{
CosEventChannelAdmin::ProxyPushConsumer_var result;
- ACE_TRY
+ try
{
- result = this->_this (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ result = this->_this ();
}
- ACE_CATCHANY
+ catch (const CORBA::Exception&)
{
result = CosEventChannelAdmin::ProxyPushConsumer::_nil ();
}
- ACE_ENDTRY;
activated_proxy = result._retn ();
}
void
-TAO_CEC_ProxyPushConsumer::deactivate (ACE_ENV_SINGLE_ARG_DECL)
+TAO_CEC_ProxyPushConsumer::deactivate (void)
ACE_THROW_SPEC ((CORBA::SystemException))
{
- ACE_TRY
+ try
{
PortableServer::POA_var poa =
- this->_default_POA (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ this->_default_POA ();
PortableServer::ObjectId_var id =
- poa->servant_to_id (this ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
- poa->deactivate_object (id.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ poa->servant_to_id (this);
+ poa->deactivate_object (id.in ());
}
- ACE_CATCHANY
+ catch (const CORBA::Exception&)
{
// Exceptions here should not be propagated. They usually
// indicate that an object is beign disconnected twice, or some
// race condition, but not a fault that the user needs to know
// about.
}
- ACE_ENDTRY;
}
CORBA::Boolean
TAO_CEC_ProxyPushConsumer::supplier_non_existent (
- CORBA::Boolean_out disconnected
- ACE_ENV_ARG_DECL)
+ CORBA::Boolean_out disconnected)
{
CORBA::Object_var supplier;
{
ACE_GUARD_THROW_EX (
ACE_Lock, ace_mon, *this->lock_,
CORBA::INTERNAL ());
- ACE_CHECK_RETURN (0);
disconnected = false;
if (!this->is_connected_i ())
@@ -113,14 +104,14 @@ TAO_CEC_ProxyPushConsumer::supplier_non_existent (
}
#if (TAO_HAS_MINIMUM_CORBA == 0)
- return supplier->_non_existent (ACE_ENV_SINGLE_ARG_PARAMETER);
+ return supplier->_non_existent ();
#else
return false;
#endif /* TAO_HAS_MINIMUM_CORBA */
}
void
-TAO_CEC_ProxyPushConsumer::shutdown (ACE_ENV_SINGLE_ARG_DECL)
+TAO_CEC_ProxyPushConsumer::shutdown (void)
{
CosEventComm::PushSupplier_var supplier;
@@ -129,29 +120,25 @@ TAO_CEC_ProxyPushConsumer::shutdown (ACE_ENV_SINGLE_ARG_DECL)
ACE_Lock, ace_mon, *this->lock_,
CORBA::INTERNAL ());
// @@ CosEventChannelAdmin::EventChannel::SYNCHRONIZATION_ERROR ());
- ACE_CHECK;
supplier = this->supplier_._retn ();
this->connected_ = false;
}
- this->deactivate (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_CHECK;
+ this->deactivate ();
if (CORBA::is_nil (supplier.in ()))
return;
- ACE_TRY
+ try
{
- supplier->disconnect_push_supplier (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ supplier->disconnect_push_supplier ();
}
- ACE_CATCHANY
+ catch (const CORBA::Exception&)
{
// Ignore exceptions, we must isolate other clients from
// failures on this one.
}
- ACE_ENDTRY;
}
void
@@ -186,8 +173,7 @@ TAO_CEC_ProxyPushConsumer::_decr_refcnt (void)
void
TAO_CEC_ProxyPushConsumer::connect_push_supplier (
- CosEventComm::PushSupplier_ptr push_supplier
- ACE_ENV_ARG_DECL)
+ CosEventComm::PushSupplier_ptr push_supplier)
ACE_THROW_SPEC ((CORBA::SystemException,
CosEventChannelAdmin::AlreadyConnected))
{
@@ -196,12 +182,11 @@ TAO_CEC_ProxyPushConsumer::connect_push_supplier (
ACE_Lock, ace_mon, *this->lock_,
CORBA::INTERNAL ());
// @@ CosEventChannelAdmin::EventChannel::SYNCHRONIZATION_ERROR ());
- ACE_CHECK;
if (this->is_connected_i ())
{
if (this->event_channel_->supplier_reconnect () == 0)
- ACE_THROW (CosEventChannelAdmin::AlreadyConnected ());
+ throw CosEventChannelAdmin::AlreadyConnected ();
// Re-connections are allowed, go ahead and disconnect the
// consumer...
@@ -216,10 +201,8 @@ TAO_CEC_ProxyPushConsumer::connect_push_supplier (
TAO_CEC_Unlock, ace_mon, reverse_lock,
CORBA::INTERNAL ());
// @@ CosEventChannelAdmin::EventChannel::SYNCHRONIZATION_ERROR ());
- ACE_CHECK;
- this->event_channel_->disconnected (this ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
+ this->event_channel_->disconnected (this);
}
// What if a second thread connected us after this?
@@ -231,7 +214,7 @@ TAO_CEC_ProxyPushConsumer::connect_push_supplier (
}
// Notify the event channel...
- this->event_channel_->connected (this ACE_ENV_ARG_PARAMETER);
+ this->event_channel_->connected (this);
}
CosEventComm::PushSupplier_ptr
@@ -263,8 +246,7 @@ TAO_CEC_ProxyPushConsumer::apply_policy (CosEventComm::PushSupplier_ptr pre)
}
void
-TAO_CEC_ProxyPushConsumer::push (const CORBA::Any& event
- ACE_ENV_ARG_DECL)
+TAO_CEC_ProxyPushConsumer::push (const CORBA::Any& event)
ACE_THROW_SPEC ((CORBA::SystemException))
{
TAO_CEC_ProxyPushConsumer_Guard ace_mon (this->lock_,
@@ -274,14 +256,11 @@ TAO_CEC_ProxyPushConsumer::push (const CORBA::Any& event
if (!ace_mon.locked ())
return;
- this->event_channel_->consumer_admin ()->push (event
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
+ this->event_channel_->consumer_admin ()->push (event);
}
void
-TAO_CEC_ProxyPushConsumer::disconnect_push_consumer (
- ACE_ENV_SINGLE_ARG_DECL)
+TAO_CEC_ProxyPushConsumer::disconnect_push_consumer ()
ACE_THROW_SPEC ((CORBA::SystemException))
{
CosEventComm::PushSupplier_var supplier;
@@ -291,10 +270,9 @@ TAO_CEC_ProxyPushConsumer::disconnect_push_consumer (
ACE_Lock, ace_mon, *this->lock_,
CORBA::INTERNAL ());
// @@ CosEventChannelAdmin::EventChannel::SYNCHRONIZATION_ERROR ());
- ACE_CHECK;
if (!this->is_connected_i ())
- ACE_THROW (CORBA::BAD_INV_ORDER ()); // @@ add user exception?
+ throw CORBA::BAD_INV_ORDER (); // @@ add user exception?
supplier = this->supplier_._retn ();
@@ -302,42 +280,39 @@ TAO_CEC_ProxyPushConsumer::disconnect_push_consumer (
}
// Notify the event channel...
- this->event_channel_->disconnected (this ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
+ this->event_channel_->disconnected (this);
if (CORBA::is_nil (supplier.in ()))
return;
if (this->event_channel_->disconnect_callbacks ())
{
- ACE_TRY
+ try
{
- supplier->disconnect_push_supplier (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ supplier->disconnect_push_supplier ();
}
- ACE_CATCHANY
+ catch (const CORBA::Exception&)
{
// Ignore exceptions, we must isolate other clients from
// failures on this one.
}
- ACE_ENDTRY;
}
}
PortableServer::POA_ptr
-TAO_CEC_ProxyPushConsumer::_default_POA (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
+TAO_CEC_ProxyPushConsumer::_default_POA (void)
{
return PortableServer::POA::_duplicate (this->default_POA_.in ());
}
void
-TAO_CEC_ProxyPushConsumer::_add_ref (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
+TAO_CEC_ProxyPushConsumer::_add_ref (void)
{
this->_incr_refcnt ();
}
void
-TAO_CEC_ProxyPushConsumer::_remove_ref (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
+TAO_CEC_ProxyPushConsumer::_remove_ref (void)
{
this->_decr_refcnt ();
}