Package uk.ac.manchester.spinnaker.alloc
Class SpallocProperties.HistoricalDataProperties
java.lang.Object
uk.ac.manchester.spinnaker.alloc.SpallocProperties.HistoricalDataProperties
- Enclosing class:
- SpallocProperties
How to handle job data that is now only of historic interest.
- 
Constructor SummaryConstructorsConstructorDescriptionHistoricalDataProperties(File path, Duration gracePeriod, String schedule, SpallocProperties.DataSourceProperties datasource) 
- 
Method Summary
- 
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- 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.
 
 
-