org.dasein.cloud.aws.network
Class ElasticLoadBalancer

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

public class ElasticLoadBalancer
extends Object
implements org.dasein.cloud.network.LoadBalancerSupport


Field Summary
 
Fields inherited from interface org.dasein.cloud.network.LoadBalancerSupport
ADD_DATA_CENTERS, ADD_VMS, ANY, CREATE_LOAD_BALANCER, GET_LOAD_BALANCER, 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)
           
 org.dasein.cloud.network.LoadBalancerAddressType getAddressType()
           
 org.dasein.cloud.network.LoadBalancer getLoadBalancer(String loadBalancerId)
           
 int getMaxPublicPorts()
           
 String getProviderTermForLoadBalancer(Locale locale)
           
 boolean isAddressAssignedByProvider()
           
 boolean isDataCenterLimited()
           
 boolean isSubscribed()
           
 Iterable<org.dasein.cloud.network.LoadBalancer> listLoadBalancers()
           
 Iterable<org.dasein.cloud.network.LbAlgorithm> listSupportedAlgorithms()
           
 Iterable<org.dasein.cloud.network.LbProtocol> listSupportedProtocols()
           
 String[] mapServiceAction(org.dasein.cloud.identity.ServiceAction action)
           
 void remove(String loadBalancerId)
           
 void removeDataCenters(String toLoadBalancerId, String... availabilityZoneIds)
           
 void removeServers(String toLoadBalancerId, String... instanceIds)
           
 boolean requiresListenerOnCreate()
           
 boolean requiresServerOnCreate()
           
 boolean supportsMonitoring()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

addDataCenters

public void addDataCenters(String toLoadBalancerId,
                           String... availabilityZoneIds)
                    throws org.dasein.cloud.CloudException,
                           org.dasein.cloud.InternalException
Specified by:
addDataCenters in interface org.dasein.cloud.network.LoadBalancerSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

addServers

public void addServers(String toLoadBalancerId,
                       String... instanceIds)
                throws org.dasein.cloud.CloudException,
                       org.dasein.cloud.InternalException
Specified by:
addServers in interface org.dasein.cloud.network.LoadBalancerSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

create

public String create(String name,
                     String description,
                     String addressId,
                     String[] zoneIds,
                     org.dasein.cloud.network.LbListener[] listeners,
                     String[] serverIds)
              throws org.dasein.cloud.CloudException,
                     org.dasein.cloud.InternalException
Specified by:
create in interface org.dasein.cloud.network.LoadBalancerSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

getAddressType

public org.dasein.cloud.network.LoadBalancerAddressType getAddressType()
Specified by:
getAddressType in interface org.dasein.cloud.network.LoadBalancerSupport

getMaxPublicPorts

public int getMaxPublicPorts()
Specified by:
getMaxPublicPorts in interface org.dasein.cloud.network.LoadBalancerSupport

getLoadBalancer

public org.dasein.cloud.network.LoadBalancer getLoadBalancer(String loadBalancerId)
                                                      throws org.dasein.cloud.CloudException,
                                                             org.dasein.cloud.InternalException
Specified by:
getLoadBalancer in interface org.dasein.cloud.network.LoadBalancerSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

listSupportedAlgorithms

public Iterable<org.dasein.cloud.network.LbAlgorithm> listSupportedAlgorithms()
Specified by:
listSupportedAlgorithms in interface org.dasein.cloud.network.LoadBalancerSupport

listSupportedProtocols

public Iterable<org.dasein.cloud.network.LbProtocol> listSupportedProtocols()
Specified by:
listSupportedProtocols in interface org.dasein.cloud.network.LoadBalancerSupport

getProviderTermForLoadBalancer

public String getProviderTermForLoadBalancer(Locale locale)
Specified by:
getProviderTermForLoadBalancer in interface org.dasein.cloud.network.LoadBalancerSupport

isAddressAssignedByProvider

public boolean isAddressAssignedByProvider()
Specified by:
isAddressAssignedByProvider in interface org.dasein.cloud.network.LoadBalancerSupport

isDataCenterLimited

public boolean isDataCenterLimited()
Specified by:
isDataCenterLimited in interface org.dasein.cloud.network.LoadBalancerSupport

requiresListenerOnCreate

public boolean requiresListenerOnCreate()
Specified by:
requiresListenerOnCreate in interface org.dasein.cloud.network.LoadBalancerSupport

requiresServerOnCreate

public boolean requiresServerOnCreate()
Specified by:
requiresServerOnCreate in interface org.dasein.cloud.network.LoadBalancerSupport

isSubscribed

public boolean isSubscribed()
                     throws org.dasein.cloud.CloudException,
                            org.dasein.cloud.InternalException
Specified by:
isSubscribed in interface org.dasein.cloud.network.LoadBalancerSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

supportsMonitoring

public boolean supportsMonitoring()
Specified by:
supportsMonitoring in interface org.dasein.cloud.network.LoadBalancerSupport

listLoadBalancers

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

remove

public void remove(String loadBalancerId)
            throws org.dasein.cloud.CloudException,
                   org.dasein.cloud.InternalException
Specified by:
remove in interface org.dasein.cloud.network.LoadBalancerSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

removeDataCenters

public void removeDataCenters(String toLoadBalancerId,
                              String... availabilityZoneIds)
                       throws org.dasein.cloud.CloudException,
                              org.dasein.cloud.InternalException
Specified by:
removeDataCenters in interface org.dasein.cloud.network.LoadBalancerSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

removeServers

public void removeServers(String toLoadBalancerId,
                          String... instanceIds)
                   throws org.dasein.cloud.CloudException,
                          org.dasein.cloud.InternalException
Specified by:
removeServers in interface org.dasein.cloud.network.LoadBalancerSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException


Copyright © 2012 enStratus Networks LLC. All Rights Reserved.