use of org.I0Itec.zkclient.exception.ZkException in project otter by alibaba.
the class ToolArbitrateEvent method single.
/**
* 提供数据接口更新对应的pipeline上的状态
*/
public void single(SyncStatusEventData syncStatus) {
String path = StagePathUtils.getPipeline(syncStatus.getPipelineId());
try {
byte[] bytes = JsonUtils.marshalToByte(syncStatus);
zookeeper.writeData(path, bytes);
logger.info("## single status : " + syncStatus);
} catch (ZkException e) {
throw new ArbitrateException("single_SyncStatus", syncStatus.getPipelineId().toString(), e);
}
}
Aggregations