org.omg.FT
Class AFaultNotifier_impl
java.lang.Object
|
+--org.omg.PortableServer.Servant
|
+--org.omg.FT.FaultNotifierPOA
|
+--org.omg.FT.AFaultNotifier_impl
- All Implemented Interfaces:
- FaultNotifierOperations, org.omg.CORBA.portable.InvokeHandler
- public class AFaultNotifier_impl
- extends FaultNotifierPOA
Class implementing the FaultNotifier interface
It contains methods for event notification receiving and sending
Field Summary |
(package private) java.lang.String[] |
grammars
|
(package private) org.omg.CORBA.ORB |
orb
|
(package private) java.util.Vector |
push_consumers
|
Fields inherited from class org.omg.PortableServer.Servant |
_delegate, _hasGetInterface |
Method Summary |
long |
connect_sequence_fault_consumer(org.omg.CosNotifyComm.SequencePushConsumer push_consumer,
org.omg.CosNotifyFilter.Filter filter)
Method used to register a consumer of a sequence of structured fault events |
long |
connect_structured_fault_consumer(org.omg.CosNotifyComm.StructuredPushConsumer push_consumer,
org.omg.CosNotifyFilter.Filter filter)
Method used to register a consumer of a structured fault event |
org.omg.CosNotifyFilter.Filter |
create_subscription_filter(java.lang.String constraint_grammar)
Method used to create a filter according to what events the consumer is interested in |
void |
disconnect_consumer(long connection)
Method used to disconnect a consumer from the fault notifier (e.g., when the consumer fails |
void |
push_sequence_fault(org.omg.CosNotification.StructuredEvent[] events)
Method called to inform the notifier that a sequence of structured fault events occured; the notifier takes the events and sends it further to its
registered consumers |
void |
push_structured_fault(org.omg.CosNotification.StructuredEvent event)
Method called to inform the notifier that an structured fault event occured; the notifier takes the event and sends it further to its
registered consumers |
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 |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
push_consumers
java.util.Vector push_consumers
orb
org.omg.CORBA.ORB orb
grammars
java.lang.String[] grammars
AFaultNotifier_impl
public AFaultNotifier_impl(org.omg.CORBA.ORB o)
- Constructor
- Parameters:
o
- the ORB on top of which the fault notifier CORBA object runs
push_structured_fault
public void push_structured_fault(org.omg.CosNotification.StructuredEvent event)
- Method called to inform the notifier that an structured fault event occured; the notifier takes the event and sends it further to its
registered consumers
- Parameters:
event
- the event to be sent to the consumers
push_sequence_fault
public void push_sequence_fault(org.omg.CosNotification.StructuredEvent[] events)
- Method called to inform the notifier that a sequence of structured fault events occured; the notifier takes the events and sends it further to its
registered consumers
- Parameters:
events
- the sequence of structured events to be sent to the consumers
create_subscription_filter
public org.omg.CosNotifyFilter.Filter create_subscription_filter(java.lang.String constraint_grammar)
throws org.omg.CosNotifyFilter.InvalidGrammar
- Method used to create a filter according to what events the consumer is interested in
- Parameters:
constraint_grammar
- the grammar used by the filter- Returns:
- A subscription filter
connect_structured_fault_consumer
public long connect_structured_fault_consumer(org.omg.CosNotifyComm.StructuredPushConsumer push_consumer,
org.omg.CosNotifyFilter.Filter filter)
- Method used to register a consumer of a structured fault event
- Parameters:
push_consumer
- the consumer of the structured event
filter the filter (previously created by create_subscription_filter) used by this consumer- Returns:
- the index of this consumer in the consumer list (used later when disconnecting the consumer)
connect_sequence_fault_consumer
public long connect_sequence_fault_consumer(org.omg.CosNotifyComm.SequencePushConsumer push_consumer,
org.omg.CosNotifyFilter.Filter filter)
- Method used to register a consumer of a sequence of structured fault events
- Parameters:
push_consumer
- the consumer of the event sequence
filter the filter (previously created by create_subscription_filter) used by this consumer- Returns:
- the index of this consumer in the consumer list (used later when disconnecting the consumer)
disconnect_consumer
public void disconnect_consumer(long connection)
throws org.omg.CosEventComm.Disconnected
- Method used to disconnect a consumer from the fault notifier (e.g., when the consumer fails
- Parameters:
connection
- the index of the consumer in the consumer list of the notifier