summaryrefslogtreecommitdiff
path: root/src/blissful_monitor.hh
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@opera.com>2017-10-31 16:35:11 +0100
committerJoel Klinghed <the_jk@opera.com>2017-10-31 16:35:11 +0100
commitf4602c1bb6f9fe4090ace211c5013f71653bcd4c (patch)
treeecda369875a1411e6902e4425d58bca5c8b01826 /src/blissful_monitor.hh
parent38140372d8c8dd32267943d5d79b2ce2c0a032fb (diff)
Add a blissful monitor proxy
It takes a given monitor and "fixes" calls from it by expiring "dead" jobs (jobs older than 10min) and by sanitychecking that hosts exist and such
Diffstat (limited to 'src/blissful_monitor.hh')
-rw-r--r--src/blissful_monitor.hh16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/blissful_monitor.hh b/src/blissful_monitor.hh
new file mode 100644
index 0000000..d4a1d28
--- /dev/null
+++ b/src/blissful_monitor.hh
@@ -0,0 +1,16 @@
+#ifndef BLISSFUL_MONITOR_HH
+#define BLISSFUL_MONITOR_HH
+
+#include "monitor.hh"
+
+/**
+ * A monitor that will try to hide problems, like never finished requests
+ * or jobs and things like that.
+ */
+class BlissfulMonitor : public Monitor {
+public:
+ static std::unique_ptr<Monitor> create(std::shared_ptr<Looper> const& looper,
+ std::unique_ptr<Monitor>&& monitor);
+};
+
+#endif // BLISSFUL_MONITOR_HH