Package com.taobao.metamorphosis.server.utils

Examples of com.taobao.metamorphosis.server.utils.MetaConfig.loadFromFile()


            System.err.println("Please tell me the broker configuration file path by -f option");
            System.exit(1);
        }

        final MetaConfig metaConfig = new MetaConfig();
        metaConfig.loadFromFile(configFilePath);
        metaConfig.verify();
        log.warn("����������Ϊ��" + metaConfig);
        System.out.println("׼������������������Ϊ��" + metaConfig);
        return metaConfig;
    }
View Full Code Here


        final File dataDir = new File(System.getProperty("user.home") + File.separator + "meta");
        if (!dataDir.exists()) {
            dataDir.mkdir();
        }

        metaConfig.loadFromFile(file.getAbsolutePath());
        metaConfig.setDataPath(metaConfig.getDataPath() + File.separator + name);
        for (final TopicConfig topicConfig : metaConfig.getTopicConfigMap().values()) {
            topicConfig.setDataPath(metaConfig.getDataPath());
        }
        return metaConfig;
View Full Code Here

    }


    static MetaConfig getMetaConfig(final String configFilePath) {
        final MetaConfig metaConfig = new MetaConfig();
        metaConfig.loadFromFile(configFilePath);
        metaConfig.verify();
        log.warn("����������Ϊ��" + metaConfig);
        System.out.println("׼������������������Ϊ��" + metaConfig);
        return metaConfig;
    }
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.