public class DockerHost extends Object
| Constructor and Description |
|---|
DockerHost(com.amazonaws.services.ecs.model.ContainerInstance containerInstance,
com.amazonaws.services.ec2.model.Instance instance,
boolean inASG) |
| Modifier and Type | Method and Description |
|---|---|
long |
ageMillis() |
boolean |
canRun(int requiredMemory,
int requiredCpu) |
boolean |
equals(Object o) |
boolean |
getAgentConnected() |
String |
getContainerAttribute(String name) |
String |
getContainerInstanceArn() |
String |
getInstanceId() |
int |
getRegisteredCpu()
the total amount of cpu available for docker containers on the instance.
|
int |
getRegisteredMemory()
the amount of memory available for docker containers on the instance.
|
int |
getRemainingCpu() |
int |
getRemainingMemory() |
String |
getStatus() |
int |
hashCode() |
boolean |
isPresentInASG() |
boolean |
reachingEndOfBillingCycle() |
void |
reduceAvailableCpuBy(int cpu) |
void |
reduceAvailableMemoryBy(int memory) |
boolean |
runningNothing() |
String |
toString() |
public DockerHost(com.amazonaws.services.ecs.model.ContainerInstance containerInstance,
com.amazonaws.services.ec2.model.Instance instance,
boolean inASG)
throws ECSException
ECSExceptionpublic boolean canRun(int requiredMemory,
int requiredCpu)
public boolean runningNothing()
public long ageMillis()
public boolean reachingEndOfBillingCycle()
public int getRemainingMemory()
public int getRemainingCpu()
public void reduceAvailableCpuBy(int cpu)
public void reduceAvailableMemoryBy(int memory)
public int getRegisteredCpu()
public int getRegisteredMemory()
public String getContainerInstanceArn()
public boolean isPresentInASG()
public boolean getAgentConnected()
public String getInstanceId()
public String getStatus()
Copyright © 2022 Atlassian Pty Ltd. All rights reserved.