Package lcmc.cluster.service.ssh

Examples of lcmc.cluster.service.ssh.SshOutput


        }
        final Map<String, String> replaceHash = new HashMap<String, String>();
        replaceHash.put("@ID@", resId);

        final String command = host.getDistCommand(cmd, replaceHash);
        final SshOutput ret = execCommand(host, command, runMode);
        return ret.getExitCode() == 0;
    }
View Full Code Here


        final Map<String, String> replaceHash = new HashMap<String, String>();
        replaceHash.put("@ID@", resId);
        replaceHash.put("@HOST@", onHost);
        final String command = host.getDistCommand("CRM.migrateResource", replaceHash);

        final SshOutput ret = execCommand(host, command, runMode);
        return ret.getExitCode() == 0;
    }
View Full Code Here

    public static boolean migrateFromResource(final Host host, final String resId, final Application.RunMode runMode) {
        final Map<String, String> replaceHash = new HashMap<String, String>();
        replaceHash.put("@ID@", resId);
        final String command = host.getDistCommand("CRM.migrateFromResource", replaceHash);

        final SshOutput ret = execCommand(host, command, runMode);
        return ret.getExitCode() == 0;
    }
View Full Code Here

        final Map<String, String> replaceHash = new HashMap<String, String>();
        replaceHash.put("@ID@", resId);
        replaceHash.put("@HOST@", onHost);
        final String command = host.getDistCommand("CRM.forceMigrateResource", replaceHash);

        final SshOutput ret = execCommand(host, command, runMode);
        return ret.getExitCode() == 0;
    }
View Full Code Here

    public static boolean unmigrateResource(final Host host, final String resId, final Application.RunMode runMode) {
        final Map<String, String> replaceHash = new HashMap<String, String>();
        replaceHash.put("@ID@", resId);
        final String command = host.getDistCommand("CRM.unmigrateResource", replaceHash);
        final SshOutput ret = execCommand(host, command, runMode);
        return ret.getExitCode() == 0;
    }
View Full Code Here

            rscdXML.append("</meta_attributes></rsc_defaults>'");

            command.append(';');
            command.append(getCibCommand(updateOrReplace, "rsc_defaults", rscdXML.toString()));
        }
        final SshOutput ret = execCommand(host, command.toString(), runMode);
        return ret.getExitCode() == 0;
    }
View Full Code Here

        final StringBuilder xml = new StringBuilder(360);
        xml.append("'<rsc_colocation id=\"");
        xml.append(colocationId);
        xml.append("\"/>'");
        final String command = getCibCommand("-D", "constraints", xml.toString());
        final SshOutput ret = execCommand(host, command, runMode);
        return ret.getExitCode() == 0;
    }
View Full Code Here

            xml.append("\" ").append(attr).append("=\"");
            xml.append(value);
        }
        xml.append("\"/>'");
        final String command = getCibCommand(cibadminOpt, "constraints", xml.toString());
        final SshOutput ret = execCommand(host, command, runMode);
        return ret.getExitCode() == 0;
    }
View Full Code Here

        final StringBuilder xml = new StringBuilder(360);
        xml.append("'<rsc_order id=\"");
        xml.append(orderId);
        xml.append("\"/>'");
        final String command = getCibCommand("-D", "constraints", xml.toString());
        final SshOutput ret = execCommand(host, command, runMode);
        return ret.getExitCode() == 0;
    }
View Full Code Here

            xml.append("\" ").append(attr).append("=\"");
            xml.append(value);
        }
        xml.append("\"/>'");
        final String command = getCibCommand(cibadminOpt, "constraints", xml.toString());
        final SshOutput ret = execCommand(host, command, runMode);
        return ret.getExitCode() == 0;
    }
View Full Code Here

TOP

Related Classes of lcmc.cluster.service.ssh.SshOutput

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.