jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ignasi Barrera <notificati...@github.com>
Subject Re: [jclouds-labs] JClouds Profitbricks provider - LoadBalancer API (#143)
Date Mon, 09 Mar 2015 17:14:59 GMT
> +   public void testCreateLoadBalancer() {
> +      List<String> serverIds = com.google.common.collect.Lists.newArrayList();
> +      serverIds.add("server-ids");
> +
> +      LoadBalancer.Request.CreatePayload payload = LoadBalancer.Request.creatingBuilder()
> +              .dataCenterId(dataCenterId)
> +              .loadBalancerName("testName")
> +              .loadBalancerAlgorithm(LoadbalancerAlgorithm.ROUND_ROBIN)
> +              .ip("0.0.0.1")
> +              .lanId("1")
> +              .serverIds(serverIds)
> +              .build();
> +
> +      LoadBalancer loadBalancer = api.loadBalancerApi().createLoadBalancer(payload);
> +
> +      System.out.println(loadBalancer);

Remove this

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/143/files#r26055074
Mime
View raw message