Package org.jclouds.abiquo.domain.infrastructure

Examples of org.jclouds.abiquo.domain.infrastructure.Tier


*/
@Test(groups = "api", testName = "VolumeLiveApiTest")
public class VolumeLiveApiTest extends BaseAbiquoApiLiveApiTest {
   public void testCreateVolume() {
      // We need the vdc-relative tier
      Tier tier = find(env.virtualDatacenter.listStorageTiers(), new Predicate<Tier>() {
         @Override
         public boolean apply(Tier input) {
            return input.getName().equals(env.tier.getName());
         }
      });
View Full Code Here


      EventOptions options = EventOptions.builder().dateFrom(new Date()).storageSystemName(name).build();
      assertEvents(options);
   }

   public void testListEventsFilteredByStoragePool() {
      Tier tier = find(env.datacenter.listTiers(), new Predicate<Tier>() {
         @Override
         public boolean apply(Tier input) {
            return input.getName().equals("Default Tier 2");
         }
      });
View Full Code Here

      Iterable<Event> events = env.eventService.listEvents(options);
      assertTrue(Iterables.size(events) >= 1);
   }

   private Volume createVolume() {
      Tier tier = find(env.virtualDatacenter.listStorageTiers(), new Predicate<Tier>() {
         @Override
         public boolean apply(Tier input) {
            return input.getName().equals(env.tier.getName());
         }
      });
View Full Code Here

      deleteHardDisk(hardDisk);
   }

   private Volume createVolume() {
      Tier tier = find(env.virtualDatacenter.listStorageTiers(), new Predicate<Tier>() {
         @Override
         public boolean apply(Tier input) {
            return input.getName().equals(env.tier.getName());
         }
      });
View Full Code Here

*/
@Test(groups = "api", testName = "VolumeLiveApiTest")
public class VolumeLiveApiTest extends BaseAbiquoApiLiveApiTest {
   public void testCreateVolume() {
      // We need the vdc-relative tier
      Tier tier = find(env.virtualDatacenter.listStorageTiers(), new Predicate<Tier>() {
         @Override
         public boolean apply(Tier input) {
            return input.getName().equals(env.tier.getName());
         }
      });
View Full Code Here

      deleteHardDisk(hardDisk);
   }

   private Volume createVolume() {
      Tier tier = find(env.virtualDatacenter.listStorageTiers(), new Predicate<Tier>() {
         @Override
         public boolean apply(Tier input) {
            return input.getName().equals(env.tier.getName());
         }
      });
View Full Code Here

      EventOptions options = EventOptions.builder().dateFrom(new Date()).storageSystemName(name).build();
      assertEvents(options);
   }

   public void testListEventsFilteredByStoragePool() {
      Tier tier = find(env.datacenter.listTiers(), new Predicate<Tier>() {
         @Override
         public boolean apply(Tier input) {
            return input.getName().equals("Default Tier 2");
         }
      });
View Full Code Here

      Iterable<Event> events = env.eventService.listEvents(options);
      assertTrue(Iterables.size(events) >= 1);
   }

   private Volume createVolume() {
      Tier tier = find(env.virtualDatacenter.listStorageTiers(), new Predicate<Tier>() {
         @Override
         public boolean apply(Tier input) {
            return input.getName().equals(env.tier.getName());
         }
      });
View Full Code Here

      EventOptions options = EventOptions.builder().dateFrom(new Date()).storageSystemName(name).build();
      assertEvents(options);
   }

   public void testListEventsFilteredByStoragePool() {
      Tier tier = env.datacenter.findTier(TierPredicates.name("Default Tier 2"));
      assertNotNull(tier);

      try {
         env.storagePool.setTier(tier);
         env.storagePool.update();
View Full Code Here

      Iterable<Event> events = env.eventService.listEvents(options);
      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());
View Full Code Here

TOP

Related Classes of org.jclouds.abiquo.domain.infrastructure.Tier

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.