|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.omg.PortableServer.Servant
org.jacorb.notification.JacORBEventChannelFactoryPOA
org.jacorb.notification.EventChannelFactoryImpl
public class EventChannelFactoryImpl
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 |
_default_POA()
|
Object |
activate()
|
void |
addEventChannelEventListener(EventChannelEventListener listener)
|
void |
configure(org.apache.avalon.framework.configuration.Configuration conf)
|
EventChannelImpl |
create_channel_servant(int channelID,
Property[] qualitiyOfServiceProperties,
Property[] administrativeProperties)
|
EventChannel |
create_channel(Property[] qualitiyOfServiceProperties,
Property[] administrativeProperties,
IntHolder channelIdentifier)
The create_channel operation is invoked to create
a new instance of the Notification Service style event
channel. |
void |
deactivate()
|
void |
destroy()
|
void |
dispose()
Dispose this Object. |
protected void |
eventChannelServantCreated(EventChannelImpl servant)
|
int[] |
get_all_channels()
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. |
EventChannelImpl |
get_event_channel_servant(int id)
|
EventChannel |
get_event_channel(int id)
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. |
StaticEventChannelFactoryInfo |
get_static_info()
|
ApplicationContext |
getApplicationContext()
|
java.lang.String |
getCorbaLoc()
|
EventChannelFactory |
getEventChannelFactory()
|
java.lang.String |
getIOR()
|
protected ORB |
getORB()
|
Servant |
getServant()
|
static void |
main(java.lang.String[] args)
|
static EventChannelFactoryImpl |
newFactory()
|
static EventChannelFactoryImpl |
newFactory(java.lang.String[] args)
|
void |
preActivate()
|
void |
removeEventChannelEventListener(EventChannelEventListener listener)
|
void |
setDestroyMethod(java.lang.Runnable destroyMethod)
|
void |
setORB(ORB orb)
|
void |
setPOA(POA poa)
|
void |
shutdown(org.jacorb.notification.EventChannelFactoryImpl.ShutdownCallback cb)
|
| Methods inherited from class org.jacorb.notification.JacORBEventChannelFactoryPOA |
|---|
_all_interfaces, _invoke, _this, _this |
| Methods inherited from class org.omg.PortableServer.Servant |
|---|
_get_delegate, _get_interface_def, _get_interface, _is_a, _non_existent, _object_id, _orb, _poa, _set_delegate, _this_object, _this_object |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public void configure(org.apache.avalon.framework.configuration.Configuration conf)
configure in interface org.apache.avalon.framework.configuration.Configurablepublic void setDestroyMethod(java.lang.Runnable destroyMethod)
public void setORB(ORB orb)
setORB in interface ManageableServantpublic void setPOA(POA poa)
setPOA in interface ManageableServantprotected ORB getORB()
public EventChannel create_channel(Property[] qualitiyOfServiceProperties,
Property[] administrativeProperties,
IntHolder channelIdentifier)
throws UnsupportedAdmin,
UnsupportedQoS
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. 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.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.
create_channel in interface EventChannelFactoryOperationsqualitiyOfServiceProperties - 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 channelchannelIdentifier, - a reference to the new event channel
UnsupportedAdmin - if no implementation supports the
requested administrative settings
UnsupportedQoS - if no implementation supports the
requested QoS settingsprotected void eventChannelServantCreated(EventChannelImpl servant)
public EventChannelImpl create_channel_servant(int channelID,
Property[] qualitiyOfServiceProperties,
Property[] administrativeProperties)
throws UnsupportedAdmin,
UnsupportedQoS,
ObjectNotActive,
WrongPolicy,
ServantAlreadyActive,
org.apache.avalon.framework.configuration.ConfigurationException
UnsupportedAdmin
UnsupportedQoS
ObjectNotActive
WrongPolicy
ServantAlreadyActive
org.apache.avalon.framework.configuration.ConfigurationExceptionpublic int[] get_all_channels()
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.
get_all_channels in interface EventChannelFactoryOperationsint[] value
public EventChannel get_event_channel(int id)
throws ChannelNotFound
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.
get_event_channel in interface EventChannelFactoryOperationsn - an int the unique identifier of a
Notification Service event channel
EventChannel corresponding to the input identifier
ChannelNotFound - if the input value does not
correspond to a Notification Service event channel
public EventChannelImpl get_event_channel_servant(int id)
throws ChannelNotFound
ChannelNotFoundpublic void addEventChannelEventListener(EventChannelEventListener listener)
public void removeEventChannelEventListener(EventChannelEventListener listener)
public void shutdown(org.jacorb.notification.EventChannelFactoryImpl.ShutdownCallback cb)
public void deactivate()
deactivate in interface ManageableServantpublic void destroy()
destroy in interface JacORBEventChannelFactoryOperationspublic void dispose()
Disposable
dispose in interface Disposablepublic void preActivate()
preActivate in interface ManageableServantpublic java.lang.String getCorbaLoc()
public java.lang.String getIOR()
public EventChannelFactory getEventChannelFactory()
public ApplicationContext getApplicationContext()
public Servant getServant()
public Object activate()
activate in interface ManageableServantpublic POA _default_POA()
_default_POA in class Servantpublic StaticEventChannelFactoryInfo get_static_info()
get_static_info in interface JacORBEventChannelFactoryOperations
public static EventChannelFactoryImpl newFactory()
throws java.lang.Exception
java.lang.Exception
public static EventChannelFactoryImpl newFactory(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exception
public static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||