2021SC@SDUSC
前言
经过前文对DataTree中所用到的各种类的源码的分析后,我们再次回到DataTree类,深入了解DataTree究竟维护了哪些变量,实现了哪些功能。
静态变量
//日志
private static final Logger LOG = LoggerFactory.getLogger(DataTree.class);
//根节点路径
private static final String rootZookeeper = "/";
//管理和状态节点路径
private static final String procZookeeper = Quotas.procZookeeper;
//管理和状态节点路径的最后一段
private static final String procChildZookeeper = procZookeeper.substring(1);
//配额节点路径
private static final String quotaZookeeper = Quotas.quotaZookeeper;
//配额节点路径的最后一段
private static final String quotaChildZookeeper = quotaZookeeper.substring(procZookeeper.length() + 1);
//配置节点路径
private static final String configZookeeper = ZooDefs.CONFIG_NODE;
//配置节点路径的最后一段
private static final String configChildZookeeper = configZookeeper.substring(proc