Package org.platformlayer

Examples of org.platformlayer.InetAddressChooser.choose()


        @Override
        public TagChanges get() throws OpsException {
          RawInstance instance = platformLayerClient.getItem(model.instance, RawInstance.class);

          InetAddressChooser chooser = InetAddressChooser.preferIpv4();
          InetAddress publicAddress = chooser.choose(Tag.NETWORK_ADDRESS.find(instance.getTags()));

          if (publicAddress == null) {
            throw new OpsException("Cannot find address for instance: " + model.instance);
          }
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.