Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.omg.PortableServer.Servant
org.jacorb.notification.JacORBEventChannelFactoryPOA
org.jacorb.notification.EventChannelFactoryImpl
public class EventChannelFactoryImpl
extends JacORBEventChannelFactoryPOA
implements Disposable, ManageableServant, Configurable
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.Method Summary | |
POA | |
Object |
|
void | |
void |
|
EventChannel |
|
EventChannelImpl |
|
void | |
void |
|
void |
|
protected void | |
ApplicationContext | |
String | |
EventChannelFactory | |
String |
|
protected ORB |
|
Servant | |
int[] |
|
EventChannel |
|
EventChannelImpl |
|
StaticEventChannelFactoryInfo | |
static void |
|
static EventChannelFactoryImpl | |
static EventChannelFactoryImpl |
|
void | |
void | |
void |
|
void | |
void | |
void |
|
Methods inherited from class org.jacorb.notification.JacORBEventChannelFactoryPOA | |
_all_interfaces , _invoke , _this , _this |
Methods inherited from class org.omg.PortableServer.Servant | |
_all_interfaces , _default_POA , _get_delegate , _get_interface , _get_interface_def , _is_a , _non_existent , _object_id , _orb , _poa , _set_delegate , _this_object , _this_object |
public void addEventChannelEventListener(EventChannelEventListener listener)
public void configure(Configuration conf)
public EventChannel create_channel(Property qualitiyOfServiceProperties, Property administrativeProperties, IntHolder channelIdentifier) throws UnsupportedAdmin, UnsupportedQoS
Thecreate_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 theEventChannel
Interface exists that can support all of the requested administrative property settings, theUnsupportedAdmin
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, thecreate_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 for the new channeladministrativeProperties
- a list of name-value pairs, which specify the initial administrative property settings for the new channel
- Returns:
- a newly created event channel
- Throws:
UnsupportedAdmin
- if no implementation supports the requested administrative settingsUnsupportedQoS
- if no implementation supports the requested QoS settings
public EventChannelImpl create_channel_servant(int channelID, Property qualitiyOfServiceProperties, Property administrativeProperties) throws UnsupportedAdmin, UnsupportedQoS, ObjectNotActive, WrongPolicy, ServantAlreadyActive, ConfigurationException
public String getCorbaLoc()
public String getIOR()
public int[] get_all_channels()
Theget_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.
- Specified by:
- get_all_channels in interface EventChannelFactoryOperations
- Returns:
- an
int[]
value
public EventChannel get_event_channel(int id) throws ChannelNotFound
Theget_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, theChannelNotFound
exception is raised. Otherwise, the operation returns the object reference of the Notification Service event channel corresponding to the input identifier.
- Specified by:
- get_event_channel in interface EventChannelFactoryOperations
- Parameters:
- Returns:
- an
EventChannel
corresponding to the input identifier
- Throws:
ChannelNotFound
- if the input value does not correspond to a Notification Service event channel
public EventChannelImpl get_event_channel_servant(int id) throws ChannelNotFound
public StaticEventChannelFactoryInfo get_static_info()
- Specified by:
- get_static_info in interface JacORBEventChannelFactoryOperations
public static void main(String[] args) throws Exception
public void removeEventChannelEventListener(EventChannelEventListener listener)
public void setDestroyMethod(Runnable destroyMethod)
public void shutdown(org.jacorb.notification.EventChannelFactoryImpl.ShutdownCallback cb)