/* -*- IDL -*- */
//=============================================================================
/**
 *  @file    FT_Notifier.idl
 *
 *  FT_Notifier.idl,v 1.3 2004/02/04 20:20:20 parsons Exp
 *
 *  This file is part of Fault Tolerant CORBA.
 *  This was original part of the OMG FT.idl file
 *
 *  @author Dale Wilson <wilson_d@ociweb.com>
 */
//=============================================================================

#ifndef _FT_NOTIFIER_IDL_
#define _FT_NOTIFIER_IDL_

///////////////////////////////
// TAO specific includes
#include "orbsvcs/orbsvcs/FT_CORBA_ORB.idl"
#include "orbsvcs/orbsvcs/FT_Replica.idl"
// end of TAO specific includes
///////////////////////////////

#include "orbsvcs/orbsvcs/CosNaming.idl" // 98-10-19.idl
#include "orbsvcs/orbsvcs/CosNotification.idl" // from telecom/98-11-03.idl

// added to OMG version:
#include "orbsvcs/orbsvcs/CosNotifyFilter.idl"

#pragma prefix "omg.org"

module FT
{
  // Specifications for Fault Management
  // Specification of FaultNotifier Interface
  // TAO SPECIFIC:  added inheritence from PullMonitorable
  interface FaultNotifier  : ::FT::PullMonitorable
  {
    typedef unsigned long long ConsumerId;
    void push_structured_fault( in CosNotification::StructuredEvent
                                event);
    void push_sequence_fault( in CosNotification::EventBatch events);
    CosNotifyFilter::Filter create_subscription_filter (in string
                                                        constraint_grammar)
      raises (CosNotifyFilter::InvalidGrammar);
    ConsumerId connect_structured_fault_consumer(in CosNotifyComm::StructuredPushConsumer push_consumer,
                                                 in CosNotifyFilter::Filter filter) ;

    ConsumerId connect_sequence_fault_consumer(in
                                               CosNotifyComm::SequencePushConsumer push_consumer,
                                               in
                                               CosNotifyFilter::Filter
                                               filter);

    void disconnect_consumer( in ConsumerId connection)
    raises(CosEventComm::Disconnected);
  };
};


#endif // for #ifndef _FT_NOTIFIER_IDL_
