package com.snowcattle.game.service.rpc.server.zookeeper; import com.snowcattle.game.common.constant.BOEnum; /** * Created by jiangwenping on 17/3/31. */ public enum ZooKeeperNodeBoEnum { WORLD(BOEnum.WORLD, "/world_registry_adress"), GAME(BOEnum.GAME, "/game_registry_adress"), DB(BOEnum.DB, "/db_registry_adress"), ; private BOEnum boEnum; private String rootPath; ZooKeeperNodeBoEnum(BOEnum boEnum, String rootPath) { this.boEnum = boEnum; this.rootPath = rootPath; } public BOEnum getBoEnum() { return boEnum; } public void setBoEnum(BOEnum boEnum) { this.boEnum = boEnum; } public String getRootPath() { return rootPath; } public void setRootPath(String rootPath) { this.rootPath = rootPath; } }