summaryrefslogtreecommitdiff
path: root/node/Node.hpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2013-12-10 15:30:53 -0800
committerAdam Ierymenko <adam.ierymenko@gmail.com>2013-12-10 15:30:53 -0800
commitbf0da9f2f778aeb3eebe200a8cdeecbc6e1f9253 (patch)
tree92e9c18362d7dd5a89371a9039128d9347791030 /node/Node.hpp
parent612c17240af65243a1fa5d8cc17d3ebdb38a9bee (diff)
downloadinfinitytier-bf0da9f2f778aeb3eebe200a8cdeecbc6e1f9253.tar.gz
infinitytier-bf0da9f2f778aeb3eebe200a8cdeecbc6e1f9253.zip
Rest of software updater, ready to test...
Diffstat (limited to 'node/Node.hpp')
-rw-r--r--node/Node.hpp17
1 files changed, 16 insertions, 1 deletions
diff --git a/node/Node.hpp b/node/Node.hpp
index 9d02c008..2736713f 100644
--- a/node/Node.hpp
+++ b/node/Node.hpp
@@ -97,9 +97,24 @@ public:
*/
enum ReasonForTermination
{
+ /**
+ * Node is currently in run()
+ */
NODE_RUNNING = 0,
+
+ /**
+ * Node is shutting down for normal reasons, including a signal
+ */
NODE_NORMAL_TERMINATION = 1,
- NODE_RESTART_FOR_RECONFIGURATION = 2,
+
+ /**
+ * An upgrade is available. Its path is in reasonForTermination().
+ */
+ NODE_RESTART_FOR_UPGRADE = 2,
+
+ /**
+ * A serious unrecoverable error has occurred.
+ */
NODE_UNRECOVERABLE_ERROR = 3
};