org.openorb.event
Class ProxyPushConsumerImpl

java.lang.Object
  extended by org.omg.PortableServer.Servant
      extended by org.omg.CosEventChannelAdmin.ProxyPushConsumerPOA
          extended by org.openorb.event.ProxyPushConsumerImpl
All Implemented Interfaces:
org.omg.CORBA.portable.InvokeHandler, ProxyPushConsumerOperations, PushConsumerOperations

public class ProxyPushConsumerImpl
extends ProxyPushConsumerPOA

The ProxyPushConsumer interface defines the second step for connecting push suppliers to the event channel.

Author:
Jerome Daniel, Olivier Modica

Constructor Summary
ProxyPushConsumerImpl(EventChannelImpl channel)
          Constructor
 
Method Summary
 void connect_push_supplier(PushSupplier pushSupplier)
          A nil object reference may be passed to the connect_push_supplier operation; if so a channel cannot invoke the disconnect_push_supplier operation on the supplier; the supplier may be disconnected from the channel without being informed.
 void disconnect_push_consumer()
          The disconnect_push_consumer operation terminates the event communication; it releases resources used at the consumer to support the event communication.
 void push(org.omg.CORBA.Any event)
          A supplier communicates event data to the consumer by invoking the push operation and passing the event data as a parameter.
 
Methods inherited from class org.omg.CosEventChannelAdmin.ProxyPushConsumerPOA
_all_interfaces, _invoke, _this, _this
 
Methods inherited from class org.omg.PortableServer.Servant
_default_POA, _get_delegate, _get_interface_def, _is_a, _non_existent, _object_id, _orb, _poa, _set_delegate, _this_object, _this_object
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProxyPushConsumerImpl

public ProxyPushConsumerImpl(EventChannelImpl channel)
Constructor

Method Detail

connect_push_supplier

public void connect_push_supplier(PushSupplier pushSupplier)
                           throws AlreadyConnected
A nil object reference may be passed to the connect_push_supplier operation; if so a channel cannot invoke the disconnect_push_supplier operation on the supplier; the supplier may be disconnected from the channel without being informed.

Parameters:
pushSupplier - the push supplier to connect
Throws:
AlreadyConnected - If the ProxyPushConsumer is already connected to a PushSupplier, then the AlreadyConnected exception is raised.

push

public void push(org.omg.CORBA.Any event)
          throws Disconnected
A supplier communicates event data to the consumer by invoking the push operation and passing the event data as a parameter.

Parameters:
event - The event data to pass to consumers.
Throws:
Disconnected - If the event communication has already been disconnected, the Disconnected exception is raised.

disconnect_push_consumer

public void disconnect_push_consumer()
The disconnect_push_consumer operation terminates the event communication; it releases resources used at the consumer to support the event communication. The PushConsumer object reference is disposed.