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 boolean
boolean
int
The 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.double
The priority of the work requirement.The status of the work requirement.getTag()
Gets the user defined tagint
The total count of tasks in the work requirement.int
hashCode()
boolean
Indicates if the work requirement is healthy.void
setCompletedTaskCount
(int completedTaskCount) The count of successfully completed tasks in the work requirement.void
setCreatedTime
(Instant createdTime) The date and time when the work requirement was first submitted to YellowDog Scheduler.void
setHealthy
(boolean healthy) Indicates if the work requirement is healthy.void
void
The user allocated name used to uniquely identify the work requirement within its namespace.void
setNamespace
(String namespace) The user allocated namespace used to group work requirements and other objects together.void
setPriority
(double priority) The priority of the work requirement.void
setStatus
(WorkRequirementStatus status) The status of the work requirement.void
Sets the user defined tagvoid
setTotalTaskCount
(int totalTaskCount) The total count of tasks in the work requirement.toString()
-
Method Details
-
builder
-
getId
Description copied from interface:Identified
Returns the ID- Specified by:
getId
in 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
-
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.
-
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
-