Package com.alibaba.otter.shared.arbitrate.exception

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


                }

            } catch (NoNodeException e) {
                // ignore
            } catch (KeeperException e) {
                throw new ArbitrateException(e);
            } catch (InterruptedException e) {
                // ignore
            } catch (UnsupportedEncodingException e) {
                // ignore
            }
View Full Code Here


            } else {
                return JsonUtils.unmarshalFromByte(bytes, SyncStatusEventData.class);
            }
        } catch (ZkException e) {
            // 没有节点返回空
            throw new ArbitrateException("fetch_SyncStatus", pipelineId.toString(), e);
        }
    }
View Full Code Here

        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);
        }
    }
View Full Code Here

            zookeeper.create(path + "/" + RemedyIndexEventData.formatNodeName(data), new byte[] {},
                             CreateMode.PERSISTENT);
        } catch (ZkNodeExistsException e) {
            // ignore
        } catch (ZkException e) {
            throw new ArbitrateException("addRemedyIndex", data.getPipelineId().toString(), e);
        }
    }
View Full Code Here

        try {
            zookeeper.delete(path + "/" + RemedyIndexEventData.formatNodeName(data));
        } catch (ZkNoNodeException e) {
            // ignore
        } catch (ZkException e) {
            throw new ArbitrateException("removeRemedyIndex", data.getPipelineId().toString(), e);
        }
    }
View Full Code Here

                RemedyIndexEventData data = RemedyIndexEventData.parseNodeName(node);
                data.setPipelineId(pipelineId);
                datas.add(data);
            }
        } catch (ZkException e) {
            throw new ArbitrateException("listRemedyIndexs", pipelineId.toString(), e);
        }

        Collections.sort(datas, new RemedyIndexComparator()); // 做一下排序
        return datas;
    }
View Full Code Here

        String path = StagePathUtils.getMainStem(data.getPipelineId());
        byte[] bytes = JsonUtils.marshalToByte(data);// 初始化的数据对象
        try {
            zookeeper.writeData(path, bytes);
        } catch (ZkException e) {
            throw new ArbitrateException("mainStem_single", data.toString(), e);
        }
        activeData = data;
    }
View Full Code Here

            // lock.unlock();// 出现任何异常解除lock
            // } catch (KeeperException e1) {
            // // ignore
            // }

            throw new ArbitrateException(e);
        }
    }
View Full Code Here

                }

            } catch (NoNodeException e) {
                // ignore
            } catch (KeeperException e) {
                throw new ArbitrateException(e);
            } catch (InterruptedException e) {
                // ignore
            } catch (UnsupportedEncodingException e) {
                // ignore
            }
View Full Code Here

                }

            } catch (NoNodeException e) {
                // ignore
            } catch (KeeperException e) {
                throw new ArbitrateException(e);
            } catch (InterruptedException e) {
                // ignore
            } catch (UnsupportedEncodingException e) {
                // ignore
            }
View Full Code Here

TOP

Related Classes of com.alibaba.otter.shared.arbitrate.exception.ArbitrateException

Copyright © 2018 www.massapicom. 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.