summaryrefslogtreecommitdiff
path: root/protocols/ace/TMCast/FaultDetector.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/ace/TMCast/FaultDetector.hpp')
-rw-r--r--protocols/ace/TMCast/FaultDetector.hpp45
1 files changed, 0 insertions, 45 deletions
diff --git a/protocols/ace/TMCast/FaultDetector.hpp b/protocols/ace/TMCast/FaultDetector.hpp
deleted file mode 100644
index 49ffcdd174c..00000000000
--- a/protocols/ace/TMCast/FaultDetector.hpp
+++ /dev/null
@@ -1,45 +0,0 @@
-// file : ACE_TMCast/FaultDetector.hpp
-// author : Boris Kolpackov <boris@dre.vanderbilt.edu>
-// cvs-id : $Id$
-
-#include "Protocol.hpp"
-
-namespace ACE_TMCast
-{
- class FaultDetector
- {
- public:
- FaultDetector ()
- : alone_ (true), silence_period_ (-1)
- {
- }
-
- public:
- class Failed {};
-
-
- void
- insync ()
- {
- if (alone_)
- alone_ = false;
-
- silence_period_ = 0;
- }
-
- void
- outsync ()
- {
- if (!alone_ && ++silence_period_ >= Protocol::FATAL_SILENCE_FRAME)
- {
- // cerr << "Silence period has been passed." << endl;
- // cerr << "Decalring the node failed." << endl;
- throw Failed ();
- }
- }
-
- private:
- bool alone_; // true if we haven't heard from any members yet.
- short silence_period_;
- };
-}