comparison Changelog @ 30:88972c6daa4f

Added a cleanup thread which periodically removes outdated artifacts from database and calls there endOfLife() method. artifacts/trunk@70 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Thu, 10 Sep 2009 23:16:18 +0000
parents 22b03d5c84c5
children c4d85a8532d1
comparison
equal deleted inserted replaced
29:22b03d5c84c5 30:88972c6daa4f
1 2009-09-11 Sascha L. Teichmann <sascha.teichmann@intevation.de>
2
3 * artifact-database/doc/example-conf/conf.xml: Added
4 sleep time for cleanup thread.
5
6 * artifact-database/src/main/java/de/intevation/artifactdatabase/App.java:
7 Start cleanup thread at startup.
8
9 * artifact-database/src/main/java/de/intevation/artifactdatabase/Backend.java:
10 Make artifact restoring bit more robust, added ref to
11 cleanup thread to do an immediate cleanup when dead artifact
12 is found by lookup.
13
14 * artifact-database/src/main/java/de/intevation/artifactdatabase/DatabaseCleaner.java:
15 New. The cleanup thread. It cleans up the artifact database
16 perodically and calls the endOfLife() methods of the dead
17 artifacts. Default cleanup interval is 5 minutes.
18
19 * artifact-database/src/main/resources/sql/org-h2-driver.properties:
20 Tuned SQL a bit to fetch only a 50 artifacts in search for
21 outdated artifacts to avoid too much memory consumption.
22
23 * contrib/run.sh: Little tweak to work with more than one
24 commons-pool version installed.
25
26 * TODO: Removed remarks about the now implemented killer
27 thread and the moves XML stuff.
28
29 * README: Changed text how to create a H2 database from
30 command line only. XXX: This is still broken. The best
31 way to set up the database by now is to start the Console
32 client, connect to the database, c&p the schema.sql
33 into the SQL text area and execute it.
34
1 2009-09-10 Sascha L. Teichmann <sascha.teichmann@intevation.de> 35 2009-09-10 Sascha L. Teichmann <sascha.teichmann@intevation.de>
2 36
3 * artifact-database/src/main/java/de/intevation/artifactdatabase/rest/ArtifactOutResource.java: 37 * artifact-database/src/main/java/de/intevation/artifactdatabase/rest/ArtifactOutResource.java:
4 New. Handler for 'out'. Reachable via HTTP GET '/artifact/{uuid}/{type}'. 38 New. Handler for 'out'. Reachable via HTTP GET '/artifact/{uuid}/{type}'.
5 39

http://dive4elements.wald.intevation.org