Class ComputeRequirementSummary
java.lang.Object
co.yellowdog.platform.interaction.compute.ComputeRequirementSummary
Provides a summary of a ComputeRequirement including the ID that can be used to retrieve the full object.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()protected booleanbooleanintThe number of alive instances.The date and time when this compute requirement was first submitted to YellowDog Compute.intThe number of alive instances expected based on existing instances and the most recent provision action.getId()The ID of this compute requirement that is generated by YellowDog Compute when the requirement is first submitted.getName()The user allocated name used to uniquely identify the compute requirement within its namespace.The user allocated namespace used to group compute requirements and other objects together.The status of this compute requirement.getTag()intThe number of instances to be provisioned to meet this compute requirement.inthashCode()booleanRepresents whether the compute requirement is healthy or not.voidsetAliveInstanceCount(int aliveInstanceCount) The number of alive instances.voidsetCreatedTime(Instant createdTime) The date and time when this compute requirement was first submitted to YellowDog Compute.voidsetExpectedInstanceCount(int expectedInstanceCount) The number of alive instances expected based on existing instances and the most recent provision action.voidsetHealthy(boolean healthy) Represents whether the compute requirement is healthy or not.voidThe ID of this compute requirement that is generated by YellowDog Compute when the requirement is first submitted.voidThe user allocated name used to uniquely identify the compute requirement within its namespace.voidsetNamespace(String namespace) The user allocated namespace used to group compute requirements and other objects together.voidsetStatus(ComputeRequirementStatus status) The status of this compute requirement.voidvoidsetTargetInstanceCount(int targetInstanceCount) The number of instances to be provisioned to meet this compute requirement.toString()
-
Method Details
-
builder
-
getId
The ID of this compute requirement that is generated by YellowDog Compute when the requirement is first submitted.- Returns:
- the ID of this compute requirement
-
getNamespace
The user allocated namespace used to group compute requirements and other objects together.- Returns:
- the compute requirement namespace
-
getName
The user allocated name used to uniquely identify the compute requirement within its namespace.- Returns:
- the compute requirement name
-
getTag
-
getTargetInstanceCount
public int getTargetInstanceCount()The number of instances to be provisioned to meet this compute requirement.- Returns:
- the number of instances to be provisioned
-
getExpectedInstanceCount
public int getExpectedInstanceCount()The number of alive instances expected based on existing instances and the most recent provision action.- Returns:
- the number of instances expected
-
getAliveInstanceCount
public int getAliveInstanceCount()The number of alive instances.- Returns:
- the number of alive instances
-
getCreatedTime
The date and time when this compute requirement was first submitted to YellowDog Compute.- Returns:
- the date and time when this compute requirement was first submitted
-
getStatus
The status of this compute requirement.- Returns:
- the status of this compute requirement
-
isHealthy
public boolean isHealthy()Represents whether the compute requirement is healthy or not. A compute requirement is considered healthy if no sources have a status of ERRORED- Returns:
- true if no sources have a status of ERRORED, false is one or more sources have a status of ERRORED
-
setId
The ID of this compute requirement that is generated by YellowDog Compute when the requirement is first submitted.- Parameters:
id- This is a summary type, setting the property has no effect.
-
setNamespace
The user allocated namespace used to group compute requirements and other objects together.- Parameters:
namespace- This is a summary type, setting the property has no effect.
-
setName
The user allocated name used to uniquely identify the compute requirement within its namespace.- Parameters:
name- This is a summary type, setting the property has no effect.
-
setTag
-
setTargetInstanceCount
public void setTargetInstanceCount(int targetInstanceCount) The number of instances to be provisioned to meet this compute requirement.- Parameters:
targetInstanceCount- This is a summary type, setting the property has no effect.
-
setExpectedInstanceCount
public void setExpectedInstanceCount(int expectedInstanceCount) The number of alive instances expected based on existing instances and the most recent provision action.- Parameters:
expectedInstanceCount- This is a summary type, setting the property has no effect.
-
setAliveInstanceCount
public void setAliveInstanceCount(int aliveInstanceCount) The number of alive instances.- Parameters:
expectedInstanceCount- This is a summary type, setting the property has no effect.
-
setCreatedTime
The date and time when this compute requirement was first submitted to YellowDog Compute.- Parameters:
createdTime- This is a summary type, setting the property has no effect.
-
setStatus
The status of this compute requirement.- Parameters:
status- This is a summary type, setting the property has no effect.
-
setHealthy
public void setHealthy(boolean healthy) Represents whether the compute requirement is healthy or not. A compute requirement is considered healthy if no sources have a status of ERRORED- Parameters:
healthy- This is a summary type, setting the property has no effect.
-
equals
-
canEqual
-
hashCode
-
toString
-