Package org.platformlayer.service.cloud.google.ops.compute

Examples of org.platformlayer.service.cloud.google.ops.compute.GoogleComputeClient.terminateInstance()


        // SecurityGroup securityGroup = null;
        // if (supportsSecurityGroups) {
        // securityGroup = openstackHelpers.getMachineSecurityGroup(computeClient, server);
        // }

        Operation terminateOperation = computeClient.terminateInstance(instanceId);
        try {
          computeClient.waitComplete(terminateOperation, 5, TimeUnit.MINUTES);
        } catch (TimeoutException e) {
          throw new OpsException("Timeout while waiting for instance termination", e);
        }
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.