public interface SchedulerBackend
| Modifier and Type | Method and Description |
|---|---|
Collection<ArnStoppedState> |
checkStoppedTasks(String cluster,
List<String> taskArns)
for given taskArn strings return an ArnStoppedState object for every taskArn
that is stopped or missing in the cluster.
|
com.amazonaws.services.autoscaling.model.AutoScalingGroup |
describeAutoScalingGroup(String autoScalingGroup)
describe autoscaling group of given name
|
void |
drainInstances(List<DockerHost> hosts,
String clusterName)
set the listed EC2 instances to "draining" state
|
List<com.amazonaws.services.ecs.model.ContainerInstance> |
getClusterContainerInstances(String cluster)
Get all owned container instances on a cluster
|
List<com.amazonaws.services.ec2.model.Instance> |
getInstances(Collection<String> instanceIds)
get EC2 Instances for the passed ids
|
void |
scaleTo(int desiredCapacity,
String autoScalingGroup)
scale the ASG to desired capacity
|
SchedulingResult |
schedule(DockerHost dockerHost,
String cluster,
SchedulingRequest req,
String taskDefinition) |
void |
suspendProcess(String autoScalingGroupName,
String azRebalance) |
void |
terminateAndDetachInstances(List<DockerHost> dockerHosts,
String autoScalingGroup,
boolean decrementSize,
String ecsClusterName)
terminate the listed EC2 instances and reduce the size of ASG by the given amount
|
void |
terminateInstances(List<String> instanceIds)
terminate listed EC2 instances
|
List<com.amazonaws.services.ecs.model.ContainerInstance> getClusterContainerInstances(String cluster) throws ECSException
cluster - ECSExceptionList<com.amazonaws.services.ec2.model.Instance> getInstances(Collection<String> instanceIds) throws ECSException
instanceIds - ECSExceptionvoid scaleTo(int desiredCapacity,
String autoScalingGroup)
throws ECSException
desiredCapacity - autoScalingGroup - ECSExceptionvoid terminateAndDetachInstances(List<DockerHost> dockerHosts, String autoScalingGroup, boolean decrementSize, String ecsClusterName) throws ECSException
dockerHosts - autoScalingGroup - decrementSize - should we decrease size of ASG or not? if not, new instance is started eventually.ecsClusterName - ECSExceptionvoid terminateInstances(List<String> instanceIds) throws ECSException
instanceIds - ECSExceptionvoid drainInstances(List<DockerHost> hosts, String clusterName)
hosts - clusterName - SchedulingResult schedule(DockerHost dockerHost, String cluster, SchedulingRequest req, String taskDefinition) throws ECSException
ECSExceptioncom.amazonaws.services.autoscaling.model.AutoScalingGroup describeAutoScalingGroup(String autoScalingGroup) throws ECSException
autoScalingGroup - ECSExceptionCollection<ArnStoppedState> checkStoppedTasks(String cluster, List<String> taskArns) throws ECSException
cluster - taskArns - ECSExceptionvoid suspendProcess(String autoScalingGroupName, String azRebalance) throws ECSException
ECSExceptionCopyright © 2017 Atlassian Pty Ltd. All rights reserved.