Package com.taobao.metamorphosis.server.exception

Examples of com.taobao.metamorphosis.server.exception.MetamorphosisServerStartupException


            return parser.parse(options, args);
        }
        catch (final ParseException e) {
            hf.printHelp("ServerStartup", options, true);
            log.error("Parse command line failed", e);
            throw new MetamorphosisServerStartupException("Parse command line failed", e);
        }
    }
View Full Code Here


    public static Properties getProps(final String path) {
        try {
            return Utils.getResourceAsProperties(path, "GBK");
        }
        catch (final IOException e) {
            throw new MetamorphosisServerStartupException("Parse configuration failed,path=" + path, e);
        }
    }
View Full Code Here

            }
            deletePolicy.init(initValues);
            return deletePolicy;
        }
        catch (Exception e) {
            throw new MetamorphosisServerStartupException("New delete policy `" + name + "` failed", e);
        }

    }
View Full Code Here

        }

        for (final String name : pluginsInfo.keySet()) {
            log.info("cmd line require start plugin:" + name);
            if (plugins.get(name) == null) {
                throw new MetamorphosisServerStartupException("unknown broker plugin:" + name);
            }
        }
    }
View Full Code Here

        try {
            final BrokerPlugin plugin = pluginClass.getConstructor(new Class[0]).newInstance();
            this.plugins.put(plugin.name(), plugin);
        }
        catch (final Exception e) {
            throw new MetamorphosisServerStartupException("Register broker plugin failed", e);
        }
    }
View Full Code Here

        String configFilePath = null;
        if (line.hasOption(optionStr)) {
            configFilePath = line.getOptionValue(optionStr);
            if (StringUtils.isBlank(configFilePath)) {
                throw new MetamorphosisServerStartupException("Blank file path");
            }

        }
        else {
            System.err.println("Please tell me the broker configuration file path by -f option");
View Full Code Here

        try {
            this.loadMessageStores(this.metaConfig);
        }
        catch (final IOException e) {
            log.error("load message stores failed", e);
            throw new MetamorphosisServerStartupException("Initilize message store manager failed", e);
        }
        catch (InterruptedException e) {
            Thread.currentThread().interrupt();
        }
View Full Code Here

        super(next);
        try {
            this.heuristicTransactionJournal = new HeuristicTransactionJournal(metaConfig.getDataLogPath());
        }
        catch (final IOException e) {
            throw new MetamorphosisServerStartupException("Initialize HeuristicTransactionJournal failed", e);
        }
        this.metaConfig = metaConfig;
        this.idWorker = idWorker;
        this.storeManager = storeManager;
        this.transactionStore = transactionStore;
View Full Code Here

                }
            });
        }
        catch (final Throwable e) {
            throw new MetamorphosisServerStartupException("Recover prepared transactions failed", e);
        }
    }
View Full Code Here

            if (appClassDir.exists() && appClassDir.isDirectory()) {
                // It's a directory,it must be ends with "/"
                this.appClassPath = appClassDir.getAbsolutePath() + "/";
            }
            if (!file.exists()) {
                throw new MetamorphosisServerStartupException("File " + path + " is not exists");
            }
            final Ini conf = this.createIni(file);
            this.populateAttributes(conf);
        }
        catch (final IOException e) {
            throw new MetamorphosisServerStartupException("Parse configuration failed,path=" + path, e);
        }
    }
View Full Code Here

TOP

Related Classes of com.taobao.metamorphosis.server.exception.MetamorphosisServerStartupException

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.