Package com.elastisys.scale.cloudadapters.commons.adapter.liveness.testing

Examples of com.elastisys.scale.cloudadapters.commons.adapter.liveness.testing.SshLivenessTest


    int maxRetries = livenessConfig.getBootTimeCheck().getMaxRetries();
    long delay = livenessConfig.getBootTimeCheck().getRetryDelay();

    String taskName = String.format("boot-liveness-waiter{%s}",
        machine.getId());
    SshLivenessTest livenessTest = new StandardSshLivenessTest(machine,
        sshPort, username, privateKey, command, maxRetries, delay,
        taskName);
    return livenessTest;
  }
View Full Code Here


    int maxRetries = livenessConfig.getRunTimeCheck().getMaxRetries();
    long delay = livenessConfig.getRunTimeCheck().getRetryDelay();

    String taskName = String.format("runtime-liveness-check{%s}",
        machine.getId());
    SshLivenessTest livenessTest = new StandardSshLivenessTest(machine,
        sshPort, username, privateKey, command, maxRetries, delay,
        taskName);
    return livenessTest;
  }
View Full Code Here

    this.livenessObservations.put(machine.getId(), LivenessState.BOOTING);

    bootAlert(machine);

    LOG.debug("checking boot-time liveness for {}", machine.getId());
    SshLivenessTest bootCheck = this.livenessTestFactory
        .createBootTimeCheck(machine, config());
    return this.executor.submit(new LivenessCheckRunner(bootCheck));
  }
View Full Code Here

    // if first time machine is encountered, set UNKNOWN liveness state
    getLiveness(machine);

    LOG.debug("checking run-time liveness for {}", machine.getId());
    SshLivenessTest runtimeCheck = this.livenessTestFactory
        .createRunTimeCheck(machine, config());

    return this.executor.submit(new LivenessCheckRunner(runtimeCheck));
  }
View Full Code Here

TOP

Related Classes of com.elastisys.scale.cloudadapters.commons.adapter.liveness.testing.SshLivenessTest

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.