Examples of DataCenter


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

         final VirtualApplianceCachingTemplate template) {
      AbiquoTemplateOptions options = template.getOptions().as(AbiquoTemplateOptions.class);
      Enterprise enterprise = adminService.getCurrentEnterprise();

      // Get the region where the template is available
      Datacenter datacenter = regionMap.get().get(Integer.valueOf(template.getImage().getLocation().getId()));

      // Load the template
      VirtualMachineTemplate virtualMachineTemplate = enterprise.getTemplateInRepository(datacenter,
            Integer.valueOf(template.getImage().getId()));
View Full Code Here

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

   }

   @SuppressWarnings("unchecked")
   private static VirtualDatacenter mockVirtualDatacenter() {
      ApiContext<AbiquoApi> context = EasyMock.createMock(ApiContext.class);
      Datacenter datacenter = EasyMock.createMock(Datacenter.class);
      Enterprise enterprise = EasyMock.createMock(Enterprise.class);
      PrivateNetwork network = EasyMock.createMock(PrivateNetwork.class);

      VirtualDatacenter vdc = VirtualDatacenter.builder(context, datacenter, enterprise) //
            .network(network) //
View Full Code Here

Examples of org.jclouds.servermanager.Datacenter

         });
   }
  
   @Override
   public Iterable<Datacenter> listLocations() {
      return ImmutableSet.of(new Datacenter(1, "SFO"));
   }
View Full Code Here

Examples of org.jclouds.softlayer.domain.Datacenter

   @Test
   public void testDatacenterToLocation() {
      Address address = Address.builder().country("US").state("TX").description("This is Texas!").build();

      Datacenter datacenter = Datacenter.builder().id(1).longName("Texas Datacenter").locationAddress(address).build();

      Location location = function.apply(datacenter);

      assertEquals(location.getId(), Long.toString(datacenter.getId()));
      Set<String> iso3166Codes = location.getIso3166Codes();
      assertEquals(iso3166Codes.size(), 1);
      assertTrue(iso3166Codes.contains("US-TX"));
   }
View Full Code Here

Examples of org.jclouds.softlayer.domain.internal.Datacenter

                           .maxMemory(maxMemory)
                           .hourlyBillingFlag(hourlyBillingFlag)
                           .localDiskFlag(localDisk)
                           .dedicatedAccountHostOnlyFlag(virtualGuest.isDedicatedAccountHostOnly())
                           .privateNetworkOnlyFlag(virtualGuest.isPrivateNetworkOnly())
                           .datacenter(new Datacenter(datacenterName))
                           .networkComponents(networkComponents);

      if (virtualGuest.getOperatingSystem() != null) {
         String operatingSystemReferenceCode = checkNotNull(virtualGuest.getOperatingSystem()
                 .getOperatingSystemReferenceCode(), "operatingSystemReferenceCode");
View Full Code Here

Examples of org.jclouds.trmk.vcloud_0_8.domain.DataCenter

public class DataCenterHandlerTest extends BaseHandlerTest {

   public void test() {
      InputStream is = getClass().getResourceAsStream("/datacenter.xml");

      DataCenter result = factory.create(injector.getInstance(DataCenterHandler.class)).parse(is);

      DataCenter expects = DataCenter.builder().id("1").name("Terremark - Miami").code("MIA").build();
      assertEquals(result.toString(), expects.toString());
   }
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.