Package uk.ac.manchester.spinnaker.alloc
Class SpallocProperties.AllocatorProperties
java.lang.Object
uk.ac.manchester.spinnaker.alloc.SpallocProperties.AllocatorProperties
- Enclosing class:
- SpallocProperties
Configuration of the main resource allocation engine.
-
Constructor Summary
ConstructorsConstructorDescriptionAllocatorProperties
(Duration period, int importanceSpan, SpallocProperties.PriorityScale priorityScale, int reportActionThreshold, String systemReportUser, String emergencyStopCommandCode) -
Method Summary
Modifier and TypeMethodDescription@NotBlank String
@jakarta.validation.constraints.Positive int
Maximum span of job importance that will be allocated at once.@NotNull Duration
Time between runs of the main allocation algorithm.@NotNull @Valid SpallocProperties.PriorityScale
Properties relating to job priority scaling.@jakarta.validation.constraints.Positive int
@NotNull String
-
Constructor Details
-
AllocatorProperties
@ConstructorBinding public AllocatorProperties(@DefaultValue("5s") Duration period, @DefaultValue("10000") int importanceSpan, @DefaultValue SpallocProperties.PriorityScale priorityScale, @DefaultValue("2") int reportActionThreshold, @DefaultValue("") String systemReportUser, @DefaultValue String emergencyStopCommandCode) - Parameters:
period
- Time between runs of the main allocation algorithm.importanceSpan
- Maximum span of job importance that will be allocated at once. Priority is the rate at which importance is accrued.priorityScale
- Properties relating to job priority scaling.reportActionThreshold
- Number of reports of board problems at which the board is taken out of service.systemReportUser
- Name of user that system-generated reports are done by.emergencyStopCommandCode
- Command code to accept for an emergency stop.
-
-
Method Details
-
getPeriod
Time between runs of the main allocation algorithm.- Returns:
- Time between runs of the main allocation algorithm.
-
getImportanceSpan
@Positive public @jakarta.validation.constraints.Positive int getImportanceSpan()Maximum span of job importance that will be allocated at once. Priority is the rate at which importance is accrued.- Returns:
- Maximum importance span for considered jobs for a particular run of the allocator algorithm.
-
getPriorityScale
Properties relating to job priority scaling.- Returns:
- Properties relating to job priority scaling.
-
getReportActionThreshold
@Positive public @jakarta.validation.constraints.Positive int getReportActionThreshold()- Returns:
- Number of reports of board problems at which the board is taken out of service.
-
getSystemReportUser
- Returns:
- Name of user that system-generated reports are done by.
-
getEmergencyStopCommandCode
- Returns:
- Command code to accept for an emergency stop.
-