Package org.jclouds.glesys.features

Examples of org.jclouds.glesys.features.ServerApi


      }, 30, 1, SECONDS);
      assertTrue(result.apply(before + 1));
   }

   protected Predicate<State> createServer(String hostName) {
      final ServerApi serverApi = api.getServerApi();

      ServerDetails testServer = serverApi.createWithHostnameAndRootPassword(
            ServerSpec.builder().datacenter("Falkenberg").platform("OpenVZ").templateName("Ubuntu 10.04 LTS 32-bit")
                  .diskSizeGB(5).memorySizeMB(512).cpuCores(1).transferGB(50).build(), hostName, UUID.randomUUID()
                  .toString().replace("-",""));

      assertNotNull(testServer.getId());
View Full Code Here


      }, 30, 1, SECONDS);
      assertTrue(result.apply(before + 1));
   }

   protected Predicate<State> createServer(String hostName) {
      final ServerApi serverApi = api.getServerApi();

      ServerDetails testServer = serverApi.createWithHostnameAndRootPassword(
            ServerSpec.builder().datacenter("Falkenberg").platform("OpenVZ").templateName("Ubuntu 10.04 LTS 32-bit")
                  .diskSizeGB(5).memorySizeMB(512).cpuCores(1).transferGB(50).build(), hostName, UUID.randomUUID()
                  .toString().replace("-",""));

      assertNotNull(testServer.getId());
View Full Code Here

      }, 30, 1, SECONDS);
      assertTrue(result.apply(before + 1));
   }

   protected Predicate<State> createServer(String hostName) {
      final ServerApi serverApi = api.getServerApi();

      ServerDetails testServer = serverApi.createWithHostnameAndRootPassword(
            ServerSpec.builder().datacenter("Falkenberg").platform("OpenVZ").templateName("Ubuntu 10.04 LTS 32-bit")
                  .diskSizeGB(5).memorySizeMB(512).cpuCores(1).transferGB(50).build(), hostName, UUID.randomUUID()
                  .toString().replace("-", ""));

      assertNotNull(testServer.getId());
View Full Code Here

TOP

Related Classes of org.jclouds.glesys.features.ServerApi

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.