Examples of GetConsoleOutputRequest


Examples of com.amazonaws.services.ec2.model.GetConsoleOutputRequest

        Machine machine = (Machine) execution.getVariable("machine");
        checkNotNull(machine, "expecting 'machine' as a process variable");

        LOG.info(">> Requesting console output for instance {}", machine.getExternalId());
        GetConsoleOutputResult result = client.getConsoleOutput(
            new GetConsoleOutputRequest().withInstanceId(machine.getExternalId()));
        if (result.getOutput() != null) {
            String content = new String(Base64.decode(result.getOutput()), Charsets.UTF_8);
            LOG.info("<< Console output for instance {}: {}", machine.getExternalId(), content);
        } else {
            LOG.warn("<< Console output was null for instance {}", machine.getExternalId());
View Full Code Here

Examples of com.amazonaws.services.ec2.model.GetConsoleOutputRequest

    @Override
    public GetConsoleOutputResult consoleOutput(
            ResultCapture<GetConsoleOutputResult> extractor) {

        GetConsoleOutputRequest request = new GetConsoleOutputRequest();
        return consoleOutput(request, extractor);
    }
View Full Code Here

Examples of com.amazonaws.services.ec2.model.GetConsoleOutputRequest

        Machine machine = (Machine) execution.getVariable("machine");
        checkNotNull(machine, "expecting 'machine' as a process variable");

        LOG.info(">> Requesting console output for instance {}", machine.getExternalId());
        GetConsoleOutputResult result = client.getConsoleOutput(
            new GetConsoleOutputRequest().withInstanceId(machine.getExternalId()));
        String content = new String(Base64.decode(result.getOutput()), Charsets.UTF_8);

        LOG.info("<< Console output for instance {}: {}", machine.getExternalId(), content);
    }
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.