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 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392
|
//File: CosNotifyChannelAdmin.idl
//Part of the Notification Service
#ifndef _COS_NOTIFY_CHANNEL_ADMIN_IDL_
#define _COS_NOTIFY_CHANNEL_ADMIN_IDL_
// omniORB specific pragmas to insert extra includes into the stub header.
#pragma hh #include "COS_sysdep.h"
#include <CosNotification.idl>
#include <CosNotifyFilter.idl>
#include <CosNotifyComm.idl>
#include <CosEventChannelAdmin.idl>
#pragma prefix "omg.org"
module CosNotifyChannelAdmin {
exception ConnectionAlreadyActive {};
exception ConnectionAlreadyInactive {};
exception NotConnected {};
// Forward declarations
interface ConsumerAdmin;
interface SupplierAdmin;
interface EventChannel;
interface EventChannelFactory;
enum ProxyType {
PUSH_ANY,
PULL_ANY,
PUSH_STRUCTURED,
PULL_STRUCTURED,
PUSH_SEQUENCE,
PULL_SEQUENCE,
PUSH_TYPED,
PULL_TYPED
};
enum ObtainInfoMode {
ALL_NOW_UPDATES_OFF,
ALL_NOW_UPDATES_ON,
NONE_NOW_UPDATES_OFF,
NONE_NOW_UPDATES_ON
};
interface ProxyConsumer :
CosNotification::QoSAdmin,
CosNotifyFilter::FilterAdmin {
readonly attribute ProxyType MyType;
readonly attribute SupplierAdmin MyAdmin;
CosNotification::EventTypeSeq obtain_subscription_types(
in ObtainInfoMode mode );
void validate_event_qos (
in CosNotification::QoSProperties required_qos,
out CosNotification::NamedPropertyRangeSeq available_qos)
raises (CosNotification::UnsupportedQoS);
}; // ProxyConsumer
interface ProxySupplier :
CosNotification::QoSAdmin,
CosNotifyFilter::FilterAdmin {
readonly attribute ProxyType MyType;
readonly attribute ConsumerAdmin MyAdmin;
attribute CosNotifyFilter::MappingFilter priority_filter;
attribute CosNotifyFilter::MappingFilter lifetime_filter;
CosNotification::EventTypeSeq obtain_offered_types(
in ObtainInfoMode mode );
void validate_event_qos (
in CosNotification::QoSProperties required_qos,
out CosNotification::NamedPropertyRangeSeq available_qos)
raises (CosNotification::UnsupportedQoS);
}; // ProxySupplier
interface ProxyPushConsumer :
ProxyConsumer,
CosNotifyComm::PushConsumer {
void connect_any_push_supplier (
in CosEventComm::PushSupplier push_supplier)
raises(CosEventChannelAdmin::AlreadyConnected);
}; // ProxyPushConsumer
interface StructuredProxyPushConsumer :
ProxyConsumer,
CosNotifyComm::StructuredPushConsumer {
void connect_structured_push_supplier (
in CosNotifyComm::StructuredPushSupplier push_supplier)
raises(CosEventChannelAdmin::AlreadyConnected);
}; // StructuredProxyPushConsumer
interface SequenceProxyPushConsumer :
ProxyConsumer,
CosNotifyComm::SequencePushConsumer {
void connect_sequence_push_supplier (
in CosNotifyComm::SequencePushSupplier push_supplier)
raises(CosEventChannelAdmin::AlreadyConnected);
}; // SequenceProxyPushConsumer
interface ProxyPullSupplier :
ProxySupplier,
CosNotifyComm::PullSupplier {
void connect_any_pull_consumer (
in CosEventComm::PullConsumer pull_consumer)
raises(CosEventChannelAdmin::AlreadyConnected);
}; // ProxyPullSupplier
interface StructuredProxyPullSupplier :
ProxySupplier,
CosNotifyComm::StructuredPullSupplier {
void connect_structured_pull_consumer (
in CosNotifyComm::StructuredPullConsumer pull_consumer)
raises(CosEventChannelAdmin::AlreadyConnected);
}; // StructuredProxyPullSupplier
interface SequenceProxyPullSupplier :
ProxySupplier,
CosNotifyComm::SequencePullSupplier {
void connect_sequence_pull_consumer (
in CosNotifyComm::SequencePullConsumer pull_consumer)
raises(CosEventChannelAdmin::AlreadyConnected);
}; // SequenceProxyPullSupplier
interface ProxyPullConsumer :
ProxyConsumer,
CosNotifyComm::PullConsumer {
void connect_any_pull_supplier (
in CosEventComm::PullSupplier pull_supplier)
raises(CosEventChannelAdmin::AlreadyConnected,
CosEventChannelAdmin::TypeError );
void suspend_connection()
raises(ConnectionAlreadyInactive, NotConnected);
void resume_connection()
raises(ConnectionAlreadyActive, NotConnected);
}; // ProxyPullConsumer
interface StructuredProxyPullConsumer :
ProxyConsumer,
CosNotifyComm::StructuredPullConsumer {
void connect_structured_pull_supplier (
in CosNotifyComm::StructuredPullSupplier pull_supplier)
raises(CosEventChannelAdmin::AlreadyConnected,
CosEventChannelAdmin::TypeError );
void suspend_connection()
raises(ConnectionAlreadyInactive, NotConnected);
void resume_connection()
raises(ConnectionAlreadyActive, NotConnected);
}; // StructuredProxyPullConsumer
interface SequenceProxyPullConsumer :
ProxyConsumer,
CosNotifyComm::SequencePullConsumer {
void connect_sequence_pull_supplier (
in CosNotifyComm::SequencePullSupplier pull_supplier)
raises(CosEventChannelAdmin::AlreadyConnected,
CosEventChannelAdmin::TypeError );
void suspend_connection()
raises(ConnectionAlreadyInactive, NotConnected);
void resume_connection()
raises(ConnectionAlreadyActive, NotConnected);
}; // SequenceProxyPullConsumer
interface ProxyPushSupplier :
ProxySupplier,
CosNotifyComm::PushSupplier {
void connect_any_push_consumer (
in CosEventComm::PushConsumer push_consumer)
raises(CosEventChannelAdmin::AlreadyConnected,
CosEventChannelAdmin::TypeError );
void suspend_connection()
raises(ConnectionAlreadyInactive, NotConnected);
void resume_connection()
raises(ConnectionAlreadyActive, NotConnected);
}; // ProxyPushSupplier
interface StructuredProxyPushSupplier :
ProxySupplier,
CosNotifyComm::StructuredPushSupplier {
void connect_structured_push_consumer (
in CosNotifyComm::StructuredPushConsumer push_consumer)
raises(CosEventChannelAdmin::AlreadyConnected,
CosEventChannelAdmin::TypeError );
void suspend_connection()
raises(ConnectionAlreadyInactive, NotConnected);
void resume_connection()
raises(ConnectionAlreadyActive, NotConnected);
}; // StructuredProxyPushSupplier
interface SequenceProxyPushSupplier :
ProxySupplier,
CosNotifyComm::SequencePushSupplier {
void connect_sequence_push_consumer (
in CosNotifyComm::SequencePushConsumer push_consumer)
raises(CosEventChannelAdmin::AlreadyConnected,
CosEventChannelAdmin::TypeError );
void suspend_connection()
raises(ConnectionAlreadyInactive, NotConnected);
void resume_connection()
raises(ConnectionAlreadyActive, NotConnected);
}; // SequenceProxyPushSupplier
typedef long ProxyID;
typedef sequence <ProxyID> ProxyIDSeq;
enum ClientType {
ANY_EVENT,
STRUCTURED_EVENT,
SEQUENCE_EVENT
};
enum InterFilterGroupOperator { AND_OP, OR_OP };
typedef long AdminID;
typedef sequence<AdminID> AdminIDSeq;
exception AdminNotFound {};
exception ProxyNotFound {};
struct AdminLimit {
CosNotification::PropertyName name;
CosNotification::PropertyValue value;
};
exception AdminLimitExceeded { AdminLimit admin_property_err; };
interface ConsumerAdmin :
CosNotification::QoSAdmin,
CosNotifyComm::NotifySubscribe,
CosNotifyFilter::FilterAdmin,
CosEventChannelAdmin::ConsumerAdmin {
readonly attribute AdminID MyID;
readonly attribute EventChannel MyChannel;
readonly attribute InterFilterGroupOperator MyOperator;
attribute CosNotifyFilter::MappingFilter priority_filter;
attribute CosNotifyFilter::MappingFilter lifetime_filter;
readonly attribute ProxyIDSeq pull_suppliers;
readonly attribute ProxyIDSeq push_suppliers;
ProxySupplier get_proxy_supplier (
in ProxyID proxy_id )
raises ( ProxyNotFound );
ProxySupplier obtain_notification_pull_supplier (
in ClientType ctype,
out ProxyID proxy_id)
raises ( AdminLimitExceeded );
ProxySupplier obtain_notification_push_supplier (
in ClientType ctype,
out ProxyID proxy_id)
raises ( AdminLimitExceeded );
void destroy();
}; // ConsumerAdmin
interface SupplierAdmin :
CosNotification::QoSAdmin,
CosNotifyComm::NotifyPublish,
CosNotifyFilter::FilterAdmin,
CosEventChannelAdmin::SupplierAdmin {
readonly attribute AdminID MyID;
readonly attribute EventChannel MyChannel;
readonly attribute InterFilterGroupOperator MyOperator;
readonly attribute ProxyIDSeq pull_consumers;
readonly attribute ProxyIDSeq push_consumers;
ProxyConsumer get_proxy_consumer (
in ProxyID proxy_id )
raises ( ProxyNotFound );
ProxyConsumer obtain_notification_pull_consumer (
in ClientType ctype,
out ProxyID proxy_id)
raises ( AdminLimitExceeded );
ProxyConsumer obtain_notification_push_consumer (
in ClientType ctype,
out ProxyID proxy_id)
raises ( AdminLimitExceeded );
void destroy();
}; // SupplierAdmin
interface EventChannel :
CosNotification::QoSAdmin,
CosNotification::AdminPropertiesAdmin,
CosEventChannelAdmin::EventChannel {
readonly attribute EventChannelFactory MyFactory;
readonly attribute ConsumerAdmin default_consumer_admin;
readonly attribute SupplierAdmin default_supplier_admin;
readonly attribute CosNotifyFilter::FilterFactory
default_filter_factory;
ConsumerAdmin new_for_consumers(
in InterFilterGroupOperator op,
out AdminID id );
SupplierAdmin new_for_suppliers(
in InterFilterGroupOperator op,
out AdminID id );
ConsumerAdmin get_consumeradmin ( in AdminID id )
raises (AdminNotFound);
SupplierAdmin get_supplieradmin ( in AdminID id )
raises (AdminNotFound);
AdminIDSeq get_all_consumeradmins();
AdminIDSeq get_all_supplieradmins();
}; // EventChannel
typedef long ChannelID;
typedef sequence<ChannelID> ChannelIDSeq;
exception ChannelNotFound {};
interface EventChannelFactory {
EventChannel create_channel (
in CosNotification::QoSProperties initial_qos,
in CosNotification::AdminProperties initial_admin,
out ChannelID id)
raises(CosNotification::UnsupportedQoS,
CosNotification::UnsupportedAdmin );
ChannelIDSeq get_all_channels();
EventChannel get_event_channel ( in ChannelID id )
raises (ChannelNotFound);
}; // EventChannelFactory
}; // CosNotifyChannelAdmin
#endif /* _COS_NOTIFY_CHANNEL_ADMIN_IDL_ */
|