Package org.melonbrew.fe.Metrics

Examples of org.melonbrew.fe.Metrics.Graph


    private void loadMetrics() {
        try {
            Metrics metrics = new Metrics(this);

            Graph databaseGraph = metrics.createGraph("Database Engine");

            databaseGraph.addPlotter(new Plotter(getFeDatabase().getName()) {
                public int getValue() {
                    return 1;
                }
            });

            Graph defaultHoldings = metrics.createGraph("Default Holdings");

            defaultHoldings.addPlotter(new Plotter(getAPI().getDefaultHoldings() + "") {
                public int getValue() {
                    return 1;
                }
            });

            Graph maxHoldings = metrics.createGraph("Max Holdings");

            String maxHolding = getAPI().getMaxHoldings() + "";

            if (getAPI().getMaxHoldings() == -1) {
                maxHolding = "Unlimited";
            }

            maxHoldings.addPlotter(new Plotter(maxHolding) {
                public int getValue() {
                    return 1;
                }
            });
View Full Code Here

TOP

Related Classes of org.melonbrew.fe.Metrics.Graph

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.