blob: 0658ed02f2ad6e2ca96432ce4305f83f13cf91a0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
// $Id$
#include "CosEC_ProxyPushSupplier.h"
#if ! defined (__ACE_INLINE__)
#include "CosEC_ProxyPushSupplier.inl"
#endif /* __ACE_INLINE__ */
ACE_RCSID(Notify, TAO_Notify_CosEC_ProxyPushSupplier, "$id$")
#include "tao/debug.h"
#include "PushConsumer.h"
TAO_Notify_CosEC_ProxyPushSupplier::TAO_Notify_CosEC_ProxyPushSupplier (void)
{
}
TAO_Notify_CosEC_ProxyPushSupplier::~TAO_Notify_CosEC_ProxyPushSupplier ()
{
}
void
TAO_Notify_CosEC_ProxyPushSupplier::destroy (ACE_ENV_SINGLE_ARG_DECL)
{
if (TAO_debug_level > 0)
ACE_DEBUG ((LM_DEBUG, "In TAO_Notify_ProxyPushConsumer::destroy \n"));
if (this->shutdown (ACE_ENV_SINGLE_ARG_PARAMETER) == 1)
return;
ACE_CHECK;
}
void
TAO_Notify_CosEC_ProxyPushSupplier::release (void)
{
this->consumer_->release ();
delete this;
//@@ inform factory
}
void
TAO_Notify_CosEC_ProxyPushSupplier::connect_push_consumer (CosEventComm::PushConsumer_ptr push_consumer
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((
CORBA::SystemException,
CosEventChannelAdmin::AlreadyConnected,
CosEventChannelAdmin::TypeError
))
{
// Convert Consumer to Base Type
TAO_Notify_PushConsumer* consumer;
ACE_NEW_THROW_EX (consumer,
TAO_Notify_PushConsumer (this),
CORBA::NO_MEMORY ());
consumer->init (push_consumer ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
this->connect (consumer ACE_ENV_ARG_PARAMETER);
}
void
TAO_Notify_CosEC_ProxyPushSupplier::disconnect_push_supplier (ACE_ENV_SINGLE_ARG_DECL)
ACE_THROW_SPEC ((
CORBA::SystemException
))
{
this->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
}
|