From 579e659fd121d5a38da06e325be5aa226d994101 Mon Sep 17 00:00:00 2001 From: Christopher Date: Sun, 8 Mar 2020 10:40:08 -0500 Subject: [PATCH] revert json changes --- priv/ring.json | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/priv/ring.json b/priv/ring.json index 21675f6..4a07b37 100644 --- a/priv/ring.json +++ b/priv/ring.json @@ -17,6 +17,14 @@ "Type": "Choice", "Resource": "HandleReady", "Choices": [ + { + "StringEquals": ":node_up", + "Next": "ReadyNodeUp" + }, + { + "StringEquals": ":node_down", + "Next": "ReadyNodeDown" + }, { "StringEquals": ":anti_entropy", "Next": "AntiEntropy" @@ -25,6 +33,28 @@ "InputPath": "", "OutputPath": "" }, + "QuorumNodeUp": { + "Type": "Task", + "Resource": "HandleNodeUp", + "TransitionEvent": ":node_added", + "Catch": [], + "InputPath": "", + "OutputPath": "", + "ResourcePath": "", + "Next": "Quorum", + "End": false + }, + "ReadyNodeUp": { + "Type": "Task", + "Resource": "HandleNodeUp", + "TransitionEvent": ":node_added", + "Catch": [], + "InputPath": "", + "OutputPath": "", + "ResourcePath": "", + "Next": "Ready", + "End": false + }, "Quorum": { "Type": "Choice", "Resource": "AwaitQuorum", @@ -32,11 +62,41 @@ { "StringEquals": ":quorum", "Next": "Ready" + }, + { + "StringEquals": ":node_up", + "Next": "QuorumNodeUp" + }, + { + "StringEquals": ":node_down", + "Next": "QuorumNodeDown" } ], "InputPath": "", "OutputPath": "" }, + "ReadyNodeDown": { + "Type": "Task", + "Resource": "HandleNodeDown", + "TransitionEvent": ":node_removed", + "Catch": [], + "InputPath": "", + "OutputPath": "", + "ResourcePath": "", + "Next": "Quorum", + "End": false + }, + "QuorumNodeDown": { + "Type": "Task", + "Resource": "HandleNodeDown", + "TransitionEvent": ":node_removed", + "Catch": [], + "InputPath": "", + "OutputPath": "", + "ResourcePath": "", + "Next": "Quorum", + "End": false + }, "AntiEntropy": { "Type": "Task", "Resource": "HandleAntiEntropy", -- 2.45.3