Examples of GetConsoleOutputResult


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

    public void execute(AmazonEC2 client, Pool pool, DelegateExecution execution) throws Exception {
        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.GetConsoleOutputResult

    public void execute(AmazonEC2 client, Pool pool, DelegateExecution execution) throws Exception {
        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.