com.nitorcreations.willow.autoscaler.clouds.CloudAdapter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of willow-autoscaler Show documentation
Show all versions of willow-autoscaler Show documentation
Willow elastic cloud auto scaler
package com.nitorcreations.willow.autoscaler.clouds;
import java.util.List;
import com.nitorcreations.willow.autoscaler.config.AutoScalingGroupConfig;
import com.nitorcreations.willow.autoscaler.deployment.AutoScalingGroupDeploymentStatus;
public interface CloudAdapter {
/**
* The cloud provider that this adapter instance is for.
*
* @return cloudProviderId String
*/
String getCloudProviderId();
/**
* Query the cloud provider for status of an auto scaling group.
* @param groupId
*/
AutoScalingGroupDeploymentStatus getGroupStatus(String regionId, String groupId);
/**
* Starts instances for the specified auto scaling group.
* @param config the group to start instances in
* @param count the number of instances to start
* @return List of instance identifiers for the started instances
*/
List launchInstances(AutoScalingGroupConfig config, int count);
List terminateInstances(AutoScalingGroupConfig config, int count);
}