Package com.taobao.metamorphosis.tools.monitor

Examples of com.taobao.metamorphosis.tools.monitor.InitException


            Query query = new Query();
            this.zkConfig = query.getZkConfig(this.coreManager.getMonitorConfig().getConfigPath());
            query.close();
        }
        catch (IOException e) {
            throw new InitException("��ʼ��ZKConnProberʧ��", e);
        }
    }
View Full Code Here


                this.zkClient = this.newZkClient(this.zkConfig);
                this.metaZookeeper = new MetaZookeeper(zkClient, zkConfig.zkRoot);
                this.zkQuery = new ZkOffsetStorageQuery(this.zkClient, metaZookeeper);
            }
            catch (final IOException e) {
                throw new InitException("��ʼ��zk�ͻ���ʧ��", e);
            }
        }
        if (!StringUtil.empty(jdbcConf)) {
            this.initMysqlClient(jdbcConf);
            this.mysqlQuery = new MysqlOffsetStorageQuery(this.connect);
View Full Code Here

            System.out.println("mysql connect parameter is :\njdbc.url=" + jdbcUrl);
            Class.forName("com.mysql.jdbc.Driver");
            this.connect = DriverManager.getConnection(jdbcUrl);
        }
        catch (final FileNotFoundException e) {
            throw new InitException(e.getMessage(), e.getCause());
        }
        catch (final Exception e) {
            throw new InitException("mysql connect init failed. " + e.getMessage(), e.getCause());
        }
    }
View Full Code Here

    private CoreManager(final MonitorConfig monitorConfig, int coreSize) throws InitException {
        this.monitorConfig = monitorConfig;
        List<MetaServer> metaServerList = this.monitorConfig.getMetaServerList();
        if (metaServerList == null || metaServerList.isEmpty()) {
            throw new InitException("serverUrls����Ϊ��");
        }

        this.proberExecutor = new ScheduledThreadPoolExecutor(coreSize);

        logger.info("init senders and receivers...");
View Full Code Here

                this.reveicers[i] = new MsgReceiver(metaServerList.get(i).getUrl(), this.monitorConfig);
            }
        }
        catch (MetaClientException e) {
            throw new InitException("init Senders and Receivers fail", e);
        }
    }
View Full Code Here

                this.publishTopics(this.getSenders());
                this.addListener(new DefaultProbeListener());
                this.addListener(new AlarmProbeListener(this.getMonitorConfig()));
            }
            catch (Exception e) {
                throw new InitException("unexpected errer at init", e);
            }
        }
    }
View Full Code Here

TOP

Related Classes of com.taobao.metamorphosis.tools.monitor.InitException

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.