Class BaseLoadBalancerService
java.lang.Object
org.jclouds.loadbalancer.internal.BaseLoadBalancerService
- All Implemented Interfaces:
LoadBalancerService
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final LoadBalancerServiceContextprotected final com.google.common.base.Supplier<Location> protected final DestroyLoadBalancerStrategyprotected final GetLoadBalancerMetadataStrategyprotected final ListLoadBalancersStrategyprotected final LoadBalanceNodesStrategyprotected Logger -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBaseLoadBalancerService(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) voidThe 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:
listAssignableLocationsin interfaceLoadBalancerService
-
getContext
- Specified by:
getContextin 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:
createLoadBalancerInLocationin 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:
getLoadBalancerMetadatain interfaceLoadBalancerService
-
destroyLoadBalancer
- Specified by:
destroyLoadBalancerin interfaceLoadBalancerService
-
listLoadBalancers
- Specified by:
listLoadBalancersin interfaceLoadBalancerService
-