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);
}
}
}
Aggregations