From dff5a26a2a260f72bc63eae8d735d11686a52339 Mon Sep 17 00:00:00 2001 From: lenboo Date: Thu, 13 Jun 2019 17:59:58 +0800 Subject: [PATCH] add zk node type --- .../cn/escheduler/common/enums/ZKNodeType.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 escheduler-common/src/main/java/cn/escheduler/common/enums/ZKNodeType.java diff --git a/escheduler-common/src/main/java/cn/escheduler/common/enums/ZKNodeType.java b/escheduler-common/src/main/java/cn/escheduler/common/enums/ZKNodeType.java new file mode 100644 index 0000000000..371231f727 --- /dev/null +++ b/escheduler-common/src/main/java/cn/escheduler/common/enums/ZKNodeType.java @@ -0,0 +1,15 @@ +package cn.escheduler.common.enums; + +/** + * zk node type + */ +public enum ZKNodeType { + + /** + * 0 do not send warning; + * 1 send if process success; + * 2 send if process failed; + * 3 send if process ending; + */ + MASTER, WORKER, DEAD_SERVER, TASK_QUEUE; +}