Class SpallocProperties.HistoricalDataProperties

java.lang.Object
uk.ac.manchester.spinnaker.alloc.SpallocProperties.HistoricalDataProperties
Enclosing class:
SpallocProperties

public static class SpallocProperties.HistoricalDataProperties extends Object
How to handle job data that is now only of historic interest.
  • Constructor Details

    • HistoricalDataProperties

      @ConstructorBinding public HistoricalDataProperties(@DefaultValue("spalloc-history.sqlite3") File path, @DefaultValue("14d") Duration gracePeriod, @DefaultValue("0 0 2 * * *") String schedule, @DefaultValue SpallocProperties.DataSourceProperties datasource)
      Parameters:
      path - Path to the historical job database file. Must be distinct from the main database!
      gracePeriod - How long after job completion should we wait before moving the data?
      schedule - Cron expression saying when to move completed jobs to the historical database.
      datasource - Database connection properties for the connection to the historical database.
  • Method Details

    • getPath

      @NotNull public @NotNull File getPath()
      Returns:
      Path to the historical job database file. Must be distinct from the main database!
    • getGracePeriod

      @NotNull public @NotNull Duration getGracePeriod()
      Returns:
      How long after job completion should we wait before moving the data?
    • getSchedule

      @NotBlank public @NotBlank String getSchedule()
      Returns:
      Cron expression saying when to move completed jobs to the historical database.
    • getDatasource

      @Valid public @Valid SpallocProperties.DataSourceProperties getDatasource()
      Returns:
      Database connection properties for the connection to the historical database.