diff --git a/ncm-metaconfig/src/main/metaconfig/zookeeper/pan/schema.pan b/ncm-metaconfig/src/main/metaconfig/zookeeper/pan/schema.pan index 415cbe24bf..56bb075331 100644 --- a/ncm-metaconfig/src/main/metaconfig/zookeeper/pan/schema.pan +++ b/ncm-metaconfig/src/main/metaconfig/zookeeper/pan/schema.pan @@ -2,6 +2,10 @@ declaration template metaconfig/zookeeper/schema; include 'pan/types'; +type zookeeper_four_letter_word = choice( + 'conf', 'cons', 'crst', 'dump', 'envi', 'mntr', 'ruok', 'srst', 'srvr', 'stat', 'wchc', 'wchp', 'wchs' +); + type zookeeper_main = { # minimal "tickTime" : long = 2000 @@ -22,8 +26,7 @@ type zookeeper_main = { "autopurge.snapRetainCount" ? long "autopurge.purgeInterval" ? long "syncEnabled" ? boolean - "4lw.commands.whitelist" ? choice('conf', 'cons', 'crst', 'dump', 'envi', 'mntr', - 'ruok', 'srst', 'srvr', 'stat', 'wchc', 'wchp', 'wchs') [] + "4lw.commands.whitelist" ? zookeeper_four_letter_word[] # cluster/ensemble "initLimit" : long = 10