Package org.jclouds.abiquo.domain.cloud

Examples of org.jclouds.abiquo.domain.cloud.Volume


      assertEvents(options);
   }

   public void testListEventsFilteredByVolume() {
      String name = randomName();
      Volume volume = createVolume();
      volume.setName(name);
      volume.update();
      volume.delete(); // We don't need it any more. events already exist

      EventOptions options = EventOptions.builder().dateFrom(new Date()).volumeName(name).build();
      assertEvents(options);
   }
View Full Code Here


         public boolean apply(Tier input) {
            return input.getName().equals(env.tier.getName());
         }
      });

      Volume volume = Volume.builder(env.context.getApiContext(), env.virtualDatacenter, tier)
            .name(PREFIX + "Event vol").sizeInMb(32).build();

      volume.save();
      assertNotNull(volume.getId());

      return volume;
   }
View Full Code Here

      assertEvents(options);
   }

   public void testListEventsFilteredByVolume() {
      String name = randomName();
      Volume volume = createVolume();
      volume.setName(name);
      volume.update();
      volume.delete(); // We don't need it any more. events already exist

      EventOptions options = EventOptions.builder().dateFrom(new Date()).volumeName(name).build();
      assertEvents(options);
   }
View Full Code Here

         public boolean apply(Tier input) {
            return input.getName().equals(env.tier.getName());
         }
      });

      Volume volume = Volume.builder(env.context.getApiContext(), env.virtualDatacenter, tier)
            .name(PREFIX + "Event vol").sizeInMb(32).build();

      volume.save();
      assertNotNull(volume.getId());

      return volume;
   }
View Full Code Here

      assertEvents(options);
   }

   public void testListEventsFilteredByVolume() {
      String name = randomName();
      Volume volume = createVolume();
      volume.setName(name);
      volume.update();
      volume.delete(); // We don't need it any more. events already exist

      EventOptions options = EventOptions.builder().dateFrom(new Date()).volumeName(name).build();
      assertEvents(options);
   }
View Full Code Here

      assertTrue(Iterables.size(events) >= 1);
   }

   private Volume createVolume() {
      Tier tier = env.virtualDatacenter.findStorageTier(TierPredicates.name(env.tier.getName()));
      Volume volume = Volume.builder(env.context.getApiContext(), env.virtualDatacenter, tier)
            .name(PREFIX + "Event vol").sizeInMb(32).build();

      volume.save();
      assertNotNull(volume.getId());

      return volume;
   }
View Full Code Here

TOP

Related Classes of org.jclouds.abiquo.domain.cloud.Volume

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.