Examples of ArbitrateException


Examples of com.alibaba.otter.shared.arbitrate.exception.ArbitrateException

            zookeeper.create(nodeRootPath, new byte[0], CreateMode.PERSISTENT);
        } catch (ZkNodeExistsException e) {
            // 如果节点已经存在,则不抛异常
            // ignore
        } catch (ZkException e) {
            throw new ArbitrateException("system_init", e);
        }
    }
View Full Code Here

Examples of com.alibaba.otter.shared.arbitrate.exception.ArbitrateException

            zookeeper.deleteRecursive(rootPath); // 删除节点,不关心版本
        } catch (ZkNoNodeException e) {
            // 如果节点已经不存在,则不抛异常
            // ignore
        } catch (ZkException e) {
            throw new ArbitrateException("system_destory", e);
        }
    }
View Full Code Here

Examples of com.alibaba.otter.shared.arbitrate.exception.ArbitrateException

                }
            }
        } catch (ZkNoNodeException e) {
            // ignore
        } catch (ZkException e) {
            throw new ArbitrateException("releaseMainStem", pipelineId.toString(), e);
        }
    }
View Full Code Here

Examples of com.alibaba.otter.shared.arbitrate.exception.ArbitrateException

            zookeeper.create(loadLockPath, new byte[0], CreateMode.PERSISTENT);
        } catch (ZkNodeExistsException e) {
            // 如果节点已经存在,则不抛异常
            // ignore
        } catch (ZkException e) {
            throw new ArbitrateException("Pipeline_init", pipelineId.toString(), e);
        }
    }
View Full Code Here

Examples of com.alibaba.otter.shared.arbitrate.exception.ArbitrateException

            zookeeper.deleteRecursive(path); // 删除节点,不关心版本
        } catch (ZkNoNodeException e) {
            // 如果节点已经不存在,则不抛异常
            // ignore
        } catch (ZkException e) {
            throw new ArbitrateException("Pipeline_destory", pipelineId.toString(), e);
        }
    }
View Full Code Here

Examples of com.alibaba.otter.shared.arbitrate.exception.ArbitrateException

        String path = ManagePathUtils.getNode(nid);

        try {
            zookeeper.create(path, new byte[0], CreateMode.EPHEMERAL);// 创建为临时节点
        } catch (ZkException e) {
            throw new ArbitrateException("Node_init", nid.toString(), e);
        }
    }
View Full Code Here

Examples of com.alibaba.otter.shared.arbitrate.exception.ArbitrateException

            zookeeper.delete(path); // 删除节点,不关心版本
        } catch (ZkNoNodeException e) {
            // 如果节点已经不存在,则不抛异常
            // ignore
        } catch (ZkException e) {
            throw new ArbitrateException("Node_destory", nid.toString(), e);
        }
    }
View Full Code Here

Examples of com.alibaba.otter.shared.arbitrate.exception.ArbitrateException

                result.add(Long.valueOf(nid));
            }

            return result;
        } catch (ZkException e) {
            throw new ArbitrateException("liveNodes", e);
        }
    }
View Full Code Here

Examples of com.alibaba.otter.shared.arbitrate.exception.ArbitrateException

            // 如果节点已经存在,则不抛异常
            // ignore
        } catch (ZkNoNodeException e) {
            zookeeper.createPersistent(path, data, true);//创建父节点
        } catch (ZkException e) {
            throw new ArbitrateException("Channel_init", channelId.toString(), e);
        }
    }
View Full Code Here

Examples of com.alibaba.otter.shared.arbitrate.exception.ArbitrateException

            try {
                // 调用termin进行关闭
                result |= termin(channelId, TerminType.ROLLBACK);
            } catch (Throwable e) {
                updateStatus(channelId, ChannelStatus.PAUSE); // 出错了,直接挂起
                throw new ArbitrateException(e);
            }
        }

        return result && status;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.