Examples of MuninGraphConfig


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

    @Autowired
    private JobDescriptorDAO jobDescriptorDAO;

    @Override
    public MuninGraphConfig getConfig() {
        MuninGraphConfig config = new MuninGraphConfig();
        config.setCategory("global-cron");
        config.setTitle("Executions");
        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

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

    private class NothingReport implements MuninReport {

        @Override
        public MuninGraphConfig getConfig() {
            return new MuninGraphConfig();
        }
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.