Package uk.ac.manchester.spinnaker.alloc
Class SpallocProperties.AllocatorProperties
java.lang.Object
uk.ac.manchester.spinnaker.alloc.SpallocProperties.AllocatorProperties
- Enclosing class:
- SpallocProperties
public static class SpallocProperties.AllocatorProperties extends Object
Configuration of the main resource allocation engine.
-
Constructor Summary
Constructors Constructor Description AllocatorProperties(Duration period, int importanceSpan, SpallocProperties.PriorityScale priorityScale, int reportActionThreshold, String systemReportUser)
-
Method Summary
Modifier and Type Method Description @javax.validation.constraints.Positive int
getImportanceSpan()
Maximum span of job importance that will be allocated at once.@NotNull Duration
getPeriod()
Time between runs of the main allocation algorithm.@NotNull @Valid SpallocProperties.PriorityScale
getPriorityScale()
Properties relating to job priority scaling.@javax.validation.constraints.Positive int
getReportActionThreshold()
@NotNull String
getSystemReportUser()
-
Constructor Details
-
AllocatorProperties
public AllocatorProperties(@DefaultValue("5s") Duration period, @DefaultValue("10000") int importanceSpan, @DefaultValue SpallocProperties.PriorityScale priorityScale, @DefaultValue("2") int reportActionThreshold, @DefaultValue("") String systemReportUser)- 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.
-
-
Method Details
-
getPeriod
Time between runs of the main allocation algorithm.- Returns:
- Time between runs of the main allocation algorithm.
-
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
- 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.
-