use of com.actiontech.dble.config.loader.zkprocess.zookeeper.process.ConfStatus in project dble by actiontech.
the class XmltoZkMain method rollbackConf.
public static void rollbackConf() throws Exception {
CuratorFramework zkConn = ZKUtils.getConnection();
ConfStatus status = new ConfStatus(ZkConfig.getInstance().getValue(ClusterParamCfg.CLUSTER_CFG_MYID), ConfStatus.Status.ROLLBACK, null);
zkConn.setData().forPath(KVPathUtil.getConfStatusPath(), status.toString().getBytes(StandardCharsets.UTF_8));
}
Aggregations