org.openorb.event
Class EventChannelImpl
java.lang.Object
|
+--org.omg.PortableServer.Servant
|
+--org.omg.CosEventChannelAdmin.EventChannelPOA
|
+--org.openorb.event.EventChannelImpl
- All Implemented Interfaces:
- EventChannelOperations, org.omg.CORBA.portable.InvokeHandler
- public class EventChannelImpl
- extends EventChannelPOA
The EventChannel interface defines three administrative operations: adding consumers,
adding suppliers, and destroying the channel.
Any object that possesses an object reference that supports the EventChannel interface
can perform these operations:
- The ConsumerAdmin interface allows consumers to be connected to the event
channel. The for_consumers operation returns an object reference that supports the
ConsumerAdmin interface.
- The SupplierAdmin interface allows suppliers to be connected to the event channel.
The for_suppliers operation returns an object reference that supports the
SupplierAdmin interface.
- The destroy operation destroys the event channel.
Consumer administration and supplier administration are defined as separate objects so
that the creator of the channel can control the addition of suppliers and consumers. For
example, a creator might wish to be the sole supplier of event data but allow many
consumers to be connected to the channel. In such a case, the creator would simply
export the ConsumerAdmin object.
- Author:
- Jerome Daniel, Olivier Modica
|
Constructor Summary |
EventChannelImpl(org.omg.CORBA.ORB orb,
java.lang.String name)
Constructor. |
|
Method Summary |
java.lang.String |
channelName()
Return the channel name. |
void |
destroy()
The destroy operation destroys the event channel. |
ConsumerAdmin |
for_consumers()
The ConsumerAdmin interface allows consumers to be connected to the event
channel. |
SupplierAdmin |
for_suppliers()
The SupplierAdmin interface allows suppliers to be connected to the event channel. |
| Methods inherited from class org.omg.PortableServer.Servant |
_default_POA, _get_delegate, _get_interface_def, _get_interface, _is_a, _non_existent, _object_id, _orb, _orb, _poa, _set_delegate, _this_object, _this_object |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EventChannelImpl
public EventChannelImpl(org.omg.CORBA.ORB orb,
java.lang.String name)
- Constructor.
for_consumers
public ConsumerAdmin for_consumers()
- The ConsumerAdmin interface allows consumers to be connected to the event
channel. The for_consumers operation returns an object reference that supports the
ConsumerAdmin interface.
- Returns:
- An object reference that supports the ConsumerAdmin interface
for_suppliers
public SupplierAdmin for_suppliers()
- The SupplierAdmin interface allows suppliers to be connected to the event channel.
The for_suppliers operation returns an object reference that supports the
SupplierAdmin interface.
- Returns:
- An object reference that supports the SupplierAdmin interface
destroy
public void destroy()
- The destroy operation destroys the event channel.
channelName
public java.lang.String channelName()
- Return the channel name.