2000 2011 Ericsson AB, All Rights Reserved The contents of this file are subject to the Erlang Public License, Version 1.1, (the "License"); you may not use this file except in compliance with the License. You should have received a copy of the Erlang Public License along with this software. If not, it can be retrieved online at http://www.erlang.org/. Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. The Initial Developer of the Original Code is Ericsson AB. CosNotifyChannelAdmin_­StructuredProxyPushConsumer ..._StructuredProxyPushConsumer Niclas Eklund Niclas Eklund Niclas Eklund 2000-02-01 1.0
CosNotifyChannelAdmin_­StructuredProxyPushConsumer This module implements the OMG CosNotifyChannelAdmin::StructuredProxyPushConsumer interface.

To get access to the record definitions for the structures use:

-include_lib("cosNotification/include/*.hrl").

This module also exports the functions described in:

CosNotifyComm_NotifyPublish

CosNotification_QoSAdmin

CosNotifyFilter_FilterAdmin

CosNotifyChannelAdmin_ProxyConsumer

connect_structured_push_supplier(StructuredProxyPushConsumer, PushSupplier) -> Reply Connect a supplier to the proxy StructuredProxyPushConsumer = #objref PushSupplier = #objref Reply = ok | {'EXCEPTION', #'CosEventChannelAdmin_AlreadyConnected'{}}

This operation connects a PushSupplier to the target object. If a connection already exists an exception is raised.

push_structured_event(StructuredProxyPushConsumer, StructuredEvent) -> Reply Push a structured event to the proxy StructuredProxyPushConsumer = #objref StructuredEvent = #'CosNotification_StructuredEvent'{header, filterable_data, remainder_of_body} header = EventHeader filterable_data = [#'CosNotification_Property'{name, value}] name = string() value = #any remainder_of_body = #any EventHeader = #'CosNotification_EventHeader'{fixed_header, variable_header} fixed_header = FixedEventHeader variable_header = OptionalHeaderFields FixedEventHeader = #'CosNotification_FixedEventHeader'{event_type, event_name} event_type = EventType event_name = string() EventType = #'CosNotification_EventType'{domain_name, type_name} domain_name = type_name = string() OptionalHeaderFields = [#'CosNotification_Property'{name, value}] Reply = ok | {'EXCEPTION', #'CosEventChannelAdmin_Disconnected'{}}

When a client want to push a new event to the target object this operation must be used.

disconnect_structured_push_consumer(StructuredProxyPushConsumer) -> ok Close the connection and terminate the proxy StructuredProxyPushConsumer = #objref

This operation cause the target object to close the connection and terminate.