class MonitorService extends BaseService {

  public List<Server> getServerListFromZK(boolean isMaster) {

    checkNotNull(zookeeperMonitor);
    ZKNodeType zkNodeType = isMaster ? ZKNodeType.MASTER : ZKNodeType.WORKER;
    return zookeeperMonitor.getServersList(zkNodeType);
  }

}