Package uk.ac.manchester.spinnaker.alloc
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 Summary
Constructors Constructor Description HistoricalDataProperties(File path, Duration gracePeriod, String schedule, SpallocProperties.DataSourceProperties datasource)
-
Method Summary
Modifier and Type Method Description @Valid SpallocProperties.DataSourceProperties
getDatasource()
@NotNull Duration
getGracePeriod()
@NotNull File
getPath()
@NotBlank String
getSchedule()
-
Constructor Details
-
HistoricalDataProperties
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
- Returns:
- Path to the historical job database file. Must be distinct from the main database!
-
getGracePeriod
- Returns:
- How long after job completion should we wait before moving the data?
-
getSchedule
- Returns:
- Cron expression saying when to move completed jobs to the historical database.
-
getDatasource
- Returns:
- Database connection properties for the connection to the historical database.
-