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

📄 ft_replica.idl

📁 这是广泛使用的通信开源项目,对于大容量,高并发的通讯要求完全能够胜任,他广泛可用于网络游戏医学图像网关的高qos要求.更详细的内容可阅读相应的材料
💻 IDL
字号:
//FT_Replica.idl,v 1.2 2003/12/22 01:44:38 wilson_d Exp
// FT_replica.idl
#ifndef _FT_REPLICA_IDL_
#define _FT_REPLICA_IDL_

// The OMG FT file has been split into sevaral pieces.  This is one of them.
// It contains the interfaces that a typical FT Replica (replicated servant)
// will need to implement.

#include "FT_CORBA.idl"   // common FT definitions

#pragma prefix "omg.org"

module FT
{
  // Specification of PullMonitorable Interface
  // which Application Objects Inherit
  interface PullMonitorable {
    boolean is_alive();
  };

  // Specifications for Logging and Recovery
  typedef sequence<octet> State;

  exception NoStateAvailable {};
  exception InvalidState {};

  exception NoUpdateAvailable {};
  exception InvalidUpdate {};

  // Specification of Checkpointable Interface
  // which Updateable and Application Objects Inherit
  interface Checkpointable {
    State get_state()
      raises(NoStateAvailable);
    void set_state(in State s)
      raises(InvalidState);
  };

  // Specification of Updateable Interface
  // which Application Objects Inherit
  interface Updateable : Checkpointable
  {
    State get_update()
      raises(NoUpdateAvailable);
    void set_update(in State s)
      raises(InvalidUpdate);
  };
};

#endif // for #ifndef _FT_REPLICA_IDL_

⌨️ 快捷键说明

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