Search in sources :

Example 6 with ConfStatus

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));
}
Also used : CuratorFramework(org.apache.curator.framework.CuratorFramework) ConfStatus(com.actiontech.dble.config.loader.zkprocess.zookeeper.process.ConfStatus)

Aggregations

ConfStatus (com.actiontech.dble.config.loader.zkprocess.zookeeper.process.ConfStatus)6 ReentrantLock (java.util.concurrent.locks.ReentrantLock)2 CuratorFramework (org.apache.curator.framework.CuratorFramework)2 NotifyService (com.actiontech.dble.config.loader.zkprocess.comm.NotifyService)1 ZookeeperProcessListen (com.actiontech.dble.config.loader.zkprocess.comm.ZookeeperProcessListen)1 XmlProcessBase (com.actiontech.dble.config.loader.zkprocess.parse.XmlProcessBase)1 DirectoryInf (com.actiontech.dble.config.loader.zkprocess.zookeeper.DirectoryInf)1 ZkDataImpl (com.actiontech.dble.config.loader.zkprocess.zookeeper.process.ZkDataImpl)1 ZkDirectoryImpl (com.actiontech.dble.config.loader.zkprocess.zookeeper.process.ZkDirectoryImpl)1