Package com.sonyericsson.hudson.plugins.gerrit.trigger.config

Examples of com.sonyericsson.hudson.plugins.gerrit.trigger.config.PluginConfig


    @Override
    public void load() throws IOException {
        super.load();
        if (pluginConfig == null) {
            PluginConfig conf = new PluginConfig();
            if (config != null) {
                conf.setNumberOfReceivingWorkerThreads(config.getNumberOfReceivingWorkerThreads());
                conf.setNumberOfSendingWorkerThreads(config.getNumberOfSendingWorkerThreads());
            }
            pluginConfig = conf;
        }
        if (servers.isEmpty()) {
            if (config != null) { //have loaded data in old format, so add a new server with the old config to the list.
View Full Code Here


            throw new Failure("A server already exists with the name '" + serverName + "'");
        } else if (GerritServer.ANY_SERVER.equals(serverName)) {
            throw new Failure("Illegal server name '" + serverName + "'");
        }
        GerritServer server = new GerritServer(serverName);
        PluginConfig pluginConfig = PluginImpl.getInstance().getPluginConfig();
        server.getConfig().setNumberOfSendingWorkerThreads(pluginConfig.getNumberOfSendingWorkerThreads());

        String mode = req.getParameter("mode");
        if (mode != null && mode.equals("copy")) { //"Copy Existing Server Configuration" has been chosen
            String from = req.getParameter("from");
            GerritServer fromServer = plugin.getServer(from);
View Full Code Here

    InterruptedException {
        if (logger.isDebugEnabled()) {
            logger.debug("submit {}", req.toString());
        }
        JSONObject form = req.getSubmittedForm();
        PluginConfig pluginConfig = PluginImpl.getInstance().getPluginConfig();
        pluginConfig.setValues(form);
        PluginImpl.getInstance().save();
        GerritSendCommandQueue.configure(pluginConfig);
        //TODO reconfigure the incoming worker threads as well

        rsp.sendRedirect(".");
View Full Code Here

TOP

Related Classes of com.sonyericsson.hudson.plugins.gerrit.trigger.config.PluginConfig

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.