Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.jclouds.elb;
 
 
Utilities for using ELB.

Author(s):
Adrian Cole
public class ELB {

   
List loadBalancers based on the criteria in the org.jclouds.elb.options.ListLoadBalancersOptions passed in.

Parameters:
loadBalancerClient the org.jclouds.elb.features.LoadBalancerClient to use for the request
options the org.jclouds.elb.options.ListLoadBalancersOptions describing the ListLoadBalancers request
Returns:
iterable of loadBalancers fitting the criteria
   public static Iterable<LoadBalancerlistLoadBalancers(final LoadBalancerClient loadBalancerClientfinal ListLoadBalancersOptions options) {
      return PaginatedSets.lazyContinue(loadBalancerClient.list(options), new Function<StringPaginatedSet<LoadBalancer>>() {
         @Override
         public PaginatedSet<LoadBalancerapply(String input) {
            return loadBalancerClient.list(options.clone().marker(input));
         }
         @Override
         public String toString() {
            return "listLoadBalancers(" + options + ")";
         }
      });
   }
   
   public static Iterable<LoadBalancerlistLoadBalancers(LoadBalancerClient loadBalancerClient) {
      return listLoadBalancers(loadBalancerClientnew ListLoadBalancersOptions());
   }
   
New to GrepCode? Check out our FAQ X