Package org.jclouds.ibm.smartcloud.predicates

Examples of org.jclouds.ibm.smartcloud.predicates.VolumeUnmounted


   public void testCreateVolume() throws Exception {
      try {
         volume = connection.createVolumeInLocation(location.getId(), GROUP, FORMAT, cheapestStorage.getName(),
                  cheapestStorage.getId());
         // wait up to 5 minutes for this to become "unmounted"
         assert new RetryablePredicate<Volume>(new VolumeUnmounted(connection), 300, 5, TimeUnit.SECONDS).apply(volume);
      } catch (IllegalStateException e) {
         int code = HttpResponseException.class.cast(e.getCause()).getResponse().getStatusCode();
         if (code == 409 || code == 500) {
            Set<? extends Volume> volumes = connection.listVolumes();
            try {
View Full Code Here

TOP

Related Classes of org.jclouds.ibm.smartcloud.predicates.VolumeUnmounted

Copyright © 2018 www.massapicom. 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.