org.dasein.cloud.cloudstack.network
Class LoadBalancers

java.lang.Object
  extended by org.dasein.cloud.network.AbstractLoadBalancerSupport<CSCloud>
      extended by org.dasein.cloud.cloudstack.network.LoadBalancers
All Implemented Interfaces:
AccessControlledService, LoadBalancerSupport

public class LoadBalancers
extends AbstractLoadBalancerSupport<CSCloud>


Field Summary
static String ASSIGN_TO_LOAD_BALANCER_RULE
           
static String CREATE_LOAD_BALANCER_RULE
           
static String DELETE_LOAD_BALANCER_RULE
           
static String LIST_LOAD_BALANCER_RULE_INSTANCES
           
static String LIST_LOAD_BALANCER_RULES
           
static String REMOVE_FROM_LOAD_BALANCER_RULE
           
 
Fields inherited from interface org.dasein.cloud.network.LoadBalancerSupport
ADD_DATA_CENTERS, ADD_VMS, ANY, CREATE_LOAD_BALANCER, GET_LOAD_BALANCER, GET_LOAD_BALANCER_SERVER_HEALTH, LIST_LOAD_BALANCER, REMOVE_DATA_CENTERS, REMOVE_LOAD_BALANCER, REMOVE_VMS
 
Method Summary
 void addServers(String toLoadBalancerId, String... serverIds)
           
 String create(String name, String description, String addressId, String[] zoneIds, LbListener[] listeners, String[] serverIds)
          Deprecated. 
 String createLoadBalancer(LoadBalancerCreateOptions options)
           
 LoadBalancerAddressType getAddressType()
           
 LoadBalancer getLoadBalancer(String loadBalancerId)
           
 int getMaxPublicPorts()
           
 String getProviderTermForLoadBalancer(Locale locale)
           
 Requirement identifyEndpointsOnCreateRequirement()
           
 Requirement identifyListenersOnCreateRequirement()
           
 boolean isAddressAssignedByProvider()
           
 boolean isDataCenterLimited()
           
 boolean isSubscribed()
           
 Iterable<LoadBalancerEndpoint> listEndpoints(String loadBalancerId)
           
 Iterable<LoadBalancer> listLoadBalancers()
           
 Iterable<ResourceStatus> listLoadBalancerStatus()
           
 Iterable<LbAlgorithm> listSupportedAlgorithms()
           
 Iterable<LbEndpointType> listSupportedEndpointTypes()
           
 Iterable<IPVersion> listSupportedIPVersions()
           
 Iterable<LbPersistence> listSupportedPersistenceOptions()
           
 Iterable<LbProtocol> listSupportedProtocols()
           
 String[] mapServiceAction(ServiceAction action)
           
 void remove(String loadBalancerId)
          Deprecated. 
 void removeLoadBalancer(String loadBalancerId)
           
 void removeServers(String toLoadBalancerId, String... serverIds)
           
 boolean supportsAddingEndpoints()
           
 boolean supportsMonitoring()
           
 boolean supportsMultipleTrafficTypes()
           
 
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
 

Field Detail

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
Method Detail

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.