Examples of InitException


Examples of com.crashnote.core.model.excp.InitException

        if (!started) {
            started = true;

            // make sure there is at least one connector
            if (connectors.isEmpty())
                throw new InitException("unable to start: no log connector could be initialized");
        }

        return started;
    }
View Full Code Here

Examples of com.sun.enterprise.admin.server.core.jmx.InitException

            registerDottedNameSupport();
            registerConfigMBeans();
        }
        catch (Exception e) {
            sLogger.log(Level.WARNING, "Error in initialize", e);
            throw new InitException(e.getMessage(), e );
        }
    }
View Full Code Here

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

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

                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

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

            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

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

    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

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

                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

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

                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

Examples of org.apache.qpid.server.Broker.InitException

                        options.addPort(Integer.parseInt(String.valueOf(ports[i])));
                    }
                }
                catch (NumberFormatException e)
                {
                    throw new InitException("Invalid port: " + ports[i], e);
                }
            }
        }
    }
View Full Code Here

Examples of org.apache.qpid.server.Broker.InitException

                    options.addExcludedPort(excludedProtocol,
                            Integer.parseInt(String.valueOf(ports[i])));
                }
                catch (NumberFormatException e)
                {
                    throw new InitException("Invalid port for exclusion: " + ports[i], e);
                }
            }
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.