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

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


        if (StringUtils.isNotEmpty(pauseTime)) {
            SimpleDateFormat format = new SimpleDateFormat(TIMESTAMP_FORMAT);
            try {
                alarmRule.setPauseTime(format.parse(pauseTime));
            } catch (ParseException e) {
                throw new ManagerException(e);
            }
        }

        alarmRule.setAutoRecovery(alarmRuleDo.getAlarmRuleParameter() == null ? false : alarmRuleDo.getAlarmRuleParameter().getAutoRecovery());
        alarmRule.setRecoveryThresold(alarmRuleDo.getAlarmRuleParameter() == null ? 3 : alarmRuleDo.getAlarmRuleParameter().getRecoveryThresold());
View Full Code Here


            dataColumnPairGroupDao.insert(dataColumnPairGroupDo);
        } catch (RepeatConfigureException rcf) {
            throw rcf;
        } catch (Exception e) {
            logger.error("ERROR ## create dataColumnPairGroup has an exception!");
            throw new ManagerException(e);
        }
    }
View Full Code Here

                    dataColumnGroups.put(dataColumnPairGroupDo.getDataMediaPairId(), columnGroups);
                }
            }
        } catch (Exception e) {
            logger.error("ERROR ## query dataColumnPairGroup by dataMediaId:" + dataMediaPairIds + " has an exception!");
            throw new ManagerException(e);
        }

        return dataColumnGroups;
    }
View Full Code Here

                } catch (RepeatConfigureException rce) {
                    throw rce;
                } catch (Exception e) {
                    logger.error("ERROR ## create node has an exception!");
                    throw new ManagerException(e);
                }
            }
        });
    }
View Full Code Here

                try {
                    nodeDao.delete(nodeId);
                } catch (Exception e) {
                    logger.error("ERROR ## remove node(" + nodeId + ") has an exception!");
                    throw new ManagerException(e);
                }
            }
        });

    }
View Full Code Here

                    }
                } catch (RepeatConfigureException rce) {
                    throw rce;
                } catch (Exception e) {
                    logger.error("ERROR ## modify node(" + node.getId() + ") has an exception!");
                    throw new ManagerException(e);
                }
            }
        });

    }
View Full Code Here

        Assert.assertNotNull(nodeId);
        List<Node> nodes = listByIds(nodeId);
        if (nodes.size() != 1) {
            String exceptionCause = "query nodeId:" + nodeId + " return null.";
            logger.error("ERROR ## " + exceptionCause);
            throw new ManagerException(exceptionCause);
        }

        return nodes.get(0);

    }
View Full Code Here

            } else {
                nodeDos = nodeDao.listByMultiId(identities);
                if (nodeDos.isEmpty()) {
                    String exceptionCause = "couldn't query any node by nodeIds:" + Arrays.toString(identities);
                    logger.error("ERROR ## " + exceptionCause);
                    throw new ManagerException(exceptionCause);
                }
            }
            // 验证zk的node信息
            List<Long> nodeIds = arbitrateManageService.nodeEvent().liveNodes();
            for (NodeDO nodeDo : nodeDos) {
                if (nodeIds.contains(nodeDo.getId())) {
                    nodeDo.setStatus(NodeStatus.START);
                } else {
                    nodeDo.setStatus(NodeStatus.STOP);
                }
            }

            nodes = doToModel(nodeDos);
        } catch (Exception e) {
            logger.error("ERROR ## query nodes has an exception!");
            throw new ManagerException(e);
        }

        return nodes;
    }
View Full Code Here

            nodeDo.setParameters(node.getParameters());
            nodeDo.setGmtCreate(node.getGmtCreate());
            nodeDo.setGmtModified(node.getGmtModified());
        } catch (Exception e) {
            logger.error("ERROR ## change the node Model to Do has an exception");
            throw new ManagerException(e);
        }
        return nodeDo;
    }
View Full Code Here

            node.setParameters(parameter);
            node.setGmtCreate(nodeDo.getGmtCreate());
            node.setGmtModified(nodeDo.getGmtModified());
        } catch (Exception e) {
            logger.error("ERROR ## change the node Do to Model has an exception");
            throw new ManagerException(e);
        }

        return node;
    }
View Full Code Here

TOP

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

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.