Examples of MuninGraphValueConfig


Examples of com.rupertjones.globalcron.server.web.munin.MuninGraphValueConfig

        config.setVerticalLabel("Number of executions");

        int count = 1;

        for (JobDescriptor job : jobDescriptorDAO.findAll()) {
            MuninGraphValueConfig drawConfig = new MuninGraphValueConfig();
            drawConfig.setValueKey(job.getKey());
            drawConfig.setValueConfig("draw");
            drawConfig.setConfigValue((count == 1 ? "AREA" : "STACK"));
            drawConfig.setObject(job);
            config.addValueConfig(drawConfig);

            MuninGraphValueConfig labelConfig = new MuninGraphValueConfig();
            labelConfig.setValueKey(job.getKey());
            labelConfig.setValueConfig("label");
            labelConfig.setConfigValue(job.getKey());
            labelConfig.setObject(job);
            config.addValueConfig(labelConfig);
            count++;
        }

        return config;
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.