org.dasein.cloud.cloudstack.network
Class LoadBalancers
java.lang.Object
org.dasein.cloud.network.AbstractLoadBalancerSupport<CSCloud>
org.dasein.cloud.cloudstack.network.LoadBalancers
- All Implemented Interfaces:
- AccessControlledService, LoadBalancerSupport
public class LoadBalancers
- extends AbstractLoadBalancerSupport<CSCloud>
| Methods inherited from class org.dasein.cloud.network.AbstractLoadBalancerSupport |
addDataCenters, addIPEndpoints, getContext, getLoadBalancerServerHealth, getLoadBalancerServerHealth, getProvider, listEndpoints, removeDataCenters, removeIPEndpoints, requiresListenerOnCreate, requiresServerOnCreate |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ASSIGN_TO_LOAD_BALANCER_RULE
public static final String ASSIGN_TO_LOAD_BALANCER_RULE
- See Also:
- Constant Field Values
CREATE_LOAD_BALANCER_RULE
public static final String CREATE_LOAD_BALANCER_RULE
- See Also:
- Constant Field Values
DELETE_LOAD_BALANCER_RULE
public static final String DELETE_LOAD_BALANCER_RULE
- See Also:
- Constant Field Values
LIST_LOAD_BALANCER_RULES
public static final String LIST_LOAD_BALANCER_RULES
- See Also:
- Constant Field Values
LIST_LOAD_BALANCER_RULE_INSTANCES
public static final String LIST_LOAD_BALANCER_RULE_INSTANCES
- See Also:
- Constant Field Values
REMOVE_FROM_LOAD_BALANCER_RULE
public static final String REMOVE_FROM_LOAD_BALANCER_RULE
- See Also:
- Constant Field Values
addServers
public void addServers(@Nonnull
String toLoadBalancerId,
@Nonnull
String... serverIds)
throws CloudException,
InternalException
- Specified by:
addServers in interface LoadBalancerSupport- Overrides:
addServers in class AbstractLoadBalancerSupport<CSCloud>
- Throws:
CloudException
InternalException
createLoadBalancer
@Nonnull
public String createLoadBalancer(@Nonnull
LoadBalancerCreateOptions options)
throws CloudException,
InternalException
- Specified by:
createLoadBalancer in interface LoadBalancerSupport- Overrides:
createLoadBalancer in class AbstractLoadBalancerSupport<CSCloud>
- Throws:
CloudException
InternalException
create
@Deprecated
@Nonnull
public String create(@Nonnull
String name,
@Nonnull
String description,
@Nullable
String addressId,
@Nullable
String[] zoneIds,
@Nullable
LbListener[] listeners,
@Nullable
String[] serverIds)
throws CloudException,
InternalException
- Deprecated.
- Specified by:
create in interface LoadBalancerSupport- Overrides:
create in class AbstractLoadBalancerSupport<CSCloud>
- Throws:
CloudException
InternalException
getAddressType
@Nonnull
public LoadBalancerAddressType getAddressType()
throws CloudException,
InternalException
- Specified by:
getAddressType in interface LoadBalancerSupport- Overrides:
getAddressType in class AbstractLoadBalancerSupport<CSCloud>
- Throws:
CloudException
InternalException
getLoadBalancer
@Nullable
public LoadBalancer getLoadBalancer(@Nonnull
String loadBalancerId)
throws CloudException,
InternalException
- Specified by:
getLoadBalancer in interface LoadBalancerSupport- Overrides:
getLoadBalancer in class AbstractLoadBalancerSupport<CSCloud>
- Throws:
CloudException
InternalException
getMaxPublicPorts
public int getMaxPublicPorts()
throws CloudException,
InternalException
- Specified by:
getMaxPublicPorts in interface LoadBalancerSupport- Overrides:
getMaxPublicPorts in class AbstractLoadBalancerSupport<CSCloud>
- Throws:
CloudException
InternalException
getProviderTermForLoadBalancer
@Nonnull
public String getProviderTermForLoadBalancer(@Nonnull
Locale locale)
identifyEndpointsOnCreateRequirement
@Nonnull
public Requirement identifyEndpointsOnCreateRequirement()
throws CloudException,
InternalException
- Specified by:
identifyEndpointsOnCreateRequirement in interface LoadBalancerSupport- Overrides:
identifyEndpointsOnCreateRequirement in class AbstractLoadBalancerSupport<CSCloud>
- Throws:
CloudException
InternalException
identifyListenersOnCreateRequirement
@Nonnull
public Requirement identifyListenersOnCreateRequirement()
throws CloudException,
InternalException
- Specified by:
identifyListenersOnCreateRequirement in interface LoadBalancerSupport- Overrides:
identifyListenersOnCreateRequirement in class AbstractLoadBalancerSupport<CSCloud>
- Throws:
CloudException
InternalException
listLoadBalancerStatus
@Nonnull
public Iterable<ResourceStatus> listLoadBalancerStatus()
throws CloudException,
InternalException
- Specified by:
listLoadBalancerStatus in interface LoadBalancerSupport- Overrides:
listLoadBalancerStatus in class AbstractLoadBalancerSupport<CSCloud>
- Throws:
CloudException
InternalException
listSupportedAlgorithms
@Nonnull
public Iterable<LbAlgorithm> listSupportedAlgorithms()
- Specified by:
listSupportedAlgorithms in interface LoadBalancerSupport- Overrides:
listSupportedAlgorithms in class AbstractLoadBalancerSupport<CSCloud>
listSupportedEndpointTypes
@Nonnull
public Iterable<LbEndpointType> listSupportedEndpointTypes()
throws CloudException,
InternalException
- Specified by:
listSupportedEndpointTypes in interface LoadBalancerSupport- Overrides:
listSupportedEndpointTypes in class AbstractLoadBalancerSupport<CSCloud>
- Throws:
CloudException
InternalException
listSupportedIPVersions
@Nonnull
public Iterable<IPVersion> listSupportedIPVersions()
throws CloudException,
InternalException
- Specified by:
listSupportedIPVersions in interface LoadBalancerSupport- Overrides:
listSupportedIPVersions in class AbstractLoadBalancerSupport<CSCloud>
- Throws:
CloudException
InternalException
listSupportedPersistenceOptions
@Nonnull
public Iterable<LbPersistence> listSupportedPersistenceOptions()
throws CloudException,
InternalException
- Specified by:
listSupportedPersistenceOptions in interface LoadBalancerSupport- Overrides:
listSupportedPersistenceOptions in class AbstractLoadBalancerSupport<CSCloud>
- Throws:
CloudException
InternalException
listSupportedProtocols
@Nonnull
public Iterable<LbProtocol> listSupportedProtocols()
- Specified by:
listSupportedProtocols in interface LoadBalancerSupport- Overrides:
listSupportedProtocols in class AbstractLoadBalancerSupport<CSCloud>
isAddressAssignedByProvider
public boolean isAddressAssignedByProvider()
throws CloudException,
InternalException
- Specified by:
isAddressAssignedByProvider in interface LoadBalancerSupport- Overrides:
isAddressAssignedByProvider in class AbstractLoadBalancerSupport<CSCloud>
- Throws:
CloudException
InternalException
isDataCenterLimited
public boolean isDataCenterLimited()
- Specified by:
isDataCenterLimited in interface LoadBalancerSupport- Overrides:
isDataCenterLimited in class AbstractLoadBalancerSupport<CSCloud>
mapServiceAction
@Nonnull
public String[] mapServiceAction(@Nonnull
ServiceAction action)
- Specified by:
mapServiceAction in interface AccessControlledService- Overrides:
mapServiceAction in class AbstractLoadBalancerSupport<CSCloud>
isSubscribed
public boolean isSubscribed()
throws CloudException,
InternalException
- Throws:
CloudException
InternalException
listEndpoints
@Nonnull
public Iterable<LoadBalancerEndpoint> listEndpoints(@Nonnull
String loadBalancerId)
throws CloudException,
InternalException
- Specified by:
listEndpoints in interface LoadBalancerSupport- Overrides:
listEndpoints in class AbstractLoadBalancerSupport<CSCloud>
- Throws:
CloudException
InternalException
supportsMonitoring
public boolean supportsMonitoring()
- Specified by:
supportsMonitoring in interface LoadBalancerSupport- Overrides:
supportsMonitoring in class AbstractLoadBalancerSupport<CSCloud>
supportsMultipleTrafficTypes
public boolean supportsMultipleTrafficTypes()
throws CloudException,
InternalException
- Specified by:
supportsMultipleTrafficTypes in interface LoadBalancerSupport- Overrides:
supportsMultipleTrafficTypes in class AbstractLoadBalancerSupport<CSCloud>
- Throws:
CloudException
InternalException
listLoadBalancers
@Nonnull
public Iterable<LoadBalancer> listLoadBalancers()
throws CloudException,
InternalException
- Specified by:
listLoadBalancers in interface LoadBalancerSupport- Overrides:
listLoadBalancers in class AbstractLoadBalancerSupport<CSCloud>
- Throws:
CloudException
InternalException
remove
@Deprecated
public void remove(@Nonnull
String loadBalancerId)
throws CloudException,
InternalException
- Deprecated.
- Specified by:
remove in interface LoadBalancerSupport- Overrides:
remove in class AbstractLoadBalancerSupport<CSCloud>
- Throws:
CloudException
InternalException
removeLoadBalancer
public void removeLoadBalancer(@Nonnull
String loadBalancerId)
throws CloudException,
InternalException
- Specified by:
removeLoadBalancer in interface LoadBalancerSupport- Overrides:
removeLoadBalancer in class AbstractLoadBalancerSupport<CSCloud>
- Throws:
CloudException
InternalException
removeServers
public void removeServers(@Nonnull
String toLoadBalancerId,
@Nonnull
String... serverIds)
throws CloudException,
InternalException
- Specified by:
removeServers in interface LoadBalancerSupport- Overrides:
removeServers in class AbstractLoadBalancerSupport<CSCloud>
- Throws:
CloudException
InternalException
supportsAddingEndpoints
public boolean supportsAddingEndpoints()
throws CloudException,
InternalException
- Specified by:
supportsAddingEndpoints in interface LoadBalancerSupport- Overrides:
supportsAddingEndpoints in class AbstractLoadBalancerSupport<CSCloud>
- Throws:
CloudException
InternalException
Copyright © 2013 enstratius, Inc.. All Rights Reserved.