Examples of PlatformLayerCloudMachine


Examples of org.platformlayer.ops.machines.PlatformLayerCloudMachine

          @Override
          public String get() throws OpsException {
            // Refresh item to pick up new tags
            backendItem = platformLayerClient.getItem(backendItem.getKey(), DirectInstance.class);

            PlatformLayerCloudMachine instanceMachine = (PlatformLayerCloudMachine) instanceHelpers
                .getMachine(backendItem);
            DirectInstance instance = (DirectInstance) instanceMachine.getInstance();
            List<InetAddress> addresses = Tag.NETWORK_ADDRESS.find(instance);
            InetAddress address = InetAddressChooser.preferIpv4().choose(addresses);
            if (address == null) {
              throw new IllegalStateException();
            }
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.