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

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


    }

    public static RemedyIndexEventData parseNodeName(String node) {
        String[] datas = StringUtils.split(node, SPLIT);
        if (datas.length != 3) {
            throw new ArbitrateException("remedy index[" + node + "] format is not correctly!");
        }

        RemedyIndexEventData eventData = new RemedyIndexEventData();
        eventData.setProcessId(Long.valueOf(datas[0]));
        eventData.setStartTime(Long.valueOf(datas[1]));
View Full Code Here


                return eventData;// 只有这一条路返回
            } catch (ZkNoNodeException e) {
                logger.error("pipeline[{}] processId[{}] is invalid , retry again", pipelineId, processId);
                return await(pipelineId);// /出现节点不存在,说明出现了error情况,递归调用重新获取一次
            } catch (ZkException e) {
                throw new ArbitrateException("transform_await", e.getMessage(), e);
            }
        } else {
            logger.info("pipelineId[{}] transform ignore processId[{}] by status[{}]", new Object[] { pipelineId,
                    processId, status });
            return await(pipelineId);// 递归调用
View Full Code Here

        } catch (ZkNodeExistsException e) {
            // process节点已存在,出现了ConnectionLoss retry操作
            logger.warn("pipelineId[{}] transform ignore processId[{}] single by data:{}",
                        new Object[] { data.getPipelineId(), data.getProcessId(), data });
        } catch (ZkException e) {
            throw new ArbitrateException("transform_single", e.getMessage(), e);
        }
    }
View Full Code Here

                    // termin.setPipelineId(pipelineId);
                    // termin.setType(TerminType.ROLLBACK);
                    // termin.setCode("no_node");
                    // termin.setDesc(MessageFormat.format("pipeline[{}] extract stage has no node!", pipelineId));
                    // terminEvent.single(termin);
                    throw new ArbitrateException("Select_single", "no next node");
                } else {
                    eventData.setNextNid(node.getId());
                    markUsed(eventData); // 标记为已使用
                    return eventData;// 只有这一条路返回
                }
            } catch (ZkNoNodeException e) {
                logger.error("pipeline[{}] processId[{}] is invalid , retry again", pipelineId, processId);
                return await(pipelineId);// /出现节点不存在,说明出现了error情况,递归调用重新获取一次
            } catch (ZkException e) {
                throw new ArbitrateException("Select_await", e.getMessage(), e);
            }
        } else {
            logger.warn("pipelineId[{}] select ignore processId[{}] by status[{}]", new Object[] { pipelineId,
                    processId, status });
            // add by ljh 2013-02-01
View Full Code Here

        } catch (ZkNodeExistsException e) {
            // process节点已存在,出现了ConnectionLoss retry操作
            logger.warn("pipelineId[{}] select ignore processId[{}] single by data:{}",
                        new Object[] { data.getPipelineId(), data.getProcessId(), data });
        } catch (ZkException e) {
            throw new ArbitrateException("Select_single", e.getMessage(), e);
        }

    }
View Full Code Here

        ChannelStatus status = permitMonitor.getChannelPermit();
        if (status.isStart() || status.isPause()) {// pause状态也让其处理,避免误删除pause状态的processId,导致通道挂起
            EtlEventData eventData = stageController.getLastData(processId);
            Node node = LoadBalanceFactory.getNextTransformNode(pipelineId);// 获取下一个处理节点信息
            if (node == null) {// 没有后端节点
                throw new ArbitrateException("Extract_single", "no next node");
            } else {
                eventData.setNextNid(node.getId());
                return eventData;// 只有这一条路返回
            }
        } else {
View Full Code Here

        if (pipeline != null) {
            Long id = pipeline.getId();
            return String.valueOf(id);
        }

        throw new ArbitrateException("pipeline[" + pipelineId + "] has not opposite pipeline!");
    }
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

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.