summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/examples/FaultTolerance/FLARe/RM_Proxy.h
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/orbsvcs/examples/FaultTolerance/FLARe/RM_Proxy.h')
-rw-r--r--TAO/orbsvcs/examples/FaultTolerance/FLARe/RM_Proxy.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/TAO/orbsvcs/examples/FaultTolerance/FLARe/RM_Proxy.h b/TAO/orbsvcs/examples/FaultTolerance/FLARe/RM_Proxy.h
new file mode 100644
index 00000000000..5ce1c56e5b2
--- /dev/null
+++ b/TAO/orbsvcs/examples/FaultTolerance/FLARe/RM_Proxy.h
@@ -0,0 +1,37 @@
+
+#ifndef RM_PROXY_H
+#define RM_PROXY_H
+
+#include "RM_Proxy.h"
+#include "Timer.h"
+#include "monitorC.h"
+#include "CPULoadCalculator.h"
+#include "LWFTC.h"
+
+class RM_Proxy : protected Timer
+{
+public:
+
+ using Timer::start;
+ using Timer::stop;
+ using Timer::hertz;
+
+ RM_Proxy (CORBA::ORB_ptr);
+ virtual ~RM_Proxy ();
+ void setCPULoadCalculator (CPULoadCalculator *load_calc);
+ void proc_failure (const std::string &process_id);
+
+ /// Helper function to be called back after a timeout
+ virtual int pulse (void);
+
+protected:
+ CORBA::Object_var obtain_RM_ior (CORBA::ORB_ptr orb);
+
+private:
+ CPULoadCalculator *load_calc_;
+ ReplicationManager_var RM_var_;
+ CORBA::ORB_var orb_;
+};
+
+
+#endif /* RM_TIMER_H */