All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.nitorcreations.willow.autoscaler.clouds.CloudAdapter Maven / Gradle / Ivy

There is a newer version: 2.0.2
Show newest version
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);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy