⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ft_faultanalyzer.h

📁 这是广泛使用的通信开源项目,对于大容量,高并发的通讯要求完全能够胜任,他广泛可用于网络游戏医学图像网关的高qos要求.更详细的内容可阅读相应的材料
💻 H
字号:
/* -*- C++ -*- */
//=============================================================================
/**
 *  @file    FT_FaultAnalyzer.h
 *
 *  FT_FaultAnalyzer.h,v 1.2 2003/12/22 01:44:37 wilson_d Exp
 *
 *  This file is part of TAO's implementation of Fault Tolerant CORBA.
 *
 *  @author Steve Totten <totten_s@ociweb.com>
 */
//=============================================================================


#ifndef FT_FAULT_ANALYZER_H_
#define FT_FAULT_ANALYZER_H_

#include /**/ "ace/pre.h"
#include <ace/ACE.h>

#if !defined (ACE_LACKS_PRAGMA_ONCE)
#pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */

#include "FT_ReplicationManagerLib_export.h"
#include "orbsvcs/CosNotifyCommC.h"

namespace TAO
{
  /**
  * Abstract base class for application-defined fault analyzers.
  *
  */
  class TAO_ReplicationManagerLib_Export FT_FaultAnalyzer
  {

  public:
    /**
    * Default constructor.
    */
    FT_FaultAnalyzer ();

    /**
    * Destructor.
    */
    virtual ~FT_FaultAnalyzer ();

  public:

    /**
    * Validate event type to make sure it is one we can handle.
    * @param event The structured fault event, as from the Fault Notifier.
    * @return 0 if it is a valid event type, -1 otherwise.
    */
    virtual int validate_event_type (
      const CosNotification::StructuredEvent & event) = 0;

    /**
    * Analyze a fault event.
    * @param event The structured fault event, as from the Fault Notifier.
    * @return 0 on success, -1 on failure.
    */
    virtual int analyze_fault_event (
      const CosNotification::StructuredEvent & event) = 0;

    ////////////////////
    // Forbidden methods
  private:
    /// Copy constructor.
    FT_FaultAnalyzer (const FT_FaultAnalyzer & rhs);
    /// Assignment operator.
    FT_FaultAnalyzer & operator = (const FT_FaultAnalyzer & rhs);

    ///////////////
    // Data Members
  private:

  };

} // namespace TAO

#include /**/ "ace/post.h"

#endif  /* FT_FAULT_ANALYZER_H_ */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -