org.dasein.cloud.aws.network
Class ElasticLoadBalancer

java.lang.Object
  extended by org.dasein.cloud.network.AbstractLoadBalancerSupport<AWSCloud>
      extended by org.dasein.cloud.aws.network.ElasticLoadBalancer
All Implemented Interfaces:
org.dasein.cloud.AccessControlledService, org.dasein.cloud.network.LoadBalancerSupport

public class ElasticLoadBalancer
extends org.dasein.cloud.network.AbstractLoadBalancerSupport<AWSCloud>


Field Summary
 
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 addDataCenters(String toLoadBalancerId, String... availabilityZoneIds)
           
 void addServers(String toLoadBalancerId, String... instanceIds)
           
 String create(String name, String description, String addressId, String[] zoneIds, org.dasein.cloud.network.LbListener[] listeners, String[] serverIds)
          Deprecated. 
 String createLoadBalancer(org.dasein.cloud.network.LoadBalancerCreateOptions options)
           
 org.dasein.cloud.network.LoadBalancerAddressType getAddressType()
           
 org.dasein.cloud.network.LoadBalancer getLoadBalancer(String loadBalancerId)
           
 Iterable<org.dasein.cloud.network.LoadBalancerServer> getLoadBalancerServerHealth(String loadBalancerId)
          Deprecated. 
 Iterable<org.dasein.cloud.network.LoadBalancerServer> getLoadBalancerServerHealth(String loadBalancerId, String... serverIdsToCheck)
          Deprecated. 
 int getMaxPublicPorts()
           
 String getProviderTermForLoadBalancer(Locale locale)
           
 org.dasein.cloud.Requirement identifyEndpointsOnCreateRequirement()
           
 org.dasein.cloud.Requirement identifyListenersOnCreateRequirement()
           
 boolean isAddressAssignedByProvider()
           
 boolean isDataCenterLimited()
           
 boolean isSubscribed()
           
 Iterable<org.dasein.cloud.network.LoadBalancerEndpoint> listEndpoints(String loadBalancerId)
           
 Iterable<org.dasein.cloud.network.LoadBalancerEndpoint> listEndpoints(String loadBalancerId, org.dasein.cloud.network.LbEndpointType type, String... endpoints)
           
 Iterable<org.dasein.cloud.network.LoadBalancer> listLoadBalancers()
           
 Iterable<org.dasein.cloud.ResourceStatus> listLoadBalancerStatus()
           
 Iterable<org.dasein.cloud.network.LbAlgorithm> listSupportedAlgorithms()
           
 Iterable<org.dasein.cloud.network.LbEndpointType> listSupportedEndpointTypes()
           
 Iterable<org.dasein.cloud.network.IPVersion> listSupportedIPVersions()
           
 Iterable<org.dasein.cloud.network.LbPersistence> listSupportedPersistenceOptions()
           
 Iterable<org.dasein.cloud.network.LbProtocol> listSupportedProtocols()
           
 String[] mapServiceAction(org.dasein.cloud.identity.ServiceAction action)
           
 void remove(String loadBalancerId)
          Deprecated. 
 void removeDataCenters(String toLoadBalancerId, String... availabilityZoneIds)
           
 void removeLoadBalancer(String loadBalancerId)
           
 void removeServers(String toLoadBalancerId, String... instanceIds)
           
 boolean supportsAddingEndpoints()
           
 boolean supportsMonitoring()
           
 boolean supportsMultipleTrafficTypes()
           
 
Methods inherited from class org.dasein.cloud.network.AbstractLoadBalancerSupport
addIPEndpoints, getContext, getProvider, removeIPEndpoints, requiresListenerOnCreate, requiresServerOnCreate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

addDataCenters

public void addDataCenters(@Nonnull
                           String toLoadBalancerId,
                           @Nonnull
                           String... availabilityZoneIds)
                    throws org.dasein.cloud.CloudException,
                           org.dasein.cloud.InternalException
Specified by:
addDataCenters in interface org.dasein.cloud.network.LoadBalancerSupport
Overrides:
addDataCenters in class org.dasein.cloud.network.AbstractLoadBalancerSupport<AWSCloud>
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

addServers

public void addServers(@Nonnull
                       String toLoadBalancerId,
                       @Nonnull
                       String... instanceIds)
                throws org.dasein.cloud.CloudException,
                       org.dasein.cloud.InternalException
Specified by:
addServers in interface org.dasein.cloud.network.LoadBalancerSupport
Overrides:
addServers in class org.dasein.cloud.network.AbstractLoadBalancerSupport<AWSCloud>
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

createLoadBalancer

@Nonnull
public String createLoadBalancer(@Nonnull
                                         org.dasein.cloud.network.LoadBalancerCreateOptions options)
                          throws org.dasein.cloud.CloudException,
                                 org.dasein.cloud.InternalException
Specified by:
createLoadBalancer in interface org.dasein.cloud.network.LoadBalancerSupport
Overrides:
createLoadBalancer in class org.dasein.cloud.network.AbstractLoadBalancerSupport<AWSCloud>
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

create

@Deprecated
@Nonnull
public String create(@Nonnull
                                        String name,
                                        @Nonnull
                                        String description,
                                        @Nullable
                                        String addressId,
                                        @Nullable
                                        String[] zoneIds,
                                        @Nullable
                                        org.dasein.cloud.network.LbListener[] listeners,
                                        @Nullable
                                        String[] serverIds)
              throws org.dasein.cloud.CloudException,
                     org.dasein.cloud.InternalException
Deprecated. 

Specified by:
create in interface org.dasein.cloud.network.LoadBalancerSupport
Overrides:
create in class org.dasein.cloud.network.AbstractLoadBalancerSupport<AWSCloud>
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

getAddressType

@Nonnull
public org.dasein.cloud.network.LoadBalancerAddressType getAddressType()
Specified by:
getAddressType in interface org.dasein.cloud.network.LoadBalancerSupport
Overrides:
getAddressType in class org.dasein.cloud.network.AbstractLoadBalancerSupport<AWSCloud>

getMaxPublicPorts

public int getMaxPublicPorts()
Specified by:
getMaxPublicPorts in interface org.dasein.cloud.network.LoadBalancerSupport
Overrides:
getMaxPublicPorts in class org.dasein.cloud.network.AbstractLoadBalancerSupport<AWSCloud>

getLoadBalancer

@Nullable
public org.dasein.cloud.network.LoadBalancer getLoadBalancer(@Nonnull
                                                                      String loadBalancerId)
                                                      throws org.dasein.cloud.CloudException,
                                                             org.dasein.cloud.InternalException
Specified by:
getLoadBalancer in interface org.dasein.cloud.network.LoadBalancerSupport
Overrides:
getLoadBalancer in class org.dasein.cloud.network.AbstractLoadBalancerSupport<AWSCloud>
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

listSupportedAlgorithms

@Nonnull
public Iterable<org.dasein.cloud.network.LbAlgorithm> listSupportedAlgorithms()
Specified by:
listSupportedAlgorithms in interface org.dasein.cloud.network.LoadBalancerSupport
Overrides:
listSupportedAlgorithms in class org.dasein.cloud.network.AbstractLoadBalancerSupport<AWSCloud>

listSupportedEndpointTypes

@Nonnull
public Iterable<org.dasein.cloud.network.LbEndpointType> listSupportedEndpointTypes()
                                                                             throws org.dasein.cloud.CloudException,
                                                                                    org.dasein.cloud.InternalException
Specified by:
listSupportedEndpointTypes in interface org.dasein.cloud.network.LoadBalancerSupport
Overrides:
listSupportedEndpointTypes in class org.dasein.cloud.network.AbstractLoadBalancerSupport<AWSCloud>
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

listSupportedIPVersions

@Nonnull
public Iterable<org.dasein.cloud.network.IPVersion> listSupportedIPVersions()
                                                                     throws org.dasein.cloud.CloudException,
                                                                            org.dasein.cloud.InternalException
Specified by:
listSupportedIPVersions in interface org.dasein.cloud.network.LoadBalancerSupport
Overrides:
listSupportedIPVersions in class org.dasein.cloud.network.AbstractLoadBalancerSupport<AWSCloud>
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

listSupportedPersistenceOptions

@Nonnull
public Iterable<org.dasein.cloud.network.LbPersistence> listSupportedPersistenceOptions()
                                                                                 throws org.dasein.cloud.CloudException,
                                                                                        org.dasein.cloud.InternalException
Specified by:
listSupportedPersistenceOptions in interface org.dasein.cloud.network.LoadBalancerSupport
Overrides:
listSupportedPersistenceOptions in class org.dasein.cloud.network.AbstractLoadBalancerSupport<AWSCloud>
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

listSupportedProtocols

@Nonnull
public Iterable<org.dasein.cloud.network.LbProtocol> listSupportedProtocols()
Specified by:
listSupportedProtocols in interface org.dasein.cloud.network.LoadBalancerSupport
Overrides:
listSupportedProtocols in class org.dasein.cloud.network.AbstractLoadBalancerSupport<AWSCloud>

getProviderTermForLoadBalancer

@Nonnull
public String getProviderTermForLoadBalancer(@Nonnull
                                                     Locale locale)

identifyEndpointsOnCreateRequirement

@Nonnull
public org.dasein.cloud.Requirement identifyEndpointsOnCreateRequirement()
                                                                  throws org.dasein.cloud.CloudException,
                                                                         org.dasein.cloud.InternalException
Specified by:
identifyEndpointsOnCreateRequirement in interface org.dasein.cloud.network.LoadBalancerSupport
Overrides:
identifyEndpointsOnCreateRequirement in class org.dasein.cloud.network.AbstractLoadBalancerSupport<AWSCloud>
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

identifyListenersOnCreateRequirement

@Nonnull
public org.dasein.cloud.Requirement identifyListenersOnCreateRequirement()
                                                                  throws org.dasein.cloud.CloudException,
                                                                         org.dasein.cloud.InternalException
Specified by:
identifyListenersOnCreateRequirement in interface org.dasein.cloud.network.LoadBalancerSupport
Overrides:
identifyListenersOnCreateRequirement in class org.dasein.cloud.network.AbstractLoadBalancerSupport<AWSCloud>
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

isAddressAssignedByProvider

public boolean isAddressAssignedByProvider()
Specified by:
isAddressAssignedByProvider in interface org.dasein.cloud.network.LoadBalancerSupport
Overrides:
isAddressAssignedByProvider in class org.dasein.cloud.network.AbstractLoadBalancerSupport<AWSCloud>

isDataCenterLimited

public boolean isDataCenterLimited()
Specified by:
isDataCenterLimited in interface org.dasein.cloud.network.LoadBalancerSupport
Overrides:
isDataCenterLimited in class org.dasein.cloud.network.AbstractLoadBalancerSupport<AWSCloud>

isSubscribed

public boolean isSubscribed()
                     throws org.dasein.cloud.CloudException,
                            org.dasein.cloud.InternalException
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

listEndpoints

@Nonnull
public Iterable<org.dasein.cloud.network.LoadBalancerEndpoint> listEndpoints(@Nonnull
                                                                                     String loadBalancerId)
                                                                      throws org.dasein.cloud.CloudException,
                                                                             org.dasein.cloud.InternalException
Specified by:
listEndpoints in interface org.dasein.cloud.network.LoadBalancerSupport
Overrides:
listEndpoints in class org.dasein.cloud.network.AbstractLoadBalancerSupport<AWSCloud>
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

listEndpoints

@Nonnull
public Iterable<org.dasein.cloud.network.LoadBalancerEndpoint> listEndpoints(@Nonnull
                                                                                     String loadBalancerId,
                                                                                     @Nonnull
                                                                                     org.dasein.cloud.network.LbEndpointType type,
                                                                                     @Nonnull
                                                                                     String... endpoints)
                                                                      throws org.dasein.cloud.CloudException,
                                                                             org.dasein.cloud.InternalException
Specified by:
listEndpoints in interface org.dasein.cloud.network.LoadBalancerSupport
Overrides:
listEndpoints in class org.dasein.cloud.network.AbstractLoadBalancerSupport<AWSCloud>
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

supportsMonitoring

public boolean supportsMonitoring()
Specified by:
supportsMonitoring in interface org.dasein.cloud.network.LoadBalancerSupport
Overrides:
supportsMonitoring in class org.dasein.cloud.network.AbstractLoadBalancerSupport<AWSCloud>

supportsMultipleTrafficTypes

public boolean supportsMultipleTrafficTypes()
                                     throws org.dasein.cloud.CloudException,
                                            org.dasein.cloud.InternalException
Specified by:
supportsMultipleTrafficTypes in interface org.dasein.cloud.network.LoadBalancerSupport
Overrides:
supportsMultipleTrafficTypes in class org.dasein.cloud.network.AbstractLoadBalancerSupport<AWSCloud>
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

listLoadBalancerStatus

@Nonnull
public Iterable<org.dasein.cloud.ResourceStatus> listLoadBalancerStatus()
                                                                 throws org.dasein.cloud.CloudException,
                                                                        org.dasein.cloud.InternalException
Specified by:
listLoadBalancerStatus in interface org.dasein.cloud.network.LoadBalancerSupport
Overrides:
listLoadBalancerStatus in class org.dasein.cloud.network.AbstractLoadBalancerSupport<AWSCloud>
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

listLoadBalancers

@Nonnull
public Iterable<org.dasein.cloud.network.LoadBalancer> listLoadBalancers()
                                                                  throws org.dasein.cloud.CloudException,
                                                                         org.dasein.cloud.InternalException
Specified by:
listLoadBalancers in interface org.dasein.cloud.network.LoadBalancerSupport
Overrides:
listLoadBalancers in class org.dasein.cloud.network.AbstractLoadBalancerSupport<AWSCloud>
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

getLoadBalancerServerHealth

@Deprecated
@Nonnull
public Iterable<org.dasein.cloud.network.LoadBalancerServer> getLoadBalancerServerHealth(@Nonnull
                                                                                                            String loadBalancerId)
                                                                                  throws org.dasein.cloud.CloudException,
                                                                                         org.dasein.cloud.InternalException
Deprecated. 

Specified by:
getLoadBalancerServerHealth in interface org.dasein.cloud.network.LoadBalancerSupport
Overrides:
getLoadBalancerServerHealth in class org.dasein.cloud.network.AbstractLoadBalancerSupport<AWSCloud>
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

getLoadBalancerServerHealth

@Deprecated
@Nonnull
public Iterable<org.dasein.cloud.network.LoadBalancerServer> getLoadBalancerServerHealth(@Nonnull
                                                                                                            String loadBalancerId,
                                                                                                            @Nonnull
                                                                                                            String... serverIdsToCheck)
                                                                                  throws org.dasein.cloud.CloudException,
                                                                                         org.dasein.cloud.InternalException
Deprecated. 

Specified by:
getLoadBalancerServerHealth in interface org.dasein.cloud.network.LoadBalancerSupport
Overrides:
getLoadBalancerServerHealth in class org.dasein.cloud.network.AbstractLoadBalancerSupport<AWSCloud>
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

mapServiceAction

@Nonnull
public String[] mapServiceAction(@Nonnull
                                         org.dasein.cloud.identity.ServiceAction action)
Specified by:
mapServiceAction in interface org.dasein.cloud.AccessControlledService
Overrides:
mapServiceAction in class org.dasein.cloud.network.AbstractLoadBalancerSupport<AWSCloud>

remove

@Deprecated
public void remove(@Nonnull
                              String loadBalancerId)
            throws org.dasein.cloud.CloudException,
                   org.dasein.cloud.InternalException
Deprecated. 

Specified by:
remove in interface org.dasein.cloud.network.LoadBalancerSupport
Overrides:
remove in class org.dasein.cloud.network.AbstractLoadBalancerSupport<AWSCloud>
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

removeLoadBalancer

public void removeLoadBalancer(@Nonnull
                               String loadBalancerId)
                        throws org.dasein.cloud.CloudException,
                               org.dasein.cloud.InternalException
Specified by:
removeLoadBalancer in interface org.dasein.cloud.network.LoadBalancerSupport
Overrides:
removeLoadBalancer in class org.dasein.cloud.network.AbstractLoadBalancerSupport<AWSCloud>
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

removeDataCenters

public void removeDataCenters(@Nonnull
                              String toLoadBalancerId,
                              @Nonnull
                              String... availabilityZoneIds)
                       throws org.dasein.cloud.CloudException,
                              org.dasein.cloud.InternalException
Specified by:
removeDataCenters in interface org.dasein.cloud.network.LoadBalancerSupport
Overrides:
removeDataCenters in class org.dasein.cloud.network.AbstractLoadBalancerSupport<AWSCloud>
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

removeServers

public void removeServers(@Nonnull
                          String toLoadBalancerId,
                          @Nonnull
                          String... instanceIds)
                   throws org.dasein.cloud.CloudException,
                          org.dasein.cloud.InternalException
Specified by:
removeServers in interface org.dasein.cloud.network.LoadBalancerSupport
Overrides:
removeServers in class org.dasein.cloud.network.AbstractLoadBalancerSupport<AWSCloud>
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

supportsAddingEndpoints

public boolean supportsAddingEndpoints()
                                throws org.dasein.cloud.CloudException,
                                       org.dasein.cloud.InternalException
Specified by:
supportsAddingEndpoints in interface org.dasein.cloud.network.LoadBalancerSupport
Overrides:
supportsAddingEndpoints in class org.dasein.cloud.network.AbstractLoadBalancerSupport<AWSCloud>
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException


Copyright © 2009-2014 Dell, Inc.. All Rights Reserved.