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
ECSExceptionList<com.amazonaws.services.ec2.model.Instance> getInstances(Collection<String> instanceIds) throws ECSException
ECSExceptionvoid scaleTo(int desiredCapacity,
String autoScalingGroup)
throws ECSException
ECSExceptionvoid terminateAndDetachInstances(List<DockerHost> dockerHosts, String autoScalingGroup, boolean decrementSize, String ecsClusterName) throws ECSException
decrementSize - should we decrease size of ASG or not? if not, new instance is started eventually.ECSExceptionvoid terminateInstances(List<String> instanceIds) throws ECSException
ECSExceptionvoid drainInstances(List<DockerHost> hosts, String clusterName)
SchedulingResult schedule(DockerHost dockerHost, String cluster, SchedulingRequest req, String taskDefinition) throws ECSException
ECSExceptioncom.amazonaws.services.autoscaling.model.AutoScalingGroup describeAutoScalingGroup(String autoScalingGroup) throws ECSException
ECSExceptionCollection<ArnStoppedState> checkStoppedTasks(String cluster, List<String> taskArns) throws ECSException
ECSExceptionvoid suspendProcess(String autoScalingGroupName, String azRebalance) throws ECSException
ECSExceptionCopyright © 2022 Atlassian Pty Ltd. All rights reserved.