Package org.jclouds.cloudstack.domain

Examples of org.jclouds.cloudstack.domain.LoadBalancerRule$Builder


         try {
            String jobId = client.getLoadBalancerClient().createLoadBalancerRuleForPublicIP(ip.getId(),
                  Algorithm.LEASTCONN, prefix, 22, 22);
            assertTrue(jobComplete.apply(jobId));
            AsyncJob<LoadBalancerRule> asyncJob = client.getAsyncJobClient().getAsyncJob(jobId);
            LoadBalancerRule result = asyncJob.getResult();
            rule = result;
         } catch (IllegalStateException e) {
            // very likely an ip conflict, so retry;
            attempts++;
         }
View Full Code Here


   public void testListLoadBalancerRules() throws Exception {
      Set<LoadBalancerRule> response = client.getLoadBalancerClient().listLoadBalancerRules();
      assert null != response;
      assertTrue(response.size() >= 0);
      for (LoadBalancerRule rule : response) {
         LoadBalancerRule newDetails = findRuleWithId(rule.getId());
         assertEquals(rule.getId(), newDetails.getId());
         checkRule(rule);
      }
   }
View Full Code Here

         try {
            String jobId = client.getLoadBalancerApi().createLoadBalancerRuleForPublicIP(ip.getId(),
                  Algorithm.LEASTCONN, prefix, 22, 22);
            assertTrue(jobComplete.apply(jobId));
            AsyncJob<LoadBalancerRule> asyncJob = client.getAsyncJobApi().getAsyncJob(jobId);
            LoadBalancerRule result = asyncJob.getResult();
            rule = result;
         } catch (IllegalStateException e) {
            // very likely an ip conflict, so retry;
            attempts++;
         }
View Full Code Here

   public void testListLoadBalancerRules() throws Exception {
      Set<LoadBalancerRule> response = client.getLoadBalancerApi().listLoadBalancerRules();
      assert null != response;
      assertTrue(response.size() >= 0);
      for (LoadBalancerRule rule : response) {
         LoadBalancerRule newDetails = findRuleWithId(rule.getId());
         assertEquals(rule.getId(), newDetails.getId());
         checkRule(rule);
      }
   }
View Full Code Here

         try {
            String jobId = client.getLoadBalancerClient().createLoadBalancerRuleForPublicIP(ip.getId(),
                  Algorithm.LEASTCONN, prefix, 22, 22);
            assertTrue(jobComplete.apply(jobId));
            AsyncJob<LoadBalancerRule> asyncJob = client.getAsyncJobClient().getAsyncJob(jobId);
            LoadBalancerRule result = asyncJob.getResult();
            rule = result;
         } catch (IllegalStateException e) {
            // very likely an ip conflict, so retry;
            attempts++;
         }
View Full Code Here

   public void testListLoadBalancerRules() throws Exception {
      Set<LoadBalancerRule> response = client.getLoadBalancerClient().listLoadBalancerRules();
      assert null != response;
      assertTrue(response.size() >= 0);
      for (LoadBalancerRule rule : response) {
         LoadBalancerRule newDetails = findRuleWithId(rule.getId());
         assertEquals(rule.getId(), newDetails.getId());
         checkRule(rule);
      }
   }
View Full Code Here

         try {
            String jobId = client.getLoadBalancerApi().createLoadBalancerRuleForPublicIP(ip.getId(),
                  Algorithm.LEASTCONN, prefix, 22, 22);
            assertTrue(jobComplete.apply(jobId));
            AsyncJob<LoadBalancerRule> asyncJob = client.getAsyncJobApi().getAsyncJob(jobId);
            LoadBalancerRule result = asyncJob.getResult();
            rule = result;
         } catch (IllegalStateException e) {
            // very likely an ip conflict, so retry;
            attempts++;
         }
View Full Code Here

   public void testListLoadBalancerRules() throws Exception {
      Set<LoadBalancerRule> response = client.getLoadBalancerApi().listLoadBalancerRules();
      assert null != response;
      assertTrue(response.size() >= 0);
      for (LoadBalancerRule rule : response) {
         LoadBalancerRule newDetails = findRuleWithId(rule.getId());
         assertEquals(rule.getId(), newDetails.getId());
         checkRule(rule);
      }
   }
View Full Code Here

TOP

Related Classes of org.jclouds.cloudstack.domain.LoadBalancerRule$Builder

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.