org.dasein.cloud.services.scaling
Interface ScalingServices
public interface ScalingServices
|
Method Summary |
String |
createAutoScalingGroup(String name,
String launchConfigurationId,
int minServers,
int maxServers,
int cooldown,
String... dataCenterIds)
|
String |
createLaunchConfiguration(String name,
String imageId,
ServerSize size,
String... firewalls)
|
void |
deleteAutoScalingGroup(String providerAutoScalingGroupId)
|
void |
deleteLaunchConfiguration(String providerLaunchConfigurationId)
|
LaunchConfiguration |
getLaunchConfiguration(String providerLaunchConfigurationId)
|
ScalingGroup |
getScalingGroup(String providerScalingGroupId)
|
Collection<LaunchConfiguration> |
listLaunchConfigurations()
|
Collection<ScalingGroup> |
listScalingGroups()
|
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)
|
createAutoScalingGroup
String createAutoScalingGroup(String name,
String launchConfigurationId,
int minServers,
int maxServers,
int cooldown,
String... dataCenterIds)
throws InternalException,
CloudException
- Throws:
InternalException
CloudException
createLaunchConfiguration
String createLaunchConfiguration(String name,
String imageId,
ServerSize size,
String... firewalls)
throws InternalException,
CloudException
- Throws:
InternalException
CloudException
deleteAutoScalingGroup
void deleteAutoScalingGroup(String providerAutoScalingGroupId)
throws CloudException,
InternalException
- Throws:
CloudException
InternalException
deleteLaunchConfiguration
void deleteLaunchConfiguration(String providerLaunchConfigurationId)
throws CloudException,
InternalException
- Throws:
CloudException
InternalException
getLaunchConfiguration
LaunchConfiguration getLaunchConfiguration(String providerLaunchConfigurationId)
throws CloudException,
InternalException
- Throws:
CloudException
InternalException
getScalingGroup
ScalingGroup getScalingGroup(String providerScalingGroupId)
throws CloudException,
InternalException
- Throws:
CloudException
InternalException
listScalingGroups
Collection<ScalingGroup> listScalingGroups()
throws CloudException,
InternalException
- Throws:
CloudException
InternalException
listLaunchConfigurations
Collection<LaunchConfiguration> listLaunchConfigurations()
throws CloudException,
InternalException
- Throws:
CloudException
InternalException
setDesiredCapacity
void setDesiredCapacity(String scalingGroupId,
int capacity)
throws CloudException,
InternalException
- Throws:
CloudException
InternalException
setTrigger
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 InternalException,
CloudException
- Throws:
InternalException
CloudException
updateAutoScalingGroup
void updateAutoScalingGroup(String scalingGroupId,
String launchConfigurationId,
int minServers,
int maxServers,
int cooldown,
String... zoneIds)
throws InternalException,
CloudException
- Throws:
InternalException
CloudException
Copyright © 2009 enStratus Networks LLC – Available under the terms of the Artistic License 2.0.