org.openorb.event
Class EventChannelFactoryImpl

java.lang.Object
  extended by org.omg.PortableServer.Servant
      extended by org.openorb.event.EventChannelFactoryPOA
          extended by org.openorb.event.EventChannelFactoryImpl
All Implemented Interfaces:
org.omg.CORBA.portable.InvokeHandler, EventChannelFactoryOperations

public class EventChannelFactoryImpl
extends EventChannelFactoryPOA

Event Channel Factory, an extension of OpenORB allows to create multiple event channels using the channel name as a key.

Author:
Jerome Daniel, Olivier Modica

Constructor Summary
EventChannelFactoryImpl(org.omg.CORBA.ORB orb)
          Constructor
 
Method Summary
 EventChannel create_channel(java.lang.String channel_name)
          This operation creates a new event channel with a specific name.
 EventChannel join_channel(java.lang.String channel_name)
          This operation allows an application to find an event channel by providing its name.
 
Methods inherited from class org.openorb.event.EventChannelFactoryPOA
_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

EventChannelFactoryImpl

public EventChannelFactoryImpl(org.omg.CORBA.ORB orb)
Constructor

Method Detail

create_channel

public EventChannel create_channel(java.lang.String channel_name)
                            throws NameAlreadyUsed
This operation creates a new event channel with a specific name. By this way, others application will be able to get the new channel by giving its name.

Parameters:
channel_name - the name for the new channel
Returns:
a new event channel
Throws:
NameAlreadyUsed - This exception is raises is another channel already exist with the same name.

join_channel

public EventChannel join_channel(java.lang.String channel_name)
                          throws EventChannelNotFound
This operation allows an application to find an event channel by providing its name.

Parameters:
channel_name - the channel to find
Returns:
an object reference to the channel found
Throws:
EventChannelNotFound - this exception is raises if the channel to search was not found.