Class BaseLoadBalancerService
java.lang.Object
org.jclouds.loadbalancer.internal.BaseLoadBalancerService
- All Implemented Interfaces:
LoadBalancerService
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final LoadBalancerServiceContext
protected final com.google.common.base.Supplier
<Location> protected final DestroyLoadBalancerStrategy
protected final GetLoadBalancerMetadataStrategy
protected final ListLoadBalancersStrategy
protected final LoadBalanceNodesStrategy
protected Logger
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
BaseLoadBalancerService
(com.google.common.base.Supplier<Location> defaultLocationSupplier, LoadBalancerServiceContext context, LoadBalanceNodesStrategy loadBalancerStrategy, GetLoadBalancerMetadataStrategy getLoadBalancerMetadataStrategy, DestroyLoadBalancerStrategy destroyLoadBalancerStrategy, ListLoadBalancersStrategy listLoadBalancersStrategy, com.google.common.base.Supplier<Set<? extends Location>> locations) -
Method Summary
Modifier and TypeMethodDescriptioncreateLoadBalancerInLocation
(Location location, String loadBalancerName, String protocol, int loadBalancerPort, int instancePort, Iterable<? extends NodeMetadata> nodes) void
The list locations command returns all the valid locations for load balancers.Set
<? extends LoadBalancerMetadata>
-
Field Details
-
logger
-
defaultLocationSupplier
-
context
-
loadBalancerStrategy
-
getLoadBalancerMetadataStrategy
-
destroyLoadBalancerStrategy
-
listLoadBalancersStrategy
-
locations
-
-
Constructor Details
-
BaseLoadBalancerService
@Inject protected BaseLoadBalancerService(com.google.common.base.Supplier<Location> defaultLocationSupplier, LoadBalancerServiceContext context, LoadBalanceNodesStrategy loadBalancerStrategy, GetLoadBalancerMetadataStrategy getLoadBalancerMetadataStrategy, DestroyLoadBalancerStrategy destroyLoadBalancerStrategy, ListLoadBalancersStrategy listLoadBalancersStrategy, com.google.common.base.Supplier<Set<? extends Location>> locations)
-
-
Method Details
-
listAssignableLocations
The list locations command returns all the valid locations for load balancers. A location has a scope, which is typically region or zone. A region is a general area, like eu-west, where a zone is similar to a datacenter. If a location has a parent, that implies it is within that location. For example a location can be a rack, whose parent is likely to be a zone.- Specified by:
listAssignableLocations
in interfaceLoadBalancerService
-
getContext
- Specified by:
getContext
in interfaceLoadBalancerService
- Returns:
- a reference to the context that created this LoadBalancerService.
-
createLoadBalancerInLocation
public LoadBalancerMetadata createLoadBalancerInLocation(@Nullable Location location, String loadBalancerName, String protocol, int loadBalancerPort, int instancePort, Iterable<? extends NodeMetadata> nodes) - Specified by:
createLoadBalancerInLocation
in interfaceLoadBalancerService
- Parameters:
location
- null if defaultloadBalancerName
- Load balancer nameprotocol
- 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- See Also:
-
getLoadBalancerMetadata
- Specified by:
getLoadBalancerMetadata
in interfaceLoadBalancerService
-
destroyLoadBalancer
- Specified by:
destroyLoadBalancer
in interfaceLoadBalancerService
-
listLoadBalancers
- Specified by:
listLoadBalancers
in interfaceLoadBalancerService
-