org.jacorb.events

Class EventChannelImpl

public class EventChannelImpl extends JacORBEventChannelPOA

Simple implementation of the event channel spec. The event channel acts as a factory for proxy push/pull consumers/suppliers and interacts with the implementation objects locally, i.e. using Java references only.

Version: $Id: EventChannelImpl.java,v 1.10 2004/05/06 12:39:58 nicolas Exp $

Author: Joerg v. Frantzius, Rainer Lischetzki, Gerald Brose, Jeff Carlson

Constructor Summary
EventChannelImpl(ORB orb, POA poa)
EventChannel constructor.
Method Summary
voiddestroy()
Destroy all objects which are managed by the POA.
ConsumerAdminfor_consumers()
Return the consumerAdmin interface
SupplierAdminfor_suppliers()
Return the supplierAdmin interface
static voidmain(String[] args)
ProxyPullConsumerobtain_pull_consumer()
Return a ProxyPullConsumer reference to be used to connect to a PullSupplier.
ProxyPullSupplierobtain_pull_supplier()
Return a ProxyPullSupplier reference to be used to connect to a PullConsumer.
ProxyPushConsumerobtain_push_consumer()
Return a ProxyPushConsumer reference to be used to connect to a PushSupplier.
ProxyPushSupplierobtain_push_supplier()
Return a ProxyPushSupplier reference to be used to connect to a PushConsumer.
protected voidpush_event(Any event)
Send event to all registered consumers.
POA_default_POA()
Override this method from the Servant baseclass.

Constructor Detail

EventChannelImpl

public EventChannelImpl(ORB orb, POA poa)
EventChannel constructor.

Method Detail

destroy

public void destroy()
Destroy all objects which are managed by the POA.

for_consumers

public ConsumerAdmin for_consumers()
Return the consumerAdmin interface

for_suppliers

public SupplierAdmin for_suppliers()
Return the supplierAdmin interface

main

public static void main(String[] args)

obtain_pull_consumer

public ProxyPullConsumer obtain_pull_consumer()
Return a ProxyPullConsumer reference to be used to connect to a PullSupplier.

obtain_pull_supplier

public ProxyPullSupplier obtain_pull_supplier()
Return a ProxyPullSupplier reference to be used to connect to a PullConsumer.

obtain_push_consumer

public ProxyPushConsumer obtain_push_consumer()
Return a ProxyPushConsumer reference to be used to connect to a PushSupplier.

obtain_push_supplier

public ProxyPushSupplier obtain_push_supplier()
Return a ProxyPushSupplier reference to be used to connect to a PushConsumer.

push_event

protected void push_event(Any event)
Send event to all registered consumers.

_default_POA

public POA _default_POA()
Override this method from the Servant baseclass. Fintan Bolton in his book "Pure CORBA" suggests that you override this method to avoid the risk that a servant object (like this one) could be activated by the wrong POA object.