Package com.alibaba.otter.manager.biz.common.exceptions

Examples of com.alibaba.otter.manager.biz.common.exceptions.RepeatConfigureException


                    if (!pipelineDao.checkUnique(pipelineDo)) {
                        String exceptionCause = "exist the same name pipeline under the channel("
                                                + pipelineDo.getChannelId() + ") in the database.";
                        logger.warn("WARN ## " + exceptionCause);
                        throw new RepeatConfigureException(exceptionCause);
                    }
                    pipelineDao.insert(pipelineDo);

                    List<PipelineNodeRelationDO> pipelineNodeRelationDos = new ArrayList<PipelineNodeRelationDO>();
View Full Code Here


            if (!pipelineDao.checkUnique(pipelineDo)) {
                String exceptionCause = "exist the same name pipeline under the channel(" + pipelineDo.getChannelId()
                                        + ") in the database.";
                logger.warn("WARN ## " + exceptionCause);
                throw new RepeatConfigureException(exceptionCause);
            }

            pipelineNodeRelationDao.deleteByPipelineId(pipelineDo.getId());

            pipelineDao.update(pipelineDo);
View Full Code Here

                    CanalDO canalDO = modelToDo(canal);
                    canalDO.setId(0L);
                    if (!canalDao.checkUnique(canalDO)) {
                        String exceptionCause = "exist the same repeat canal in the database.";
                        logger.warn("WARN ## " + exceptionCause);
                        throw new RepeatConfigureException(exceptionCause);
                    }
                    canalDao.insert(canalDO);
                    canal.setId(canalDO.getId());
                } catch (RepeatConfigureException rce) {
                    throw rce;
View Full Code Here

                    if (canalDao.checkUnique(canalDo)) {
                        canalDao.update(canalDo);
                    } else {
                        String exceptionCause = "exist the same repeat canal in the database.";
                        logger.warn("WARN ## " + exceptionCause);
                        throw new RepeatConfigureException(exceptionCause);
                    }
                } catch (RepeatConfigureException rce) {
                    throw rce;
                } catch (Exception e) {
                    logger.error("ERROR ## modify canal(" + canal.getId() + ") has an exception!");
View Full Code Here

                    if (!pipelineDao.checkUnique(pipelineDo)) {
                        String exceptionCause = "exist the same name pipeline under the channel("
                                                + pipelineDo.getChannelId() + ") in the database.";
                        logger.warn("WARN ## " + exceptionCause);
                        throw new RepeatConfigureException(exceptionCause);
                    }
                    pipelineDao.insert(pipelineDo);

                    List<PipelineNodeRelationDO> pipelineNodeRelationDos = new ArrayList<PipelineNodeRelationDO>();
View Full Code Here

            if (!pipelineDao.checkUnique(pipelineDo)) {
                String exceptionCause = "exist the same name pipeline under the channel(" + pipelineDo.getChannelId()
                                        + ") in the database.";
                logger.warn("WARN ## " + exceptionCause);
                throw new RepeatConfigureException(exceptionCause);
            }

            pipelineNodeRelationDao.deleteByPipelineId(pipelineDo.getId());

            pipelineDao.update(pipelineDo);
View Full Code Here

                    DataMatrixDO matrixlDO = modelToDo(matrix);
                    matrixlDO.setId(0L);
                    if (!dataMatrixDao.checkUnique(matrixlDO)) {
                        String exceptionCause = "exist the same repeat canal in the database.";
                        logger.warn("WARN ## " + exceptionCause);
                        throw new RepeatConfigureException(exceptionCause);
                    }
                    dataMatrixDao.insert(matrixlDO);
                } catch (RepeatConfigureException rce) {
                    throw rce;
                } catch (Exception e) {
View Full Code Here

                    if (dataMatrixDao.checkUnique(matrixDo)) {
                        dataMatrixDao.update(matrixDo);
                    } else {
                        String exceptionCause = "exist the same repeat matrix in the database.";
                        logger.warn("WARN ## " + exceptionCause);
                        throw new RepeatConfigureException(exceptionCause);
                    }
                } catch (RepeatConfigureException rce) {
                    throw rce;
                } catch (Exception e) {
                    logger.error("ERROR ## modify canal(" + matrix.getId() + ") has an exception!");
View Full Code Here

            DataMediaPairDO dataMediaPairDo = modelToDo(dataMediaPair);
            dataMediaPairDo.setId(0L);
            if (!dataMediaPairDao.checkUnique(dataMediaPairDo)) {
                String exceptionCause = "exist the same pair in the database.";
                logger.warn("WARN ## " + exceptionCause);
                throw new RepeatConfigureException(exceptionCause);
            }

            dataMediaPairDao.insert(dataMediaPairDo);
            return dataMediaPairDo.getId();
        } catch (RepeatConfigureException rcf) {
View Full Code Here

            if (dataMediaPairDao.checkUnique(dataMediaPairDo)) {
                dataMediaPairDao.update(dataMediaPairDo);
            } else {
                String exceptionCause = "exist the same pair in the database.";
                logger.warn("WARN ## " + exceptionCause);
                throw new RepeatConfigureException(exceptionCause);
            }
        } catch (RepeatConfigureException rce) {
            throw rce;
        } catch (Exception e) {
            logger.error("ERROR ## modify dataMediaPair has an exception!", e);
View Full Code Here

TOP

Related Classes of com.alibaba.otter.manager.biz.common.exceptions.RepeatConfigureException

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.