Package lcmc.cluster.service.ssh

Examples of lcmc.cluster.service.ssh.SshOutput


                                    final String resource,
                                    final String volume,
                                    final ExecCallback execCallback,
                                    final Application.RunMode runMode) {
        final String command = host.getDistCommand("DRBD.pauseSync", getResVolReplaceHash(host, resource, volume));
        final SshOutput ret = execCommand(host, command, execCallback, true, runMode);
        return ret.getExitCode() == 0;
    }
View Full Code Here


                                     final String resource,
                                     final String volume,
                                     final ExecCallback execCallback,
                                     final Application.RunMode runMode) {
        final String command = host.getDistCommand("DRBD.resumeSync", getResVolReplaceHash(host, resource, volume));
        final SshOutput ret = execCommand(host, command, execCallback, true, runMode);
        return ret.getExitCode() == 0;
    }
View Full Code Here

                                     final String resource,
                                     final String volume,
                                     final ExecCallback execCallback,
                                     final Application.RunMode runMode) {
        final String command = host.getDistCommand("DRBD.setPrimary", getResVolReplaceHash(host, resource, volume));
        final SshOutput ret = execCommand(host, command, execCallback, true, runMode);
        return ret.getExitCode() == 0;
    }
View Full Code Here

                                       final String resource,
                                       final String volume,
                                       final ExecCallback execCallback,
                                       final Application.RunMode runMode) {
        final String command = host.getDistCommand("DRBD.setSecondary", getResVolReplaceHash(host, resource, volume));
        final SshOutput ret = execCommand(host, command, execCallback, true, runMode);
        return ret.getExitCode() == 0;
    }
View Full Code Here

                                   final String resource,
                                   final String volume,
                                   final ExecCallback execCallback,
                                   final Application.RunMode runMode) {
        final String command = host.getDistCommand("DRBD.initDrbd", getResVolReplaceHash(host, resource, volume));
        final SshOutput ret = execCommand(host, command, execCallback, true, runMode);
        return ret.getExitCode() == 0;
    }
View Full Code Here

                                   final ExecCallback execCallback,
                                   final Application.RunMode runMode) {
        final Map<String, String> replaceHash = getResVolReplaceHash(host, resource, volume);
        replaceHash.put(DEVICE_PLACE_HOLDER, device);
        final String command = host.getDistCommand("DRBD.createMD", replaceHash);
        final SshOutput ret = execCommand(host, command, execCallback, true, runMode);
        return ret.getExitCode() == 0;
    }
View Full Code Here

                                              final ExecCallback execCallback,
                                              final Application.RunMode runMode) {
        final Map<String, String> replaceHash = getResVolReplaceHash(host, resource, volume);
        replaceHash.put(DEVICE_PLACE_HOLDER, device);
        final String command = host.getDistCommand("DRBD.createMDDestroyData", replaceHash);
        final SshOutput ret = execCommand(host, command, execCallback, true, runMode);
        return ret.getExitCode() == 0;
    }
View Full Code Here

            replaceHash.put(FILESYSTEM_PLACE_HOLDER, filesystem + " -q");
        } else {
            replaceHash.put(FILESYSTEM_PLACE_HOLDER, filesystem);
        }
        final String command = host.getDistCommand("DRBD.makeFilesystem", replaceHash);
        final SshOutput ret = execCommand(host, command, execCallback, true, runMode);
        return ret.getExitCode() == 0;
    }
View Full Code Here

            if (host.drbdVersionSmallerOrEqual("8.3")) {
                command = host.getDistCommand("DRBD.skipInitSync.8.3", getResVolReplaceHash(host, resource, volume));
            } else {
                command = host.getDistCommand("DRBD.skipInitSync", getResVolReplaceHash(host, resource, volume));
            }
            final SshOutput ret = execCommand(host, command, execCallback, true, runMode);
            return ret.getExitCode() == 0;
        } catch (final IllegalVersionException e) {
            LOG.appWarning("skipInitialFullSync: " + e.getMessage(), e);
            return false;
        }
    }
View Full Code Here

            } else if (host.drbdVersionSmallerOrEqual("8.3")) {
                command = host.getDistCommand("DRBD.forcePrimary.8.3", getResVolReplaceHash(host, resource, volume));
            } else {
                command = host.getDistCommand("DRBD.forcePrimary", getResVolReplaceHash(host, resource, volume));
            }
            final SshOutput ret = execCommand(host, command, execCallback, true, runMode);
            return ret.getExitCode() == 0;
        } catch (final IllegalVersionException e) {
            LOG.appWarning("forcePrimary: " + e.getMessage(), e);
            return false;
        }
    }
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.