---
name: "CosEventDomainAdmin_EventDomain"
section: "3erl"
platform: "linux"
package: "erlang-manpages"
version: "1:19.2.1+dfsg-2+deb9u3"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/CosEventDomainAdmin_EventDomain"
---

# CosEventDomainAdmin\_EventDomain(3erl)

This module implements the Event Domain interface.

## NAME

CosEventDomainAdmin\_EventDomain - This module implements the Event Domain interface.

## DESCRIPTION

To get access to all definitions include necessary *hrl* files by using:\
 *-include\_lib("cosEventDomain/include/\*.hrl").*

This module also exports the functions described in:

- \*

  *CosNotification\_QoSAdmin*

- \*

  *CosNotification\_AdminPropertiesAdmin*

## EXPORTS

**add\_channel(EventDomain, Channel) -\> MemberID**\

Types:

EventDomain = Channel = #objref\
 MemberID = long()\

Adds the given channel to the target domain. The channel must be a *CosNotifyChannelAdmin::EventChannel*.

**get\_all\_channels(EventDomain) -\> MemberIDSeq**\

Types:

EventDomain = #objref\
 MemberIDSeq = \[long()\]\

Returns a a sequence of all channels associated with the target object.

**get\_channel(EventDomain, MemberID) -\> Reply**\

Types:

