org.dasein.cloud.aws.compute
Class AutoScaling
java.lang.Object
org.dasein.cloud.aws.compute.AutoScaling
- All Implemented Interfaces:
- org.dasein.cloud.AccessControlledService, org.dasein.cloud.compute.AutoScalingSupport
public class AutoScaling
- extends Object
- implements org.dasein.cloud.compute.AutoScalingSupport
| Fields inherited from interface org.dasein.cloud.compute.AutoScalingSupport |
ANY, CREATE_LAUNCH_CONFIGURATION, CREATE_SCALING_GROUP, GET_LAUNCH_CONFIGURATION, GET_SCALING_GROUP, LIST_LAUNCH_CONFIGURATION, LIST_SCALING_GROUP, REMOVE_LAUNCH_CONFIGURATION, REMOVE_SCALING_GROUP, SET_CAPACITY, SET_SCALING_TRIGGER, UPDATE_SCALING_GROUP |
|
Method Summary |
String |
createAutoScalingGroup(String name,
String launchConfigurationId,
int minServers,
int maxServers,
int cooldown,
String... zoneIds)
|
String |
createLaunchConfiguration(String name,
String imageId,
org.dasein.cloud.compute.VirtualMachineProduct size,
String... firewalls)
|
void |
deleteAutoScalingGroup(String providerAutoScalingGroupId)
|
void |
deleteLaunchConfiguration(String providerLaunchConfigurationId)
|
org.dasein.cloud.compute.LaunchConfiguration |
getLaunchConfiguration(String providerLaunchConfigurationId)
|
org.dasein.cloud.compute.ScalingGroup |
getScalingGroup(String providerScalingGroupId)
|
boolean |
isSubscribed()
|
Collection<org.dasein.cloud.compute.LaunchConfiguration> |
listLaunchConfigurations()
|
Collection<org.dasein.cloud.compute.ScalingGroup> |
listScalingGroups()
|
String[] |
mapServiceAction(org.dasein.cloud.identity.ServiceAction action)
|
void |
setDesiredCapacity(String scalingGroupId,
int capacity)
|
String |
setTrigger(String name,
String scalingGroupId,
String statistic,
String unitOfMeasure,
String metric,
int periodInSeconds,
double lowerThreshold,
double upperThreshold,
int lowerIncrement,
boolean lowerIncrementAbsolute,
int upperIncrement,
boolean upperIncrementAbsolute,
int breachDuration)
|
void |
updateAutoScalingGroup(String scalingGroupId,
String launchConfigurationId,
int minServers,
int maxServers,
int cooldown,
String... zoneIds)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
createAutoScalingGroup
public String createAutoScalingGroup(String name,
String launchConfigurationId,
int minServers,
int maxServers,
int cooldown,
String... zoneIds)
throws org.dasein.cloud.InternalException,
org.dasein.cloud.CloudException
- Specified by:
createAutoScalingGroup in interface org.dasein.cloud.compute.AutoScalingSupport
- Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException
createLaunchConfiguration
public String createLaunchConfiguration(String name,
String imageId,
org.dasein.cloud.compute.VirtualMachineProduct size,
String... firewalls)
throws org.dasein.cloud.InternalException,
org.dasein.cloud.CloudException
- Specified by:
createLaunchConfiguration in interface org.dasein.cloud.compute.AutoScalingSupport
- Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException
deleteAutoScalingGroup
public void deleteAutoScalingGroup(String providerAutoScalingGroupId)
throws org.dasein.cloud.InternalException,
org.dasein.cloud.CloudException
- Specified by:
deleteAutoScalingGroup in interface org.dasein.cloud.compute.AutoScalingSupport
- Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException
deleteLaunchConfiguration
public void deleteLaunchConfiguration(String providerLaunchConfigurationId)
throws org.dasein.cloud.InternalException,
org.dasein.cloud.CloudException
- Specified by:
deleteLaunchConfiguration in interface org.dasein.cloud.compute.AutoScalingSupport
- Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException
setTrigger
public String setTrigger(String name,
String scalingGroupId,
String statistic,
String unitOfMeasure,
String metric,
int periodInSeconds,
double lowerThreshold,
double upperThreshold,
int lowerIncrement,
boolean lowerIncrementAbsolute,
int upperIncrement,
boolean upperIncrementAbsolute,
int breachDuration)
throws org.dasein.cloud.InternalException,
org.dasein.cloud.CloudException
- Specified by:
setTrigger in interface org.dasein.cloud.compute.AutoScalingSupport
- Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException
getLaunchConfiguration
public org.dasein.cloud.compute.LaunchConfiguration getLaunchConfiguration(String providerLaunchConfigurationId)
throws org.dasein.cloud.CloudException,
org.dasein.cloud.InternalException
- Specified by:
getLaunchConfiguration in interface org.dasein.cloud.compute.AutoScalingSupport
- Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException
getScalingGroup
public org.dasein.cloud.compute.ScalingGroup getScalingGroup(String providerScalingGroupId)
throws org.dasein.cloud.CloudException,
org.dasein.cloud.InternalException
- Specified by:
getScalingGroup in interface org.dasein.cloud.compute.AutoScalingSupport
- Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException
isSubscribed
public boolean isSubscribed()
throws org.dasein.cloud.CloudException,
org.dasein.cloud.InternalException
- Specified by:
isSubscribed in interface org.dasein.cloud.compute.AutoScalingSupport
- Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException
listLaunchConfigurations
public Collection<org.dasein.cloud.compute.LaunchConfiguration> listLaunchConfigurations()
throws org.dasein.cloud.CloudException,
org.dasein.cloud.InternalException
- Specified by:
listLaunchConfigurations in interface org.dasein.cloud.compute.AutoScalingSupport
- Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException
listScalingGroups
public Collection<org.dasein.cloud.compute.ScalingGroup> listScalingGroups()
throws org.dasein.cloud.CloudException,
org.dasein.cloud.InternalException
- Specified by:
listScalingGroups in interface org.dasein.cloud.compute.AutoScalingSupport
- 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
setDesiredCapacity
public void setDesiredCapacity(String scalingGroupId,
int capacity)
throws org.dasein.cloud.CloudException,
org.dasein.cloud.InternalException
- Specified by:
setDesiredCapacity in interface org.dasein.cloud.compute.AutoScalingSupport
- Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException
updateAutoScalingGroup
public void updateAutoScalingGroup(@Nonnull
String scalingGroupId,
@Nonnull
String launchConfigurationId,
@Nonnegative
int minServers,
@Nonnegative
int maxServers,
@Nonnegative
int cooldown,
@Nonnull
String... zoneIds)
throws org.dasein.cloud.InternalException,
org.dasein.cloud.CloudException
- Specified by:
updateAutoScalingGroup in interface org.dasein.cloud.compute.AutoScalingSupport
- Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException
Copyright © 2012 enStratus Networks LLC. All Rights Reserved.