Class WorkRequirementSummary.Builder
java.lang.Object
co.yellowdog.platform.interaction.scheduler.WorkRequirementSummary.Builder
- Enclosing class:
WorkRequirementSummary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
completedTaskCount
(int completedTaskCount) The count of successfully completed tasks in the work requirement.createdTime
(Instant createdTime) The date and time when the work requirement was first submitted to YellowDog Scheduler.healthy
(boolean healthy) Indicates if the work requirement is healthy.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.priority
(double priority) The priority of the work requirement.status
(WorkRequirementStatus status) The status of the work requirement.toString()
totalTaskCount
(int totalTaskCount) The total count of tasks in the work requirement.
-
Method Details
-
id
- Returns:
this
.
-
namespace
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.- Returns:
this
.
-
name
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.- Returns:
this
.
-
tag
- Returns:
this
.
-
createdTime
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.- Returns:
this
.
-
priority
The priority of the work requirement.- Parameters:
priority
- the priority of the work requirement- Returns:
this
.
-
completedTaskCount
The count of successfully completed tasks in the work requirement.- Parameters:
completedTaskCount
- This is a summary type, setting the property has no effect.- Returns:
this
.
-
totalTaskCount
The total count of tasks in the work requirement.- Parameters:
totalTaskCount
- This is a summary type, setting the property has no effect.- Returns:
this
.
-
status
The status of the work requirement.- Parameters:
status
- This is a summary type, setting the property has no effect.- Returns:
this
.
-
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.- Returns:
this
.
-
build
-
toString
-