org.jclouds.loadbalancer.strategy
Interface LoadBalanceNodesStrategy

All Known Implementing Classes:
CloudLoadBalancersLoadBalanceNodesStrategy

public interface LoadBalanceNodesStrategy

Creates a load balancer for nodes listed

Author:
Lili Nader

Method Summary
 LoadBalancerMetadata createLoadBalancerInLocation(Location location, String name, String protocol, int loadBalancerPort, int instancePort, Iterable<? extends NodeMetadata> nodes)
           
 

Method Detail

createLoadBalancerInLocation

@Beta
LoadBalancerMetadata createLoadBalancerInLocation(Location location,
                                                       String name,
                                                       String protocol,
                                                       int loadBalancerPort,
                                                       int instancePort,
                                                       Iterable<? extends NodeMetadata> nodes)
Parameters:
location - null if default
loadBalancerName - Load balancer name
protocol - LoadBalancer transport protocol to use for routing - TCP or HTTP. This property cannot be modified for the life of the LoadBalancer.
loadBalancerPort - The external TCP port of the LoadBalancer. Valid LoadBalancer ports are - 80, 443 and 1024 through 65535. This property cannot be modified for the life of the LoadBalancer.
instancePort - The InstancePort data type is simple type of type: integer. It is the TCP port on which the server on the instance is listening. Valid instance ports are one (1) through 65535. This property cannot be modified for the life of the LoadBalancer.
nodes - nodes to loadbalance
Returns:
newly created loadbalancer
See Also:
ComputeService


Copyright © 2009-2011 jclouds. All Rights Reserved.