Search in sources :

Example 1 with LoadBalancerApi

use of org.jclouds.rackspace.cloudloadbalancers.v1.features.LoadBalancerApi in project legacy-jclouds-examples by jclouds.

the class ListLoadBalancers method listLoadBalancers.

private void listLoadBalancers() {
    System.out.println("List Load Balancers");
    for (String zone : clb.getConfiguredZones()) {
        System.out.println("  " + zone);
        LoadBalancerApi lbApi = clb.getLoadBalancerApiForZone(zone);
        for (LoadBalancer loadBalancer : lbApi.list().concat()) {
            System.out.println("    " + loadBalancer);
        }
    }
}
Also used : LoadBalancer(org.jclouds.rackspace.cloudloadbalancers.v1.domain.LoadBalancer) LoadBalancerApi(org.jclouds.rackspace.cloudloadbalancers.v1.features.LoadBalancerApi)

Aggregations

LoadBalancer (org.jclouds.rackspace.cloudloadbalancers.v1.domain.LoadBalancer)1 LoadBalancerApi (org.jclouds.rackspace.cloudloadbalancers.v1.features.LoadBalancerApi)1