Package org.apache.phoenix.metrics

Examples of org.apache.phoenix.metrics.MetricsWriter.initialize()


    public static MetricsWriter initializeWriter(String clazz) {
        try {
            MetricsWriter writer =
                    Class.forName(clazz).asSubclass(MetricsWriter.class).newInstance();
            writer.initialize();
            return writer;
        } catch (InstantiationException e) {
            LOG.error("Failed to create metrics writer: " + clazz, e);
        } catch (IllegalAccessException e) {
            LOG.error("Failed to create metrics writer: " + clazz, 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.