import persystencji

This commit is contained in:
root
2018-07-01 21:49:18 +02:00
parent be2e00956f
commit 913e87820e
3 changed files with 26 additions and 0 deletions

5
persistence/README Normal file
View File

@@ -0,0 +1,5 @@
Put any file containing persistence definitions here. They will be activated automatically.
Note: Persistence definition files must have the extension '*.persist'
Demo-files can be obtained from the archive 'distribution-demo-*.zip'.

10
persistence/jpa.persist Normal file
View File

@@ -0,0 +1,10 @@
Strategies {
default = everyChange
}
Items {
// persist all items once a day and on every change and restore them from the db at startup
* : strategy = everyChange, everyDay, restoreOnStartup
}

11
persistence/rrd4j.persist Normal file
View File

@@ -0,0 +1,11 @@
Strategies {
everyMinute : "0 * * * * ?"
default = everyChange
}
Items {
temperatury* : strategy = everyMinute
wifi* : strategy = everyMinute
}