Class WorkRequirementSummary
java.lang.Object
co.yellowdog.platform.interaction.scheduler.WorkRequirementSummary
- All Implemented Interfaces:
Identified,Tagged,Serializable
Provides a summary of a WorkRequirement including the ID that can be used to retrieve the full object.
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface co.yellowdog.platform.model.Tagged
MAX_TAG_LENGTH -
Method Summary
Modifier and TypeMethodDescriptionbuilder()protected booleanbooleanintThe count of successfully completed tasks in the work requirement.The date and time when the work requirement was first submitted to YellowDog Scheduler.getId()Returns the IDgetName()The user allocated name used to uniquely identify the work requirement within its namespace.The user allocated namespace used to group work requirements and other objects together.doubleThe priority of the work requirement.The status of the work requirement.The date and time when the status last changedgetTag()Gets the user defined tagintThe total count of tasks in the work requirement.inthashCode()booleanIndicates if the work requirement is healthy.voidsetCompletedTaskCount(int completedTaskCount) The count of successfully completed tasks in the work requirement.voidsetCreatedTime(Instant createdTime) The date and time when the work requirement was first submitted to YellowDog Scheduler.voidsetHealthy(boolean healthy) Indicates if the work requirement is healthy.voidvoidThe user allocated name used to uniquely identify the work requirement within its namespace.voidsetNamespace(String namespace) The user allocated namespace used to group work requirements and other objects together.voidsetPriority(double priority) The priority of the work requirement.voidsetStatus(WorkRequirementStatus status) The status of the work requirement.voidsetStatusChangedTime(Instant statusChangedTime) The date and time when the status last changedvoidSets the user defined tagvoidsetTotalTaskCount(int totalTaskCount) The total count of tasks in the work requirement.toString()
-
Method Details
-
builder
-
getId
Description copied from interface:IdentifiedReturns the ID- Specified by:
getIdin interfaceIdentified- Returns:
- the ID
-
getNamespace
The user allocated namespace used to group work requirements and other objects together.- Returns:
- the work requirement namespace
-
getName
The user allocated name used to uniquely identify the work requirement within its namespace.- Returns:
- the work requirement name
-
getTag
-
getCreatedTime
The date and time when the work requirement was first submitted to YellowDog Scheduler.- Returns:
- the date and time when the work requirement was first submitted
-
getStatusChangedTime
The date and time when the status last changed- Returns:
- the date and time when the status last changed
-
getPriority
public double getPriority()The priority of the work requirement.- Returns:
- the priority of the work requirement
-
getCompletedTaskCount
public int getCompletedTaskCount()The count of successfully completed tasks in the work requirement.- Returns:
- the count of successfully completed tasks in the work requirement.
-
getTotalTaskCount
public int getTotalTaskCount()The total count of tasks in the work requirement.- Returns:
- the total count of tasks in the work requirement.
-
getStatus
The status of the work requirement.- Returns:
- the status of the work requirement
-
isHealthy
public boolean isHealthy()Indicates if the work requirement is healthy. If false then tasks may have failed or task groups may be starved.- Returns:
- true, if the work requirement is health; otherwise, false
-
setId
-
setNamespace
The user allocated namespace used to group work 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 work requirement within its namespace.- Parameters:
name- This is a summary type, setting the property has no effect.
-
setTag
-
setCreatedTime
The date and time when the work requirement was first submitted to YellowDog Scheduler.- Parameters:
createdTime- This is a summary type, setting the property has no effect.
-
setStatusChangedTime
The date and time when the status last changed- Parameters:
statusChangedTime- This should not be set outside of the YellowDog Compute service.
-
setPriority
public void setPriority(double priority) The priority of the work requirement.- Parameters:
priority- the priority of the work requirement
-
setCompletedTaskCount
public void setCompletedTaskCount(int completedTaskCount) The count of successfully completed tasks in the work requirement.- Parameters:
completedTaskCount- This is a summary type, setting the property has no effect.
-
setTotalTaskCount
public void setTotalTaskCount(int totalTaskCount) The total count of tasks in the work requirement.- Parameters:
totalTaskCount- This is a summary type, setting the property has no effect.
-
setStatus
The status of the work requirement.- Parameters:
status- This is a summary type, setting the property has no effect.
-
setHealthy
public void setHealthy(boolean healthy) Indicates if the work requirement is healthy. If false then tasks may have failed or task groups may be starved.- Parameters:
healthy- This is a summary type, setting the property has no effect.
-
equals
-
canEqual
-
hashCode
-
toString
-