summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/orbsvcs/Notify/Structured/StructuredProxyPushSupplier.h
blob: 4ac7d23658ce21bbf371fb64659d702d3aea99bb (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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
/* -*- C++ -*- */
/**
 *  @file StructuredProxyPushSupplier.h
 *
 *  $Id$
 *
 *  @author Pradeep Gore <pradeep@oomworks.com>
 *
 *
 */

#ifndef TAO_NS_STRUCTUREDPROXYPUSHSUPPLIER_H
#define TAO_NS_STRUCTUREDPROXYPUSHSUPPLIER_H
#include "ace/pre.h"

#include "../notify_export.h"

#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */

#include "tao/PortableServer/PortableServerC.h"
#include "orbsvcs/CosNotifyChannelAdminS.h"
#include "../ProxySupplier.h"

/**
 * @class TAO_NS_StructuredProxyPushSupplier
 *
 * @brief Implements the CosNotifyChannelAdmin::StructuredProxyPushSupplier methods. However does not derive from it. This class is to be used by specific Tie implementations of the Notify ProxySupplier interface.
 *
 */
class TAO_Notify_Export TAO_NS_StructuredProxyPushSupplier : public virtual TAO_NS_ProxySupplier
{
  friend class TAO_NS_Builder;

public:
  /// Constuctor
  TAO_NS_StructuredProxyPushSupplier (void);

  /// Destructor
  ~TAO_NS_StructuredProxyPushSupplier ();  

  /// Set the servant.
  void servant (PortableServer::Servant servant);

  /// Return servant
  virtual PortableServer::Servant servant (void);

  /// = Servant methods
  virtual void connect_structured_push_consumer (
    CosNotifyComm::StructuredPushConsumer_ptr push_consumer ACE_ENV_ARG_DECL
  )
  ACE_THROW_SPEC ((
    CORBA::SystemException
    , CosEventChannelAdmin::AlreadyConnected
    , CosEventChannelAdmin::TypeError
  ));

virtual void suspend_connection (
    
  )
  ACE_THROW_SPEC ((
    CORBA::SystemException
    , CosNotifyChannelAdmin::ConnectionAlreadyInactive
    , CosNotifyChannelAdmin::NotConnected
  ));

virtual void resume_connection (
    
  )
  ACE_THROW_SPEC ((
    CORBA::SystemException
    , CosNotifyChannelAdmin::ConnectionAlreadyActive
    , CosNotifyChannelAdmin::NotConnected
  ));

virtual ::CosNotifyChannelAdmin::ProxyType MyType (
    
  )
  ACE_THROW_SPEC ((
    CORBA::SystemException
  ));

virtual ::CosNotifyChannelAdmin::ConsumerAdmin_ptr MyAdmin (
    
  )
  ACE_THROW_SPEC ((
    CORBA::SystemException
  ));

virtual ::CosNotifyFilter::MappingFilter_ptr priority_filter (
    
  )
  ACE_THROW_SPEC ((
    CORBA::SystemException
  ));

virtual void priority_filter (
    CosNotifyFilter::MappingFilter_ptr priority_filter
  )
  ACE_THROW_SPEC ((
    CORBA::SystemException
  ));

virtual ::CosNotifyFilter::MappingFilter_ptr lifetime_filter (
    
  )
  ACE_THROW_SPEC ((
    CORBA::SystemException
  ));

virtual void lifetime_filter (
    CosNotifyFilter::MappingFilter_ptr lifetime_filter
  )
  ACE_THROW_SPEC ((
    CORBA::SystemException
  ));

virtual ::CosNotification::EventTypeSeq * obtain_offered_types (
    CosNotifyChannelAdmin::ObtainInfoMode mode
  )
  ACE_THROW_SPEC ((
    CORBA::SystemException
  ));

virtual void validate_event_qos (
    const CosNotification::QoSProperties & required_qos,
    CosNotification::NamedPropertyRangeSeq_out available_qos
  )
  ACE_THROW_SPEC ((
    CORBA::SystemException
    , CosNotification::UnsupportedQoS
  ));

virtual void disconnect_structured_push_supplier (
    
  )
  ACE_THROW_SPEC ((
    CORBA::SystemException
  ));

virtual ::CosNotification::QoSProperties * get_qos (
    
  )
  ACE_THROW_SPEC ((
    CORBA::SystemException
  ));

virtual void set_qos (
    const CosNotification::QoSProperties & qos
  )
  ACE_THROW_SPEC ((
    CORBA::SystemException
    , CosNotification::UnsupportedQoS
  ));

virtual void validate_qos (
    const CosNotification::QoSProperties & required_qos,
    CosNotification::NamedPropertyRangeSeq_out available_qos
  )
  ACE_THROW_SPEC ((
    CORBA::SystemException
    , CosNotification::UnsupportedQoS
  ));

virtual CosNotifyFilter::FilterID add_filter (
    CosNotifyFilter::Filter_ptr new_filter
  )
  ACE_THROW_SPEC ((
    CORBA::SystemException
  ));

virtual void remove_filter (
    CosNotifyFilter::FilterID filter
  )
  ACE_THROW_SPEC ((
    CORBA::SystemException
    , CosNotifyFilter::FilterNotFound
  ));

virtual ::CosNotifyFilter::Filter_ptr get_filter (
    CosNotifyFilter::FilterID filter
  )
  ACE_THROW_SPEC ((
    CORBA::SystemException
    , CosNotifyFilter::FilterNotFound
  ));

virtual ::CosNotifyFilter::FilterIDSeq * get_all_filters (
    
  )
  ACE_THROW_SPEC ((
    CORBA::SystemException
  ));

virtual void remove_all_filters (
    
  )
  ACE_THROW_SPEC ((
    CORBA::SystemException
  ));

virtual void subscription_change (
    const CosNotification::EventTypeSeq & added,
    const CosNotification::EventTypeSeq & removed
    ACE_ENV_ARG_DECL
  )
  ACE_THROW_SPEC ((
    CORBA::SystemException
    , CosNotifyComm::InvalidEventType
  ));

protected:
  PortableServer::Servant servant_;
};

#if defined (__ACE_INLINE__)
#include "StructuredProxyPushSupplier.inl"
#endif /* __ACE_INLINE__ */

#include "ace/post.h"
#endif /* TAO_NS_STRUCTUREDPROXYPUSHSUPPLIER_H */