EventDomain = #objref\
 MemberID = long()\
 Reply = Channel \| {'EXCEPTION', #'CosNotifyChannelAdmin\_ChannelNotFound'{}}\
 Channel = #objref\

If the target domain have a *CosNotifyChannelAdmin::EventChannel* represented by the given id this channel is returned. Otherwise, an exception is raised.

**remove\_channel(EventDomain, MemberID) -\> Reply**\

Types:

EventDomain = #objref\
 MemberID = long()\
 Reply = ok \| {'EXCEPTION', #'CosNotifyChannelAdmin\_ChannelNotFound'{}}\

If a *CosNotifyChannelAdmin::EventChannel* with the *MemberID* exists it will removed and all its *Connections* terminated. Otherwise an exception is raised.

**add\_connection(EventDomain, Connection) -\> Reply**\

Types:

EventDomain = #objref\
 Connection = 'CosEventDomainAdmin\_Connection'{supplier\_id=MemberID, consumer\_id=MemberID, ctype=Type, notification\_style=Style}\
 MemberID = long()\
 Type = 'ANY\_EVENT' \| 'STRUCTURED\_EVENT' \| 'SEQUENCE\_EVENT'\
 Style = 'Pull' \| 'Push'\
 Reply = ConnectionID \| {'EXCEPTION', Exc}\
 ConnectionID = long()\
 Exc = #'CosNotifyChannelAdmin\_ChannelNotFound'{} \| #'CosNotifyChannelAdmin\_TypeError'{} \| #'CosEventDomainAdmin\_AlreadyExists'{} \| #'CosEventDomainAdmin\_DiamondCreationForbidden'{diam=RouteSeq} \| #'CosEventDomainAdmin\_CycleCreationForbidden'{cyc=MemberIDSeq}\
 RouteSeq = \[MemberIDSeq\]\
 MemberIDSeq = \[long()\]\

The Connection parameter must contain valid data to enable the target domain to setup a connection between two channels. The struct members *supplier\_id* and *consumer\_id* determines which channel should produce and consume events. which type of events and if the supplier should push or the consumer pull events is determined by *ctype* and *notification\_style* respectively.

If the target domain is not able to setup the connection the appropriate exception is raised.

**get\_all\_connections(EventDomain) -\> ConnectionIDSeq**\

Types:

EventDomain = #objref\
 ConnectionIDSeq = \[long()\]\

This operation returns a sequence of all connections within the target domain.

**get\_connection(EventDomain, ConnectionID) -\> Reply**\

Types:

EventDomain = #objref\
 ConnectionID = long()\
 Reply = Connection \| {'EXCEPTION', #'CosEventDomainAdmin\_ConnectionNotFound'{}}\
 Connection = 'CosEventDomainAdmin\_Connection'{supplier\_id=MemberID, consumer\_id=MemberID, ctype=Type, notification\_style=Style}\
 MemberID = long()\
 Type = 'ANY\_EVENT' \| 'STRUCTURED\_EVENT' \| 'SEQUENCE\_EVENT'\
 Style = 'Pull' \| 'Push'\

If a connection identified by the given id exists within the target domain, a *#'CosEventDomainAdmin\_Connection'{}* which describe the connection is returned. Otherwise, an exception is raised.

**remove\_connection(EventDomain, ConnectionID) -\> Reply**\

Types:

EventDomain = #objref\
 ConnectionID = long()\
 Reply = ok \| {'EXCEPTION', #'CosEventDomainAdmin\_ConnectionNotFound'{}}\

If the supplied connection id exists, the connection the id represents is terminated. Otherwise, an exception is raised.

**get\_offer\_channels(EventDomain, MemberID) -\> Reply**\

Types:

EventDomain = #objref\
 MemberID = long()\
 Reply = MemberIDSeq \| {'EXCEPTION', #'CosNotifyChannelAdmin\_ChannelNotFound'{}}\

This operation returns a sequence, containing the member id's of all channels within the target domain which will supply events to the channel identified by the given id. But, if no such id exists in this domain, an exception is raised.

**get\_subscription\_channels(EventDomain, MemberID) -\> Reply**\

Types:

EventDomain = #objref\
 Reply = MemberIDSeq \| {'EXCEPTION', #'CosNotifyChannelAdmin\_ChannelNotFound'{}}\

This operations behaves like *get\_subscription\_channels*; the difference is that the id's returned identifies channels which will consume events supplied by the channel associated with the given id.

**destroy(EventDomain) -\> ok**\

Types:

EventDomain = #objref\

Calling this operation will terminate all connections within the target domain. The domain will terminate but all channels will not be affected.

**get\_cycles(EventDomain) -\> RouteSeq**\

Types:

EventDomain = #objref\
 RouteSeq = \[MemberIDSeq\]\
 MemberIDSeq = \[long()\]\

Returns a list of all cycles within the target domain.

**get\_diamonds(EventDomain) -\> DiamondSeq**\

Types:

EventDomain = #objref\
 DiamondSeq = \[RouteSeq\]\
 RouteSeq = \[MemberIDSeq\]\
 MemberIDSeq = \[long()\]\

Returns a list of all diamonds within the target domain

**set\_default\_consumer\_channel(EventDomain, MemberID) -\> Reply**\

Types:

EventDomain = #objref\
 Reply = MemberID \| {'EXCEPTION', #'CosNotifyChannelAdmin\_ChannelNotFound'{}}\
 MemberID = long()\

If the given id represents a channel within the target domain, this channel will be used when connection a supplier client without specifying a certain channel. If no such channel exists an exceptions is raised.

**set\_default\_supplier\_channel(EventDomain, MemberID) -\> Reply**\

Types:

EventDomain = #objref\
 Reply = MemberID \| {'EXCEPTION', #'CosNotifyChannelAdmin\_ChannelNotFound'{}}\
 MemberID = long()\

If the given id represents a channel within the target domain, this channel will be used when connection a consumer client without specifying a certain channel. If no such channel exists an exceptions is raised.

**connect\_push\_consumer(EventDomain, Consumer) -\> Reply**\

Types:

EventDomain = #objref\
 Consumer = CosEventComm::PushConsumer\
 Reply = CosNotifyChannelAdmin::ProxyPushSupplier \| {'EXCEPTION', #'CosNotifyChannelAdmin\_ChannelNotFound'{}}\

If a default Channel have been set, this operation connects the given PushConsumer to it. Otherwise, the *#'CosNotifyChannelAdmin\_ChannelNotFound'{}* exception is raised.

**connect\_pull\_consumer(EventDomain, Consumer) -\> Reply**\

Types:

EventDomain = #objref\
 Consumer = CosEventComm::PullConsumer\
 Reply = CosNotifyChannelAdmin::ProxyPullSupplier \| {'EXCEPTION', #'CosNotifyChannelAdmin\_ChannelNotFound'{}}\

If a default Channel have been set, this operation connects the given PullConsumer to it. Otherwise, the *#'CosNotifyChannelAdmin\_ChannelNotFound'{}* exception is raised.

**connect\_push\_supplier(EventDomain, Supplier) -\> Reply**\

Types:

EventDomain = #objref\
 Supplier = CosEventComm::PushSupplier\
 Reply = CosNotifyChannelAdmin::ProxyPushConsumer \| {'EXCEPTION', #'CosNotifyChannelAdmin\_ChannelNotFound'{}}\

If a default Channel have been set, this operation connects the given PushSupplier to it. Otherwise, the *#'CosNotifyChannelAdmin\_ChannelNotFound'{}* exception is raised.

**connect\_pull\_supplier(EventDomain, Supplier) -\> Reply**\

Types:

EventDomain = #objref\
 Supplier = CosEventComm::PullSupplier\
 Reply = CosNotifyChannelAdmin::ProxyPushConsumer \| {'EXCEPTION', #'CosNotifyChannelAdmin\_ChannelNotFound'{}}\

If a default Channel have been set, this operation connects the given PullSupplier to it. Otherwise, the *#'CosNotifyChannelAdmin\_ChannelNotFound'{}* exception is raised.

**connect\_structured\_push\_consumer(EventDomain, Consumer) -\> Reply**\

Types:

EventDomain = #objref\
 Consumer = CosNotifyComm::StructuredPushConsumer\
 Reply = CosNotifyChannelAdmin::StructuredProxyPushSupplier \| {'EXCEPTION', #'CosNotifyChannelAdmin\_ChannelNotFound'{}}\

If a default Channel have been set, this operation connects the given StructuredPushConsumer to it. Otherwise, the *#'CosNotifyChannelAdmin\_ChannelNotFound'{}* exception is raised.

**connect\_structured\_pull\_consumer(EventDomain, Consumer) -\> Reply**\

Types:

EventDomain = #objref\
 Consumer = CosNotifyComm::StructuredPullConsumer\
 Reply = CosNotifyChannelAdmin::StructuredProxyPullSupplier \| {'EXCEPTION', #'CosNotifyChannelAdmin\_ChannelNotFound'{}}\

If a default Channel have been set, this operation connects the given StructuredPullConsumer to it. Otherwise, the *#'CosNotifyChannelAdmin\_ChannelNotFound'{}* exception is raised.

**connect\_structured\_push\_supplier(EventDomain, Supplier) -\> Reply**\

Types:

EventDomain = #objref\
 Supplier = CosNotifyComm::StructuredPushSupplier\
 Reply = CosNotifyChannelAdmin::StructuredProxyPushConsumer \| {'EXCEPTION', #'CosNotifyChannelAdmin\_ChannelNotFound'{}}\

If a default Channel have been set, this operation connects the given StructuredPushSupplier to it. Otherwise, the *#'CosNotifyChannelAdmin\_ChannelNotFound'{}* exception is raised.

**connect\_structured\_pull\_supplier(EventDomain, Supplier) -\> Reply**\

Types:

EventDomain = #objref\
 Supplier = CosNotifyComm::StructuredPullSupplier\
 Reply = CosNotifyChannelAdmin::StructuredProxyPullConsume \| {'EXCEPTION', #'CosNotifyChannelAdmin\_ChannelNotFound'{}}\

If a default Channel have been set, this operation connects the given StructuredPullSupplier to it. Otherwise, the *#'CosNotifyChannelAdmin\_ChannelNotFound'{}* exception is raised.

**connect\_sequence\_push\_consumer(EventDomain, Consumer) -\> Reply**\

Types:

EventDomain = #objref\
 Consumer = CosNotifyComm::SequencePushConsumer\
 Reply = CosNotifyChannelAdmin::SequenceProxyPushSupplier \| {'EXCEPTION', #'CosNotifyChannelAdmin\_ChannelNotFound'{}}\

If a default Channel have been set, this operation connects the given SequencePushConsumer to it. Otherwise, the *#'CosNotifyChannelAdmin\_ChannelNotFound'{}* exception is raised.

**connect\_sequence\_pull\_consumer(EventDomain, Consumer) -\> Reply**\

Types:

EventDomain = #objref\
 Consumer = CosNotifyComm::SequencePullConsumer\
 Reply = CosNotifyChannelAdmin::SequenceProxyPullSupplier \| {'EXCEPTION', #'CosNotifyChannelAdmin\_ChannelNotFound'{}}\

If a default Channel have been set, this operation connects the given SequencePullConsumer to it. Otherwise, the *#'CosNotifyChannelAdmin\_ChannelNotFound'{}* exception is raised.

**connect\_sequence\_push\_supplier(EventDomain, Supplier) -\> Reply**\

Types:

EventDomain = #objref\
 Supplier = CosNotifyComm::SequencePushSupplier\
 Reply = CosNotifyChannelAdmin::SequenceProxyPushConsumer \| {'EXCEPTION', #'CosNotifyChannelAdmin\_ChannelNotFound'{}}\

If a default Channel have been set, this operation connects the given SequencePushSupplier to it. Otherwise, the *#'CosNotifyChannelAdmin\_ChannelNotFound'{}* exception is raised.

**connect\_sequence\_pull\_supplier(EventDomain, Supplier) -\> Reply**\

Types:

EventDomain = #objref\
 Supplier = CosNotifyComm::SequencePullSupplier\
 Reply = CosNotifyChannelAdmin::SequenceProxyPullConsumer \| {'EXCEPTION', #'CosNotifyChannelAdmin\_ChannelNotFound'{}}\

If a default Channel have been set, this operation connects the given SequencePullSupplier to it. Otherwise, the *#'CosNotifyChannelAdmin\_ChannelNotFound'{}* exception is raised.

**connect\_push\_consumer\_with\_id(EventDomain, Consumer, MemberID) -\> Reply**\

Types:

EventDomain = #objref\
 Consumer = CosEventComm::PushConsumer\
 MemberID = long()\
 Reply = CosNotifyChannelAdmin::ProxyPushSupplier \| {'EXCEPTION', #'CosNotifyChannelAdmin\_ChannelNotFound'{}}\

If a Channel associated with the given MemberID exists within the target Domain, this operation connects the given PushConsumer to it. Otherwise, the *#'CosNotifyChannelAdmin\_ChannelNotFound'{}* exception is raised.

**connect\_pull\_consumer\_with\_id(EventDomain, Consumer, MemberID) -\> Reply**\

Types:

EventDomain = #objref\
 Consumer = CosEventComm::PullConsumer\
 MemberID = long()\
 Reply = CosNotifyChannelAdmin::ProxyPullSupplier \| {'EXCEPTION', #'CosNotifyChannelAdmin\_ChannelNotFound'{}}\

If a Channel associated with the given MemberID exists within the target Domain, this operation connects the given PullConsumer to it. Otherwise, the *#'CosNotifyChannelAdmin\_ChannelNotFound'{}* exception is raised.

**connect\_push\_supplier\_with\_id(EventDomain, Supplier, MemberID) -\> Reply**\

Types:

EventDomain = #objref\
 Supplier = CosEventComm::PushSupplier\
 MemberID = long()\
 Reply = CosNotifyChannelAdmin::ProxyPushConsumer \| {'EXCEPTION', #'CosNotifyChannelAdmin\_ChannelNotFound'{}}\

If a Channel associated with the given MemberID exists within the target Domain, this operation connects the given PushSupplier to it. Otherwise, the *#'CosNotifyChannelAdmin\_ChannelNotFound'{}* exception is raised.

**connect\_pull\_supplier\_with\_id(EventDomain, Supplier, MemberID) -\> Reply**\

Types:

EventDomain = #objref\
 Supplier = CosEventComm::PullSupplier\
 MemberID = long()\
 Reply = CosNotifyChannelAdmin::ProxyPushConsumer \| {'EXCEPTION', #'CosNotifyChannelAdmin\_ChannelNotFound'{}}\

If a Channel associated with the given MemberID exists within the target Domain, this operation connects the given PullSupplier to it. Otherwise, the *#'CosNotifyChannelAdmin\_ChannelNotFound'{}* exception is raised.

**connect\_structured\_push\_consumer\_with\_id(EventDomain, Consumer, MemberID) -\> Reply**\

Types:

EventDomain = #objref\
 Consumer = CosNotifyComm::StructuredPushConsumer\
 MemberID = long()\
 Reply = CosNotifyChannelAdmin::StructuredProxyPushSupplier \| {'EXCEPTION', #'CosNotifyChannelAdmin\_ChannelNotFound'{}}\

If a Channel associated with the given MemberID exists within the target Domain, this operation connects the given StructuredPushConsumer to it. Otherwise, the *#'CosNotifyChannelAdmin\_ChannelNotFound'{}* exception is raised.

**connect\_structured\_pull\_consumer\_with\_id(EventDomain, Consumer, MemberID) -\> Reply**\

Types:

EventDomain = #objref\
 Consumer = CosNotifyComm::StructuredPullConsumer\
 MemberID = long()\
 Reply = CosNotifyChannelAdmin::StructuredProxyPullSupplier \| {'EXCEPTION', #'CosNotifyChannelAdmin\_ChannelNotFound'{}}\

If a Channel associated with the given MemberID exists within the target Domain, this operation connects the given StructuredPullConsumer to it. Otherwise, the *#'CosNotifyChannelAdmin\_ChannelNotFound'{}* exception is raised.

**connect\_structured\_push\_supplier\_with\_id(EventDomain, Supplier, MemberID) -\> Reply**\

Types:

EventDomain = #objref\
 Supplier = CosNotifyComm::StructuredPushSupplier\
 MemberID = long()\
 Reply = CosNotifyChannelAdmin::StructuredProxyPushConsumer \| {'EXCEPTION', #'CosNotifyChannelAdmin\_ChannelNotFound'{}}\

If a Channel associated with the given MemberID exists within the target Domain, this operation connects the given StructuredPushSupplier to it. Otherwise, the *#'CosNotifyChannelAdmin\_ChannelNotFound'{}* exception is raised.

**connect\_structured\_pull\_supplier\_with\_id(EventDomain, Supplier, MemberID) -\> Reply**\

Types:

EventDomain = #objref\
 Supplier = CosNotifyComm::StructuredPullSupplier\
 MemberID = long()\
 Reply = CosNotifyChannelAdmin::StructuredProxyPullConsumer \| {'EXCEPTION', #'CosNotifyChannelAdmin\_ChannelNotFound'{}}\

If a Channel associated with the given MemberID exists within the target Domain, this operation connects the given StructuredPullSupplier to it. Otherwise, the *#'CosNotifyChannelAdmin\_ChannelNotFound'{}* exception is raised.

**connect\_sequence\_push\_consumer\_with\_id(EventDomain, Consumer, MemberID) -\> Reply**\

Types:

EventDomain = #objref\
 Consumer = CosNotifyComm::SequencePushConsumer\
 MemberID = long()\
 Reply = CosNotifyChannelAdmin::SequenceProxyPushSupplier \| {'EXCEPTION', #'CosNotifyChannelAdmin\_ChannelNotFound'{}}\

If a Channel associated with the given MemberID exists within the target Domain, this operation connects the given SequencePushConsumer to it. Otherwise, the *#'CosNotifyChannelAdmin\_ChannelNotFound'{}* exception is raised.

**connect\_sequence\_pull\_consumer\_with\_id(EventDomain, Consumer, MemberID) -\> Reply**\

Types:

EventDomain = #objref\
 Consumer = CosNotifyComm::SequencePullConsumer\
 MemberID = long()\
 Reply = CosNotifyChannelAdmin::SequenceProxyPullSupplier \| {'EXCEPTION', #'CosNotifyChannelAdmin\_ChannelNotFound'{}}\

If a Channel associated with the given MemberID exists within the target Domain, this operation connects the given SequencePullConsumer to it. Otherwise, the *#'CosNotifyChannelAdmin\_ChannelNotFound'{}* exception is raised.

**connect\_sequence\_push\_supplier\_with\_id(EventDomain, Supplier, MemberID) -\> Reply**\

Types:

EventDomain = #objref\
 Supplier = CosNotifyComm::SequencePushSupplier\
 MemberID = long()\
 Reply = CosNotifyChannelAdmin::SequenceProxyPushConsumer \| {'EXCEPTION', #'CosNotifyChannelAdmin\_ChannelNotFound'{}}\

If a Channel associated with the given MemberID exists within the target Domain, this operation connects the given SequencePushSupplier to it. Otherwise, the *#'CosNotifyChannelAdmin\_ChannelNotFound'{}* exception is raised.

**connect\_sequence\_pull\_supplier\_with\_id(EventDomain, Supplier, MemberID) -\> Reply**\

Types:

EventDomain = #objref\
 Supplier = CosNotifyComm::SequencePullSupplier\
 MemberID = long()\
 Reply = CosNotifyChannelAdmin::SequenceProxyPullConsumer \| {'EXCEPTION', #'CosNotifyChannelAdmin\_ChannelNotFound'{}}\

If a Channel associated with the given MemberID exists within the target Domain, this operation connects the given SequencePullSupplier to it. Otherwise, the *#'CosNotifyChannelAdmin\_ChannelNotFound'{}* exception is raised.
