| java.lang.Object org.jacorb.notification.AbstractChannelFactory org.jacorb.notification.EventChannelFactoryImpl
EventChannelFactoryImpl | public class EventChannelFactoryImpl extends AbstractChannelFactory implements JacORBEventChannelFactoryOperations(Code) | | EventChannelFactoryImpl is a implementation of the
EventChannelFactory interface which defines operations for creating and managing
new Notification Service style event channels. It supports a routine that creates new instances
of Notification Service event channels and assigns unique numeric identifiers to them. In
addition the EventChannelFactory interface supports a routing, which can return
the unique identifiers assigned to all event channels created by a given instance of
EventChannelFactory , and another routine which, given the unique identifier of an
event channel created by a target EventChannelFactory instance, returns the object
reference of that event channel.
author: Alphonse Bendt version: $Id: EventChannelFactoryImpl.java,v 1.45 2006/05/23 10:40:35 alphonse.bendt Exp $ |
EventChannelFactoryImpl | public EventChannelFactoryImpl(MutablePicoContainer container, ORB orb) throws UserException(Code) | | |
create_channel | public EventChannel create_channel(Property[] qualitiyOfServiceProperties, Property[] administrativeProperties, IntHolder channelIdentifier) throws UnsupportedAdmin, UnsupportedQoS(Code) | | The create_channel operation is invoked to create a new instance of the
Notification Service style event channel. This operation accepts two input parameters. The
first input parameter is a list of name-value pairs, which specify the initial QoS property
settings for the new channel. The second input parameter is a list of name-value pairs, which
specify the initial administrative property settings for the new channel.
If no implementation of the EventChannel Interface exists that can support all
of the requested administrative property settings, the UnsupportedAdmin
exception is raised This exception contains as data a sequence of data structures, each
identifies the name of an administrative property in the input list whose requested setting
could not be satisfied, along with an error code and a range of settings for the property
which could be satisfied. The meanings of the error codes that might be returned are
described in Notification Service Specification
Table 2-5 on page 2-46.
If neither of these exceptions is raised, the create_channel operation will
return a reference to a new Notification Service style event channel. In addition, the
operation assigns to this new event channel a numeric identifier, which is unique among all
event channels created by the target object. This numeric identifier is returned as an output
parameter.
Parameters: qualitiyOfServiceProperties - a list of name-value pairs, which specify the initial QoS property settings forthe new channel Parameters: administrativeProperties - a list of name-value pairs, which specify the initial administrative propertysettings for the new channel Parameters: channelIdentifier - a reference to the new event channel a newly created event channel exception: UnsupportedAdmin - if no implementation supports the requested administrative settings exception: UnsupportedQoS - if no implementation supports the requested QoS settings |
getEventChannelFactory | public EventChannelFactory getEventChannelFactory()(Code) | | |
get_all_channels | public int[] get_all_channels()(Code) | | The get_all_channels operation returns a sequence of all of the unique numeric
identifiers corresponding to Notification Service event channels, which have been created by
the target object.
an int[] value |
get_event_channel | public EventChannel get_event_channel(int id) throws ChannelNotFound(Code) | | The get_event_channel operation accepts as input a numeric value that is
supposed to be the unique identifier of a Notification Service event channel, which has been
created by the target object. If this input value does not correspond to such a unique
identifier, the ChannelNotFound exception is raised. Otherwise, the operation
returns the object reference of the Notification Service event channel corresponding to the
input identifier.
Parameters: id - an int the unique identifier of a Notification Service eventchannel an EventChannel corresponding to the input identifier exception: ChannelNotFound - if the input value does not correspond to a Notification Service event channel |
Methods inherited from org.jacorb.notification.AbstractChannelFactory | public POA _default_POA()(Code)(Java Doc) public synchronized org.omg.CORBA.Object activate()(Code)(Java Doc) protected void addToChannels(int id, AbstractEventChannel channel)(Code)(Java Doc) protected void channelCreated(AbstractEventChannel channel)(Code)(Java Doc) abstract protected org.omg.CORBA.Object create_abstract_channel(Property[] admin, Property[] qos, IntHolder id) throws UnsupportedAdmin, UnsupportedQoS(Code)(Java Doc) protected AbstractEventChannel create_channel_servant(IntHolder id, Property[] qosProps, Property[] adminProps) throws UnsupportedAdmin, UnsupportedQoS, ConfigurationException(Code)(Java Doc) final public void deactivate()(Code)(Java Doc) public void destroy()(Code)(Java Doc) public void dispose()(Code)(Java Doc) protected int[] getAllChannels()(Code)(Java Doc) protected Iterator getChannelIterator()(Code)(Java Doc) protected Configuration getConfiguration()(Code)(Java Doc) public String getCorbaLoc()(Code)(Java Doc) public String getIOR()(Code)(Java Doc) protected String getLocalAddress()(Code)(Java Doc) protected int getLocalPort()(Code)(Java Doc) protected ORB getORB()(Code)(Java Doc) abstract protected String getObjectName()(Code)(Java Doc) abstract protected Servant getServant()(Code)(Java Doc) abstract protected String getShortcut()(Code)(Java Doc) protected AbstractEventChannel get_event_channel_servant(int id) throws ChannelNotFound(Code)(Java Doc) protected MutablePicoContainer newContainerForChannel()(Code)(Java Doc) abstract protected AbstractEventChannel newEventChannel() throws ConfigurationException(Code)(Java Doc) public static AbstractChannelFactory newFactory(ORB optionalORB, MutablePicoContainer optionalContainer, Properties props) throws Exception(Code)(Java Doc) public static AbstractChannelFactory newFactory(Properties props) throws Exception(Code)(Java Doc) public void registerName(Properties props) throws Exception(Code)(Java Doc) public synchronized void registerName(String nameId, String nameKind) throws NotFound, CannotProceed, InvalidName, org.omg.CORBA.ORBPackage.InvalidName(Code)(Java Doc) public void setDestroyMethod(Runnable destroyMethod)(Code)(Java Doc) public void shutdown(ShutdownCallback cb)(Code)(Java Doc) public synchronized void unregisterName() throws NotFound, CannotProceed, InvalidName(Code)(Java Doc) public void writeIOR(String fileName) throws IOException(Code)(Java Doc)
|
|
|