Mercurial > dive4elements > framework
annotate 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 |
rev | line source |
---|---|
30
88972c6daa4f
Added a cleanup thread which periodically removes
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
29
diff
changeset
|
1 2009-09-11 Sascha L. Teichmann <sascha.teichmann@intevation.de> |
88972c6daa4f
Added a cleanup thread which periodically removes
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
29
diff
changeset
|
2 |
88972c6daa4f
Added a cleanup thread which periodically removes
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
29
diff
changeset
|
3 * artifact-database/doc/example-conf/conf.xml: Added |
88972c6daa4f
Added a cleanup thread which periodically removes
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
29
diff
changeset
|
4 sleep time for cleanup thread. |
88972c6daa4f
Added a cleanup thread which periodically removes
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
29
diff
changeset
|
5 |
88972c6daa4f
Added a cleanup thread which periodically removes
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
29
diff
changeset
|
6 * artifact-database/src/main/java/de/intevation/artifactdatabase/App.java: |
88972c6daa4f
Added a cleanup thread which periodically removes
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
29
diff
changeset
|
7 Start cleanup thread at startup. |
88972c6daa4f
Added a cleanup thread which periodically removes
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
29
diff
changeset
|
8 |
88972c6daa4f
Added a cleanup thread which periodically removes
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
29
diff
changeset
|
9 * artifact-database/src/main/java/de/intevation/artifactdatabase/Backend.java: |
88972c6daa4f
Added a cleanup thread which periodically removes
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
29
diff
changeset
|
10 Make artifact restoring bit more robust, added ref to |
88972c6daa4f
Added a cleanup thread which periodically removes
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
29
diff
changeset
|
11 cleanup thread to do an immediate cleanup when dead artifact |
88972c6daa4f
Added a cleanup thread which periodically removes
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
29
diff
changeset
|
12 is found by lookup. |
88972c6daa4f
Added a cleanup thread which periodically removes
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
29
diff
changeset
|
13 |
88972c6daa4f
Added a cleanup thread which periodically removes
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
29
diff
changeset
|
14 * artifact-database/src/main/java/de/intevation/artifactdatabase/DatabaseCleaner.java: |
88972c6daa4f
Added a cleanup thread which periodically removes
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
29
diff
changeset
|
15 New. The cleanup thread. It cleans up the artifact database |
88972c6daa4f
Added a cleanup thread which periodically removes
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
29
diff
changeset
|
16 perodically and calls the endOfLife() methods of the dead |
88972c6daa4f
Added a cleanup thread which periodically removes
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
29
diff
changeset
|
17 artifacts. Default cleanup interval is 5 minutes. |
88972c6daa4f
Added a cleanup thread which periodically removes
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
29
diff
changeset
|
18 |
88972c6daa4f
Added a cleanup thread which periodically removes
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
29
diff
changeset
|
19 * artifact-database/src/main/resources/sql/org-h2-driver.properties: |
88972c6daa4f
Added a cleanup thread which periodically removes
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
29
diff
changeset
|
20 Tuned SQL a bit to fetch only a 50 artifacts in search for |
88972c6daa4f
Added a cleanup thread which periodically removes
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
29
diff
changeset
|
21 outdated artifacts to avoid too much memory consumption. |
88972c6daa4f
Added a cleanup thread which periodically removes
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
29
diff
changeset
|
22 |
88972c6daa4f
Added a cleanup thread which periodically removes
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
29
diff
changeset
|
23 * contrib/run.sh: Little tweak to work with more than one |
88972c6daa4f
Added a cleanup thread which periodically removes
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
29
diff
changeset
|
24 commons-pool version installed. |
88972c6daa4f
Added a cleanup thread which periodically removes
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
29
diff
changeset
|
25 |
88972c6daa4f
Added a cleanup thread which periodically removes
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
29
diff
changeset
|
26 * TODO: Removed remarks about the now implemented killer |
88972c6daa4f
Added a cleanup thread which periodically removes
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
29
diff
changeset
|
27 thread and the moves XML stuff. |
88972c6daa4f
Added a cleanup thread which periodically removes
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
29
diff
changeset
|
28 |
88972c6daa4f
Added a cleanup thread which periodically removes
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
29
diff
changeset
|
29 * README: Changed text how to create a H2 database from |
88972c6daa4f
Added a cleanup thread which periodically removes
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
29
diff
changeset
|
30 command line only. XXX: This is still broken. The best |
88972c6daa4f
Added a cleanup thread which periodically removes
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
29
diff
changeset
|
31 way to set up the database by now is to start the Console |
88972c6daa4f
Added a cleanup thread which periodically removes
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
29
diff
changeset
|
32 client, connect to the database, c&p the schema.sql |
88972c6daa4f
Added a cleanup thread which periodically removes
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
29
diff
changeset
|
33 into the SQL text area and execute it. |
88972c6daa4f
Added a cleanup thread which periodically removes
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
29
diff
changeset
|
34 |
29
22b03d5c84c5
Added REST out handler for artifacts reachable via HTTP GET '/artifact/{uuid}/{type}'.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
28
diff
changeset
|
35 2009-09-10 Sascha L. Teichmann <sascha.teichmann@intevation.de> |
22b03d5c84c5
Added REST out handler for artifacts reachable via HTTP GET '/artifact/{uuid}/{type}'.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
28
diff
changeset
|
36 |
22b03d5c84c5
Added REST out handler for artifacts reachable via HTTP GET '/artifact/{uuid}/{type}'.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
28
diff
changeset
|
37 * artifact-database/src/main/java/de/intevation/artifactdatabase/rest/ArtifactOutResource.java: |
22b03d5c84c5
Added REST out handler for artifacts reachable via HTTP GET '/artifact/{uuid}/{type}'.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
28
diff
changeset
|
38 New. Handler for 'out'. Reachable via HTTP GET '/artifact/{uuid}/{type}'. |
22b03d5c84c5
Added REST out handler for artifacts reachable via HTTP GET '/artifact/{uuid}/{type}'.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
28
diff
changeset
|
39 |
22b03d5c84c5
Added REST out handler for artifacts reachable via HTTP GET '/artifact/{uuid}/{type}'.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
28
diff
changeset
|
40 * artifact-database/src/main/java/de/intevation/artifactdatabase/rest/OutRepresentation.java: |
22b03d5c84c5
Added REST out handler for artifacts reachable via HTTP GET '/artifact/{uuid}/{type}'.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
28
diff
changeset
|
41 New. Special representation for out. TODO: use streaming API. |
22b03d5c84c5
Added REST out handler for artifacts reachable via HTTP GET '/artifact/{uuid}/{type}'.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
28
diff
changeset
|
42 |
22b03d5c84c5
Added REST out handler for artifacts reachable via HTTP GET '/artifact/{uuid}/{type}'.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
28
diff
changeset
|
43 * artifact-database/src/main/java/de/intevation/artifactdatabase/rest/ArtifactResource.java: |
22b03d5c84c5
Added REST out handler for artifacts reachable via HTTP GET '/artifact/{uuid}/{type}'.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
28
diff
changeset
|
44 Regrouped imports. |
22b03d5c84c5
Added REST out handler for artifacts reachable via HTTP GET '/artifact/{uuid}/{type}'.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
28
diff
changeset
|
45 |
22b03d5c84c5
Added REST out handler for artifacts reachable via HTTP GET '/artifact/{uuid}/{type}'.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
28
diff
changeset
|
46 * artifact-database/src/main/java/de/intevation/artifactdatabase/rest/RestApp.java: Added |
22b03d5c84c5
Added REST out handler for artifacts reachable via HTTP GET '/artifact/{uuid}/{type}'.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
28
diff
changeset
|
47 handler for 'out' to routing table. |
22b03d5c84c5
Added REST out handler for artifacts reachable via HTTP GET '/artifact/{uuid}/{type}'.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
28
diff
changeset
|
48 |
27
75bdaf900473
Added REST handler for 'describe'.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
26
diff
changeset
|
49 2009-09-10 Sascha L. Teichmann <sascha.teichmann@intevation.de> |
75bdaf900473
Added REST handler for 'describe'.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
26
diff
changeset
|
50 |
75bdaf900473
Added REST handler for 'describe'.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
26
diff
changeset
|
51 * artifact-database/src/main/java/de/intevation/artifactdatabase/rest/ArtifactResource.java: |
28
019b9f02d523
Added REST handler for 'advance' and 'feed' to be called by HTTP POST '/artifact/{uuid}'.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
27
diff
changeset
|
52 Added handler for 'advance' and 'feed' to be called by HTTP POST '/artifact/{uuid}'. |
019b9f02d523
Added REST handler for 'advance' and 'feed' to be called by HTTP POST '/artifact/{uuid}'.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
27
diff
changeset
|
53 |
019b9f02d523
Added REST handler for 'advance' and 'feed' to be called by HTTP POST '/artifact/{uuid}'.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
27
diff
changeset
|
54 2009-09-10 Sascha L. Teichmann <sascha.teichmann@intevation.de> |
019b9f02d523
Added REST handler for 'advance' and 'feed' to be called by HTTP POST '/artifact/{uuid}'.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
27
diff
changeset
|
55 |
019b9f02d523
Added REST handler for 'advance' and 'feed' to be called by HTTP POST '/artifact/{uuid}'.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
27
diff
changeset
|
56 * artifact-database/src/main/java/de/intevation/artifactdatabase/rest/ArtifactResource.java: |
019b9f02d523
Added REST handler for 'advance' and 'feed' to be called by HTTP POST '/artifact/{uuid}'.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
27
diff
changeset
|
57 Added handler for 'describe' to be fetched by HTTP GET '/artifact/{uuid}'. |
27
75bdaf900473
Added REST handler for 'describe'.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
26
diff
changeset
|
58 |
75bdaf900473
Added REST handler for 'describe'.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
26
diff
changeset
|
59 * artifact-database/src/main/java/de/intevation/artifactdatabase/rest/RestApp.java: |
75bdaf900473
Added REST handler for 'describe'.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
26
diff
changeset
|
60 Add route to new describe handler. |
75bdaf900473
Added REST handler for 'describe'.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
26
diff
changeset
|
61 |
75bdaf900473
Added REST handler for 'describe'.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
26
diff
changeset
|
62 * artifact-database/src/main/java/de/intevation/artifactdatabase/Backend.java: Fixed |
75bdaf900473
Added REST handler for 'describe'.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
26
diff
changeset
|
63 problems with serialization of artifacts to backing database. |
75bdaf900473
Added REST handler for 'describe'.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
26
diff
changeset
|
64 |
26
83a059c204f8
Connected /create with artifact db.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
25
diff
changeset
|
65 2009-09-10 Sascha L. Teichmann <sascha.teichmann@intevation.de> |
83a059c204f8
Connected /create with artifact db.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
25
diff
changeset
|
66 |
83a059c204f8
Connected /create with artifact db.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
25
diff
changeset
|
67 * artifact-database/src/main/java/de/intevation/artifactdatabase/XMLUtils.java: |
83a059c204f8
Connected /create with artifact db.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
25
diff
changeset
|
68 Added method to get strings from XML documents via XPath. |
83a059c204f8
Connected /create with artifact db.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
25
diff
changeset
|
69 |
83a059c204f8
Connected /create with artifact db.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
25
diff
changeset
|
70 * artifact-database/src/main/java/de/intevation/artifactdatabase/DefaultArtifact.java: |
83a059c204f8
Connected /create with artifact db.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
25
diff
changeset
|
71 Used XMLUtils to create new XML documents. |
83a059c204f8
Connected /create with artifact db.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
25
diff
changeset
|
72 |
83a059c204f8
Connected /create with artifact db.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
25
diff
changeset
|
73 * artifact-database/src/main/java/de/intevation/artifactdatabase/ArtifactDatabaseImpl.java: |
83a059c204f8
Connected /create with artifact db.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
25
diff
changeset
|
74 Forgot to store backend in instance variable. |
83a059c204f8
Connected /create with artifact db.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
25
diff
changeset
|
75 |
83a059c204f8
Connected /create with artifact db.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
25
diff
changeset
|
76 * artifacts/src/main/java/de/intevation/artifacts/ArtifactNamespaceContext.java: |
83a059c204f8
Connected /create with artifact db.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
25
diff
changeset
|
77 Added static instance of this class. |
83a059c204f8
Connected /create with artifact db.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
25
diff
changeset
|
78 |
83a059c204f8
Connected /create with artifact db.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
25
diff
changeset
|
79 * artifact-database/src/main/java/de/intevation/artifactdatabase/rest/CreateResource.java: |
83a059c204f8
Connected /create with artifact db.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
25
diff
changeset
|
80 Forward call to ArtifactDatabase, do some error handling. |
83a059c204f8
Connected /create with artifact db.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
25
diff
changeset
|
81 |
83a059c204f8
Connected /create with artifact db.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
25
diff
changeset
|
82 * artifact-database/src/main/java/de/intevation/artifactdatabase/Backend.java: |
83a059c204f8
Connected /create with artifact db.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
25
diff
changeset
|
83 Treat problems with database errors more gracefully. |
83a059c204f8
Connected /create with artifact db.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
25
diff
changeset
|
84 |
83a059c204f8
Connected /create with artifact db.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
25
diff
changeset
|
85 * contrib/run.sh: Added dependencies to common-pool and common-dbcp. |
83a059c204f8
Connected /create with artifact db.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
25
diff
changeset
|
86 |
83a059c204f8
Connected /create with artifact db.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
25
diff
changeset
|
87 * artifact-database/doc/data/create-artifact.xml: New. example data set to |
83a059c204f8
Connected /create with artifact db.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
25
diff
changeset
|
88 create an artifact. Usage |
83a059c204f8
Connected /create with artifact db.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
25
diff
changeset
|
89 |
83a059c204f8
Connected /create with artifact db.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
25
diff
changeset
|
90 $ curl --data-binary @doc/data/create-artifact.xml -D - http://localhost:8181/create |
83a059c204f8
Connected /create with artifact db.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
25
diff
changeset
|
91 |
83a059c204f8
Connected /create with artifact db.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
25
diff
changeset
|
92 2009-09-10 Sascha L. Teichmann <sascha.teichmann@intevation.de> |
25
ccc6aae25585
Moved some XPath stuff from Config into XMLUtils.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
24
diff
changeset
|
93 |
ccc6aae25585
Moved some XPath stuff from Config into XMLUtils.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
24
diff
changeset
|
94 * artifact-database/src/main/java/de/intevation/artifactdatabase/rest/FactoriesResource.java: |
ccc6aae25585
Moved some XPath stuff from Config into XMLUtils.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
24
diff
changeset
|
95 Removed needless import. |
ccc6aae25585
Moved some XPath stuff from Config into XMLUtils.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
24
diff
changeset
|
96 |
ccc6aae25585
Moved some XPath stuff from Config into XMLUtils.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
24
diff
changeset
|
97 * artifact-database/src/main/java/de/intevation/artifactdatabase/Config.java, |
ccc6aae25585
Moved some XPath stuff from Config into XMLUtils.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
24
diff
changeset
|
98 artifact-database/src/main/java/de/intevation/artifactdatabase/XMLUtils.java: |
ccc6aae25585
Moved some XPath stuff from Config into XMLUtils.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
24
diff
changeset
|
99 Moved some XPath stuff from Config into XMLUtils. |
ccc6aae25585
Moved some XPath stuff from Config into XMLUtils.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
24
diff
changeset
|
100 |
26
83a059c204f8
Connected /create with artifact db.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
25
diff
changeset
|
101 2009-09-10 Sascha L. Teichmann <sascha.teichmann@intevation.de> |
24
d5dc2900392f
* Added callback parameter to Artifact.setup()
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
23
diff
changeset
|
102 |
d5dc2900392f
* Added callback parameter to Artifact.setup()
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
23
diff
changeset
|
103 * artifacts/src/main/java/de/intevation/artifacts/Artifact.java(setup): Added |
d5dc2900392f
* Added callback parameter to Artifact.setup()
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
23
diff
changeset
|
104 callback parameter in form of the creating factory. |
d5dc2900392f
* Added callback parameter to Artifact.setup()
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
23
diff
changeset
|
105 |
d5dc2900392f
* Added callback parameter to Artifact.setup()
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
23
diff
changeset
|
106 * artifact-database/src/main/java/de/intevation/artifactdatabase/Backend.java, |
d5dc2900392f
* Added callback parameter to Artifact.setup()
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
23
diff
changeset
|
107 artifact-database/src/main/java/de/intevation/artifactdatabase/DefaultArtifact.java: |
d5dc2900392f
* Added callback parameter to Artifact.setup()
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
23
diff
changeset
|
108 Adjusted to match new Artifact interface. |
d5dc2900392f
* Added callback parameter to Artifact.setup()
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
23
diff
changeset
|
109 |
d5dc2900392f
* Added callback parameter to Artifact.setup()
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
23
diff
changeset
|
110 * artifact-database/src/main/java/de/intevation/artifactdatabase/DefaultArtifactFactory.java: |
d5dc2900392f
* Added callback parameter to Artifact.setup()
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
23
diff
changeset
|
111 Call artifact.setup() with this. |
d5dc2900392f
* Added callback parameter to Artifact.setup()
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
23
diff
changeset
|
112 |
d5dc2900392f
* Added callback parameter to Artifact.setup()
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
23
diff
changeset
|
113 * artifact-database/src/main/java/de/intevation/artifactdatabase/DefaultArtifact.java: |
d5dc2900392f
* Added callback parameter to Artifact.setup()
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
23
diff
changeset
|
114 Removed namespace stuff. |
d5dc2900392f
* Added callback parameter to Artifact.setup()
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
23
diff
changeset
|
115 |
d5dc2900392f
* Added callback parameter to Artifact.setup()
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
23
diff
changeset
|
116 * artifacts/src/main/java/de/intevation/artifacts/ArtifactNamespaceContext.java: |
d5dc2900392f
* Added callback parameter to Artifact.setup()
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
23
diff
changeset
|
117 Created namespace stuff, need for XPath for e.g. |
d5dc2900392f
* Added callback parameter to Artifact.setup()
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
23
diff
changeset
|
118 |
d5dc2900392f
* Added callback parameter to Artifact.setup()
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
23
diff
changeset
|
119 * artifact-database/src/main/java/de/intevation/artifactdatabase/rest/FactoriesResource.java: |
d5dc2900392f
* Added callback parameter to Artifact.setup()
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
23
diff
changeset
|
120 Use new namespace stuff. |
d5dc2900392f
* Added callback parameter to Artifact.setup()
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
23
diff
changeset
|
121 |
d5dc2900392f
* Added callback parameter to Artifact.setup()
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
23
diff
changeset
|
122 * artifact-database/src/main/java/de/intevation/artifactdatabase/rest/Standalone.java: |
d5dc2900392f
* Added callback parameter to Artifact.setup()
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
23
diff
changeset
|
123 Added author. |
d5dc2900392f
* Added callback parameter to Artifact.setup()
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
23
diff
changeset
|
124 |
23
00596a591a2f
Added possibibilty to ceate XPaths with namespace contextes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
22
diff
changeset
|
125 2009-09-09 Sascha L. Teichmann <sascha.teichmann@intevation.de> |
00596a591a2f
Added possibibilty to ceate XPaths with namespace contextes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
22
diff
changeset
|
126 |
00596a591a2f
Added possibibilty to ceate XPaths with namespace contextes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
22
diff
changeset
|
127 * artifact-database/src/main/java/de/intevation/artifactdatabase/XMLUtils.java: |
00596a591a2f
Added possibibilty to ceate XPaths with namespace contextes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
22
diff
changeset
|
128 Added method newXPath() to create XPaths with namespace binding. |
00596a591a2f
Added possibibilty to ceate XPaths with namespace contextes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
22
diff
changeset
|
129 |
00596a591a2f
Added possibibilty to ceate XPaths with namespace contextes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
22
diff
changeset
|
130 * artifact-database/src/main/java/de/intevation/artifactdatabase/Config.java: |
00596a591a2f
Added possibibilty to ceate XPaths with namespace contextes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
22
diff
changeset
|
131 Uses new method from XMLUtils. |
00596a591a2f
Added possibibilty to ceate XPaths with namespace contextes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
22
diff
changeset
|
132 |
22
72abee95fd64
Removed meta data from resources.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
21
diff
changeset
|
133 2009-09-09 Sascha L. Teichmann <sascha.teichmann@intevation.de> |
72abee95fd64
Removed meta data from resources.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
21
diff
changeset
|
134 |
72abee95fd64
Removed meta data from resources.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
21
diff
changeset
|
135 * trunk/artifact-database/src/main/java/de/intevation/artifactdatabase/rest/FactoriesResource.java, |
72abee95fd64
Removed meta data from resources.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
21
diff
changeset
|
136 trunk/artifact-database/src/main/java/de/intevation/artifactdatabase/rest/CreateResource.java: |
72abee95fd64
Removed meta data from resources.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
21
diff
changeset
|
137 Removed meta data from resources. They prevented serving the right results. |
72abee95fd64
Removed meta data from resources.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
21
diff
changeset
|
138 |
72abee95fd64
Removed meta data from resources.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
21
diff
changeset
|
139 * artifact-database/src/main/java/de/intevation/artifactdatabase/Backend.java: |
72abee95fd64
Removed meta data from resources.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
21
diff
changeset
|
140 Removed needless import. |
72abee95fd64
Removed meta data from resources.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
21
diff
changeset
|
141 |
21
1cd268e07e44
Added resource to create artifacts to web server.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
20
diff
changeset
|
142 2009-09-09 Sascha L. Teichmann <sascha.teichmann@intevation.de> |
1cd268e07e44
Added resource to create artifacts to web server.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
20
diff
changeset
|
143 |
1cd268e07e44
Added resource to create artifacts to web server.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
20
diff
changeset
|
144 * artifact-database/src/main/java/de/intevation/artifactdatabase/rest/CreateResource.java: |
1cd268e07e44
Added resource to create artifacts to web server.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
20
diff
changeset
|
145 New. Resource to create an artifact. Not working on artifact database yet. |
1cd268e07e44
Added resource to create artifacts to web server.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
20
diff
changeset
|
146 |
1cd268e07e44
Added resource to create artifacts to web server.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
20
diff
changeset
|
147 * artifact-database/src/main/java/de/intevation/artifactdatabase/rest/RestApp.java: |
1cd268e07e44
Added resource to create artifacts to web server.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
20
diff
changeset
|
148 Attached create to web server. |
1cd268e07e44
Added resource to create artifacts to web server.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
20
diff
changeset
|
149 |
1cd268e07e44
Added resource to create artifacts to web server.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
20
diff
changeset
|
150 * artifact-database/src/main/java/de/intevation/artifactdatabase/rest/FactoriesResource.java: |
1cd268e07e44
Added resource to create artifacts to web server.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
20
diff
changeset
|
151 Added meta data to Get annotation. |
1cd268e07e44
Added resource to create artifacts to web server.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
20
diff
changeset
|
152 |
20
ff666592c1c3
Added factory listing '/factories' to web app.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
19
diff
changeset
|
153 2009-09-09 Sascha L. Teichmann <sascha.teichmann@intevation.de> |
ff666592c1c3
Added factory listing '/factories' to web app.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
19
diff
changeset
|
154 |
ff666592c1c3
Added factory listing '/factories' to web app.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
19
diff
changeset
|
155 * artifact-database/pom.xml: Added dependency to restlet.ext.xml |
ff666592c1c3
Added factory listing '/factories' to web app.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
19
diff
changeset
|
156 for XML handling in representations. |
ff666592c1c3
Added factory listing '/factories' to web app.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
19
diff
changeset
|
157 |
ff666592c1c3
Added factory listing '/factories' to web app.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
19
diff
changeset
|
158 * contrib/run.sh: Adjusted to fit new dependency. |
ff666592c1c3
Added factory listing '/factories' to web app.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
19
diff
changeset
|
159 |
ff666592c1c3
Added factory listing '/factories' to web app.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
19
diff
changeset
|
160 * artifact-database/src/main/java/de/intevation/artifactdatabase/XMLUtils.java: |
ff666592c1c3
Added factory listing '/factories' to web app.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
19
diff
changeset
|
161 New. Handle some boiler plate XML stuff. Move more stuff of this kind |
ff666592c1c3
Added factory listing '/factories' to web app.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
19
diff
changeset
|
162 into this file. |
ff666592c1c3
Added factory listing '/factories' to web app.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
19
diff
changeset
|
163 |
ff666592c1c3
Added factory listing '/factories' to web app.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
19
diff
changeset
|
164 * TODO: Added remark to move more XML stuff into XMLUtils. |
ff666592c1c3
Added factory listing '/factories' to web app.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
19
diff
changeset
|
165 |
ff666592c1c3
Added factory listing '/factories' to web app.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
19
diff
changeset
|
166 * artifact-database/src/main/java/de/intevation/artifactdatabase/rest/Standalone.java: |
ff666592c1c3
Added factory listing '/factories' to web app.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
19
diff
changeset
|
167 Tell at startup on which port we are listing. |
ff666592c1c3
Added factory listing '/factories' to web app.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
19
diff
changeset
|
168 |
ff666592c1c3
Added factory listing '/factories' to web app.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
19
diff
changeset
|
169 * artifact-database/src/main/java/de/intevation/artifactdatabase/rest/FactoriesResource.java: |
ff666592c1c3
Added factory listing '/factories' to web app.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
19
diff
changeset
|
170 Representation to list the available factories. |
ff666592c1c3
Added factory listing '/factories' to web app.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
19
diff
changeset
|
171 |
ff666592c1c3
Added factory listing '/factories' to web app.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
19
diff
changeset
|
172 * artifact-database/src/main/java/de/intevation/artifactdatabase/rest/RestApp.java: |
ff666592c1c3
Added factory listing '/factories' to web app.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
19
diff
changeset
|
173 Attach new factory listing to web app. |
ff666592c1c3
Added factory listing '/factories' to web app.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
19
diff
changeset
|
174 |
19
1259d192e3c3
* New configuration based on config directory
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
18
diff
changeset
|
175 2009-09-09 Sascha L. Teichmann <sascha.teichmann@intevation.de> |
18
63a8aa276693
NameSpaceURL and NamespacePrefix added
Tim Englich <tim.englich@intevation.de>
parents:
17
diff
changeset
|
176 |
19
1259d192e3c3
* New configuration based on config directory
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
18
diff
changeset
|
177 * artifact-database/doc/artifactdb-example-conf.xml: removed |
1259d192e3c3
* New configuration based on config directory
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
18
diff
changeset
|
178 * artifact-database/doc/example-conf/conf.xml: Re-added here. |
1259d192e3c3
* New configuration based on config directory
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
18
diff
changeset
|
179 |
1259d192e3c3
* New configuration based on config directory
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
18
diff
changeset
|
180 The configuration is now found in a subdirectory set by the |
1259d192e3c3
* New configuration based on config directory
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
18
diff
changeset
|
181 system property 'artifact.database.dir'. If this property is |
1259d192e3c3
* New configuration based on config directory
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
18
diff
changeset
|
182 not set '~/.artitactdb' is used. This directory should contain |
1259d192e3c3
* New configuration based on config directory
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
18
diff
changeset
|
183 a file 'conf.xml' with the configuration details. |
1259d192e3c3
* New configuration based on config directory
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
18
diff
changeset
|
184 If the artifact database is started as a standalone the config |
1259d192e3c3
* New configuration based on config directory
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
18
diff
changeset
|
185 directory is searched for 'log4j.properties' to configure the |
1259d192e3c3
* New configuration based on config directory
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
18
diff
changeset
|
186 logging. |
1259d192e3c3
* New configuration based on config directory
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
18
diff
changeset
|
187 The H2 database is also search in this directory with the |
1259d192e3c3
* New configuration based on config directory
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
18
diff
changeset
|
188 name 'artifacts.db' if the connection url in config.xml is |
1259d192e3c3
* New configuration based on config directory
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
18
diff
changeset
|
189 not overwritten. |
1259d192e3c3
* New configuration based on config directory
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
18
diff
changeset
|
190 |
1259d192e3c3
* New configuration based on config directory
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
18
diff
changeset
|
191 * artifact-database/src/main/java/de/intevation/artifactdatabase/Config.java: |
1259d192e3c3
* New configuration based on config directory
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
18
diff
changeset
|
192 Refactored a bit to follow the new configuration policy. |
1259d192e3c3
* New configuration based on config directory
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
18
diff
changeset
|
193 |
1259d192e3c3
* New configuration based on config directory
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
18
diff
changeset
|
194 * artifact-database/src/main/java/de/intevation/artifactdatabase/DBConnection.java: |
1259d192e3c3
* New configuration based on config directory
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
18
diff
changeset
|
195 Build default connection url as described. |
1259d192e3c3
* New configuration based on config directory
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
18
diff
changeset
|
196 |
1259d192e3c3
* New configuration based on config directory
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
18
diff
changeset
|
197 * artifact-database/doc/example-conf/log4j.properties: New. |
1259d192e3c3
* New configuration based on config directory
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
18
diff
changeset
|
198 example logging config |
1259d192e3c3
* New configuration based on config directory
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
18
diff
changeset
|
199 |
1259d192e3c3
* New configuration based on config directory
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
18
diff
changeset
|
200 * artifact-database/src/main/java/de/intevation/artifactdatabase/FactoryBootstrap.java: |
1259d192e3c3
* New configuration based on config directory
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
18
diff
changeset
|
201 Added some more logging infos. |
1259d192e3c3
* New configuration based on config directory
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
18
diff
changeset
|
202 |
1259d192e3c3
* New configuration based on config directory
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
18
diff
changeset
|
203 * artifact-database/src/main/java/de/intevation/artifactdatabase/App.java: |
1259d192e3c3
* New configuration based on config directory
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
18
diff
changeset
|
204 Load the log4j configuration at startup and starts a REST standalone web server. |
1259d192e3c3
* New configuration based on config directory
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
18
diff
changeset
|
205 |
1259d192e3c3
* New configuration based on config directory
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
18
diff
changeset
|
206 * artifact-database/src/main/java/de/intevation/artifactdatabase/rest: New. |
1259d192e3c3
* New configuration based on config directory
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
18
diff
changeset
|
207 Package for REST binding. |
1259d192e3c3
* New configuration based on config directory
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
18
diff
changeset
|
208 |
1259d192e3c3
* New configuration based on config directory
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
18
diff
changeset
|
209 * artifact-database/src/main/java/de/intevation/artifactdatabase/rest/Standalone.java: |
1259d192e3c3
* New configuration based on config directory
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
18
diff
changeset
|
210 Convenience wrapper to start a standalone REST web server. |
1259d192e3c3
* New configuration based on config directory
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
18
diff
changeset
|
211 |
1259d192e3c3
* New configuration based on config directory
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
18
diff
changeset
|
212 * artifact-database/src/main/java/de/intevation/artifactdatabase/rest/RestApp.java: |
1259d192e3c3
* New configuration based on config directory
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
18
diff
changeset
|
213 Concrete REST application. TODO: attach restlets to interact with artifact database. |
1259d192e3c3
* New configuration based on config directory
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
18
diff
changeset
|
214 |
1259d192e3c3
* New configuration based on config directory
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
18
diff
changeset
|
215 * contrib/run.sh: Little start script to launch artifact database for test |
1259d192e3c3
* New configuration based on config directory
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
18
diff
changeset
|
216 purpose from classes without the need to build packages. |
1259d192e3c3
* New configuration based on config directory
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
18
diff
changeset
|
217 Background: The maven exec:exec goal does not work consistently for me (slt). |
1259d192e3c3
* New configuration based on config directory
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
18
diff
changeset
|
218 At home it does, at work it doe not. Anyway. Usage: |
1259d192e3c3
* New configuration based on config directory
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
18
diff
changeset
|
219 |
1259d192e3c3
* New configuration based on config directory
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
18
diff
changeset
|
220 $ ./contrib/run.sh \ |
1259d192e3c3
* New configuration based on config directory
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
18
diff
changeset
|
221 -Dartifact.database.dir=artifact-database/doc/example-conf/ \ |
1259d192e3c3
* New configuration based on config directory
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
18
diff
changeset
|
222 de.intevation.artifactdatabase.App |
1259d192e3c3
* New configuration based on config directory
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
18
diff
changeset
|
223 |
1259d192e3c3
* New configuration based on config directory
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
18
diff
changeset
|
224 2009-09-08 Tim Englich <tim.englich@intevation.de> |
1259d192e3c3
* New configuration based on config directory
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
18
diff
changeset
|
225 |
1259d192e3c3
* New configuration based on config directory
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
18
diff
changeset
|
226 * src/main/java/de/intevation/artifactdatabase/DefaultArtifact.java : Edited |
1259d192e3c3
* New configuration based on config directory
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
18
diff
changeset
|
227 Constants for Namespace-URL and Namespace-Prefix added |
18
63a8aa276693
NameSpaceURL and NamespacePrefix added
Tim Englich <tim.englich@intevation.de>
parents:
17
diff
changeset
|
228 |
17
5a6b6a3debc7
Integrated logging into artifact database.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
16
diff
changeset
|
229 2009-09-08 Sascha L. Teichmann <sascha.teichmann@intevation.de> |
5a6b6a3debc7
Integrated logging into artifact database.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
16
diff
changeset
|
230 |
5a6b6a3debc7
Integrated logging into artifact database.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
16
diff
changeset
|
231 * artifact-database/src/main/java/de/intevation/artifactdatabase/SQL.java, |
5a6b6a3debc7
Integrated logging into artifact database.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
16
diff
changeset
|
232 artifact-database/src/main/java/de/intevation/artifactdatabase/DefaultArtifact.java, |
5a6b6a3debc7
Integrated logging into artifact database.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
16
diff
changeset
|
233 artifact-database/src/main/java/de/intevation/artifactdatabase/Config.java, |
5a6b6a3debc7
Integrated logging into artifact database.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
16
diff
changeset
|
234 artifact-database/src/main/java/de/intevation/artifactdatabase/FactoryBootstrap.java, |
5a6b6a3debc7
Integrated logging into artifact database.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
16
diff
changeset
|
235 artifact-database/src/main/java/de/intevation/artifactdatabase/Backend.java, |
5a6b6a3debc7
Integrated logging into artifact database.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
16
diff
changeset
|
236 artifact-database/src/main/java/de/intevation/artifactdatabase/DefaultArtifactFactory.java: |
5a6b6a3debc7
Integrated logging into artifact database.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
16
diff
changeset
|
237 Integrated log4j |
5a6b6a3debc7
Integrated logging into artifact database.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
16
diff
changeset
|
238 |
5a6b6a3debc7
Integrated logging into artifact database.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
16
diff
changeset
|
239 * artifact-database/pom.xml: Added dependency to log4j |
5a6b6a3debc7
Integrated logging into artifact database.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
16
diff
changeset
|
240 |
5a6b6a3debc7
Integrated logging into artifact database.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
16
diff
changeset
|
241 * TODO: Removed remark to integrate logging. |
5a6b6a3debc7
Integrated logging into artifact database.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
16
diff
changeset
|
242 |
16
635310c6a20e
Bug fixed in in XPath Expression.
Tim Englich <tim.englich@intevation.de>
parents:
15
diff
changeset
|
243 2009-09-07 Tim Englich <tim.englich@intevation.de> |
635310c6a20e
Bug fixed in in XPath Expression.
Tim Englich <tim.englich@intevation.de>
parents:
15
diff
changeset
|
244 |
17
5a6b6a3debc7
Integrated logging into artifact database.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
16
diff
changeset
|
245 * src/main/java/de/intevation/artifactdatabase/FactoryBootstrap.java: edited |
5a6b6a3debc7
Integrated logging into artifact database.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
16
diff
changeset
|
246 Bug fixed in XPath Expression. Now the Nodes and not the Text of the Nodes will |
5a6b6a3debc7
Integrated logging into artifact database.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
16
diff
changeset
|
247 be used instantiating the ArtifactFactory. |
5a6b6a3debc7
Integrated logging into artifact database.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
16
diff
changeset
|
248 |
15
9ad6ec2d09c3
Implemented restoring artifacts from database.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
14
diff
changeset
|
249 2009-09-07 Sascha L. Teichmann <sascha.teichmann@intevation.de> |
9ad6ec2d09c3
Implemented restoring artifacts from database.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
14
diff
changeset
|
250 |
9ad6ec2d09c3
Implemented restoring artifacts from database.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
14
diff
changeset
|
251 * artifact-database/src/main/java/de/intevation/artifactdatabase/Backend.java: |
9ad6ec2d09c3
Implemented restoring artifacts from database.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
14
diff
changeset
|
252 Implemented loading of artifacts from database. If the last access of an |
9ad6ec2d09c3
Implemented restoring artifacts from database.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
14
diff
changeset
|
253 artifact is too long ago for its time to life, null is returned. |
9ad6ec2d09c3
Implemented restoring artifacts from database.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
14
diff
changeset
|
254 |
9ad6ec2d09c3
Implemented restoring artifacts from database.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
14
diff
changeset
|
255 * TODO: Added remark to implement a "killer" thread which periodically cleans the |
9ad6ec2d09c3
Implemented restoring artifacts from database.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
14
diff
changeset
|
256 database from outdated artifacts and calls the endOfLife() method on those. |
9ad6ec2d09c3
Implemented restoring artifacts from database.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
14
diff
changeset
|
257 |
14
0d16d1bb2df0
Initial checkin of artigact persistents back by database.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
13
diff
changeset
|
258 2009-09-07 Sascha L. Teichmann <sascha.teichmann@intevation.de> |
0d16d1bb2df0
Initial checkin of artigact persistents back by database.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
13
diff
changeset
|
259 |
0d16d1bb2df0
Initial checkin of artigact persistents back by database.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
13
diff
changeset
|
260 * artifact-database/src/main/java/de/intevation/artifactdatabase/SQL.java: |
0d16d1bb2df0
Initial checkin of artigact persistents back by database.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
13
diff
changeset
|
261 Properties wrapper for SQL statements. The properties are looked up |
0d16d1bb2df0
Initial checkin of artigact persistents back by database.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
13
diff
changeset
|
262 in resorces /sql/DRIVER.properties (DRIVER is the name of the db driver class, |
0d16d1bb2df0
Initial checkin of artigact persistents back by database.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
13
diff
changeset
|
263 lowercased and '.' replaced by '-'. 'org.h2.Driver' turns to |
0d16d1bb2df0
Initial checkin of artigact persistents back by database.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
13
diff
changeset
|
264 'org-h2-driver.properties', e.g. |
0d16d1bb2df0
Initial checkin of artigact persistents back by database.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
13
diff
changeset
|
265 |
0d16d1bb2df0
Initial checkin of artigact persistents back by database.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
13
diff
changeset
|
266 * artifact-database/src/main/resources/sql/org-h2-driver.properties: |
0d16d1bb2df0
Initial checkin of artigact persistents back by database.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
13
diff
changeset
|
267 SQL statements for H2 database. |
0d16d1bb2df0
Initial checkin of artigact persistents back by database.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
13
diff
changeset
|
268 |
0d16d1bb2df0
Initial checkin of artigact persistents back by database.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
13
diff
changeset
|
269 * artifact-database/src/main/java/de/intevation/artifactdatabase/Backend.java: |
0d16d1bb2df0
Initial checkin of artigact persistents back by database.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
13
diff
changeset
|
270 Artifacts are proxies/wrapped by an special Artifact implementation |
0d16d1bb2df0
Initial checkin of artigact persistents back by database.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
13
diff
changeset
|
271 to bound db activities transparentely to the Artifact. XXX: It has |
0d16d1bb2df0
Initial checkin of artigact persistents back by database.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
13
diff
changeset
|
272 to be evaluated if a more direct concept like extending the Artifact API |
0d16d1bb2df0
Initial checkin of artigact persistents back by database.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
13
diff
changeset
|
273 to store itself would be more robust for future implementations. |
0d16d1bb2df0
Initial checkin of artigact persistents back by database.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
13
diff
changeset
|
274 TODO: Loading Artifact from db is not implemented yet. |
0d16d1bb2df0
Initial checkin of artigact persistents back by database.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
13
diff
changeset
|
275 |
13
0d6badf6af42
Added not yet working backend to artifact database.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
11
diff
changeset
|
276 2009-09-06 Sascha L. Teichmann <sascha.teichmann@intevation.de> |
0d6badf6af42
Added not yet working backend to artifact database.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
11
diff
changeset
|
277 |
0d6badf6af42
Added not yet working backend to artifact database.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
11
diff
changeset
|
278 * artifact-database/src/main/java/de/intevation/artifactdatabase/Backend.java: |
0d6badf6af42
Added not yet working backend to artifact database.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
11
diff
changeset
|
279 New. Used to wrap database presentations of artifacts into artifacts. |
0d6badf6af42
Added not yet working backend to artifact database.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
11
diff
changeset
|
280 |
0d6badf6af42
Added not yet working backend to artifact database.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
11
diff
changeset
|
281 * artifact-database/src/main/java/de/intevation/artifactdatabase/ArtifactDatabaseImpl.java: |
0d6badf6af42
Added not yet working backend to artifact database.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
11
diff
changeset
|
282 New. Implements a ArtifactDatabase backed by Backend. |
0d6badf6af42
Added not yet working backend to artifact database.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
11
diff
changeset
|
283 |
0d6badf6af42
Added not yet working backend to artifact database.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
11
diff
changeset
|
284 * artifact-database/src/main/java/de/intevation/artifactdatabase/Config.java: |
0d6badf6af42
Added not yet working backend to artifact database.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
11
diff
changeset
|
285 Removed empty last line. |
0d6badf6af42
Added not yet working backend to artifact database.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
11
diff
changeset
|
286 |
0d6badf6af42
Added not yet working backend to artifact database.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
11
diff
changeset
|
287 * artifact-database/src/main/java/de/intevation/artifactdatabase/App.java: |
0d6badf6af42
Added not yet working backend to artifact database.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
11
diff
changeset
|
288 Wired together Backend, ArtifactDatabaseImpl and FactoryBootstrap. |
0d6badf6af42
Added not yet working backend to artifact database.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
11
diff
changeset
|
289 |
11
af07d004d320
Fixed typo in xpath expression.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
10
diff
changeset
|
290 2009-09-06 Sascha L. Teichmann <sascha.teichmann@intevation.de> |
af07d004d320
Fixed typo in xpath expression.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
10
diff
changeset
|
291 |
af07d004d320
Fixed typo in xpath expression.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
10
diff
changeset
|
292 * artifact-database/src/main/java/de/intevation/artifactdatabase/DBConnection.java: |
af07d004d320
Fixed typo in xpath expression.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
10
diff
changeset
|
293 Typo in XPath expression. |
af07d004d320
Fixed typo in xpath expression.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
10
diff
changeset
|
294 |
10
e8626caac353
* Made Artifact life cycle symmetric: setup/endOfLife.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
9
diff
changeset
|
295 2009-09-06 Sascha L. Teichmann <sascha.teichmann@intevation.de> |
e8626caac353
* Made Artifact life cycle symmetric: setup/endOfLife.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
9
diff
changeset
|
296 |
e8626caac353
* Made Artifact life cycle symmetric: setup/endOfLife.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
9
diff
changeset
|
297 * artifacts/src/main/java/de/intevation/artifacts/Artifact.java(setup): |
e8626caac353
* Made Artifact life cycle symmetric: setup/endOfLife.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
9
diff
changeset
|
298 Added the setup() method to have symmetric counter part to endOfLife(). |
e8626caac353
* Made Artifact life cycle symmetric: setup/endOfLife.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
9
diff
changeset
|
299 |
e8626caac353
* Made Artifact life cycle symmetric: setup/endOfLife.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
9
diff
changeset
|
300 * artifacts/src/main/java/de/intevation/artifacts/ArtifactFactory.java(timeToLiveUntouched): |
e8626caac353
* Made Artifact life cycle symmetric: setup/endOfLife.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
9
diff
changeset
|
301 Added this method to let the factory decide how long an artifact should live in ms. |
e8626caac353
* Made Artifact life cycle symmetric: setup/endOfLife.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
9
diff
changeset
|
302 This is not a part of the Artifact itself because this is only evaluated once when |
e8626caac353
* Made Artifact life cycle symmetric: setup/endOfLife.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
9
diff
changeset
|
303 the artifact is created. |
e8626caac353
* Made Artifact life cycle symmetric: setup/endOfLife.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
9
diff
changeset
|
304 |
e8626caac353
* Made Artifact life cycle symmetric: setup/endOfLife.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
9
diff
changeset
|
305 * artifact-database/src/main/java/de/intevation/artifactdatabase/DefaultArtifact.java: |
e8626caac353
* Made Artifact life cycle symmetric: setup/endOfLife.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
9
diff
changeset
|
306 New. Simple base class implementation of the Artifact interface. |
e8626caac353
* Made Artifact life cycle symmetric: setup/endOfLife.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
9
diff
changeset
|
307 |
e8626caac353
* Made Artifact life cycle symmetric: setup/endOfLife.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
9
diff
changeset
|
308 * artifact-database/src/main/java/de/intevation/artifactdatabase/DefaultArtifactFactory.java: |
e8626caac353
* Made Artifact life cycle symmetric: setup/endOfLife.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
9
diff
changeset
|
309 New. Simple base class implementation of the ArtifactFactory interface. When setup() |
e8626caac353
* Made Artifact life cycle symmetric: setup/endOfLife.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
9
diff
changeset
|
310 on instances of this class is called, it pull ttl, name, description and |
e8626caac353
* Made Artifact life cycle symmetric: setup/endOfLife.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
9
diff
changeset
|
311 the artifact class name from the node given. See artifactdb-example-conf.xml |
e8626caac353
* Made Artifact life cycle symmetric: setup/endOfLife.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
9
diff
changeset
|
312 for examples. |
e8626caac353
* Made Artifact life cycle symmetric: setup/endOfLife.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
9
diff
changeset
|
313 |
e8626caac353
* Made Artifact life cycle symmetric: setup/endOfLife.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
9
diff
changeset
|
314 * artifact-database/pom.xml: Cleaned up XML. |
e8626caac353
* Made Artifact life cycle symmetric: setup/endOfLife.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
9
diff
changeset
|
315 Introduced dependency to apache commons dbcp, used for pooling of the |
e8626caac353
* Made Artifact life cycle symmetric: setup/endOfLife.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
9
diff
changeset
|
316 database connections to artifact db. |
e8626caac353
* Made Artifact life cycle symmetric: setup/endOfLife.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
9
diff
changeset
|
317 Added parameters for the exec:exec goal to make the project |
e8626caac353
* Made Artifact life cycle symmetric: setup/endOfLife.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
9
diff
changeset
|
318 startable without building packages. |
e8626caac353
* Made Artifact life cycle symmetric: setup/endOfLife.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
9
diff
changeset
|
319 |
e8626caac353
* Made Artifact life cycle symmetric: setup/endOfLife.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
9
diff
changeset
|
320 * artifact-database/doc/schema.sql: Removed AUTO_INCREMENT from primary key |
e8626caac353
* Made Artifact life cycle symmetric: setup/endOfLife.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
9
diff
changeset
|
321 to avoid compatibility issues with other non-H2 databases (PostgreSQL, Oracle, ...) |
e8626caac353
* Made Artifact life cycle symmetric: setup/endOfLife.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
9
diff
changeset
|
322 which have no or limited support for generated keys in the JDBC driver. Now |
e8626caac353
* Made Artifact life cycle symmetric: setup/endOfLife.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
9
diff
changeset
|
323 using an explicit sequence. TTL ist now big int to bring the resolution to ms. |
e8626caac353
* Made Artifact life cycle symmetric: setup/endOfLife.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
9
diff
changeset
|
324 |
e8626caac353
* Made Artifact life cycle symmetric: setup/endOfLife.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
9
diff
changeset
|
325 * artifact-database/src/main/java/de/intevation/artifactdatabase/Config.java: |
e8626caac353
* Made Artifact life cycle symmetric: setup/endOfLife.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
9
diff
changeset
|
326 Refactored a bit to make the XPath access function usable on arbitrary XML |
e8626caac353
* Made Artifact life cycle symmetric: setup/endOfLife.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
9
diff
changeset
|
327 documents and parts of. |
e8626caac353
* Made Artifact life cycle symmetric: setup/endOfLife.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
9
diff
changeset
|
328 |
e8626caac353
* Made Artifact life cycle symmetric: setup/endOfLife.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
9
diff
changeset
|
329 * artifact-database/src/main/java/de/intevation/artifactdatabase/DBConnection.java: |
e8626caac353
* Made Artifact life cycle symmetric: setup/endOfLife.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
9
diff
changeset
|
330 New. Exposes DataSource from a apache dbcp connection pool configured by the |
e8626caac353
* Made Artifact life cycle symmetric: setup/endOfLife.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
9
diff
changeset
|
331 global configuration file. See artifactdb-example-conf.xml for examples. |
e8626caac353
* Made Artifact life cycle symmetric: setup/endOfLife.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
9
diff
changeset
|
332 TODO: Write some documentation about this. |
e8626caac353
* Made Artifact life cycle symmetric: setup/endOfLife.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
9
diff
changeset
|
333 |
e8626caac353
* Made Artifact life cycle symmetric: setup/endOfLife.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
9
diff
changeset
|
334 * artifact-database/doc/artifactdb-example-conf.xml: Adjusted to be a more realistic |
e8626caac353
* Made Artifact life cycle symmetric: setup/endOfLife.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
9
diff
changeset
|
335 example config file. Added references to DefaultArtifact/DefaultArtifactFactory and |
e8626caac353
* Made Artifact life cycle symmetric: setup/endOfLife.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
9
diff
changeset
|
336 demonstrate how to configure the connection pool. |
e8626caac353
* Made Artifact life cycle symmetric: setup/endOfLife.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
9
diff
changeset
|
337 |
e8626caac353
* Made Artifact life cycle symmetric: setup/endOfLife.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
9
diff
changeset
|
338 * TODO: Add remark to document the connection file. |
e8626caac353
* Made Artifact life cycle symmetric: setup/endOfLife.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
9
diff
changeset
|
339 |
e8626caac353
* Made Artifact life cycle symmetric: setup/endOfLife.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
9
diff
changeset
|
340 * artifact-database/src/main/java/de/intevation/artifactdatabase/FactoryBootstrap.java: |
e8626caac353
* Made Artifact life cycle symmetric: setup/endOfLife.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
9
diff
changeset
|
341 Do not crash when config does not contain any factories. |
e8626caac353
* Made Artifact life cycle symmetric: setup/endOfLife.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
9
diff
changeset
|
342 |
9
a5a279a0ee35
Laid tracks for artifacts being removed from artifact database.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
7
diff
changeset
|
343 2009-09-04 Sascha L. Teichmann <sascha.teichmann@intevation.de> |
7
f95d9a449215
Insert new Parameter to Setuproutine
Tim Englich <tim.englich@intevation.de>
parents:
6
diff
changeset
|
344 |
9
a5a279a0ee35
Laid tracks for artifacts being removed from artifact database.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
7
diff
changeset
|
345 * artifact-database/src/main/java/de/intevation/artifactdatabase/Config.java (getNodeXPath): |
a5a279a0ee35
Laid tracks for artifacts being removed from artifact database.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
7
diff
changeset
|
346 New method to get a single node from configuration. |
7
f95d9a449215
Insert new Parameter to Setuproutine
Tim Englich <tim.englich@intevation.de>
parents:
6
diff
changeset
|
347 |
9
a5a279a0ee35
Laid tracks for artifacts being removed from artifact database.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
7
diff
changeset
|
348 * artifacts/src/main/java/de/intevation/artifacts/Artifact.java (endOfLife): |
a5a279a0ee35
Laid tracks for artifacts being removed from artifact database.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
7
diff
changeset
|
349 New method called when artifact is going to be removed from artifact data base. |
6
48eb2367de2a
Buildplugins for Maven-Compiler and Maven-Eclipse Plugin integrated.
Tim Englich <tim.englich@intevation.de>
parents:
5
diff
changeset
|
350 |
9
a5a279a0ee35
Laid tracks for artifacts being removed from artifact database.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
7
diff
changeset
|
351 2009-09-04 Tim Englich <tim.englich@intevation.de> |
a5a279a0ee35
Laid tracks for artifacts being removed from artifact database.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
7
diff
changeset
|
352 |
a5a279a0ee35
Laid tracks for artifacts being removed from artifact database.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
7
diff
changeset
|
353 * src/main/java/de/intevation/artifactdatabase/FactoryBootstrap.java (loa, |
a5a279a0ee35
Laid tracks for artifacts being removed from artifact database.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
7
diff
changeset
|
354 * src/main/java/de/intevation/artifacts/ArtifactFactory.java (setup): |
a5a279a0ee35
Laid tracks for artifacts being removed from artifact database.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
7
diff
changeset
|
355 New Parameter for Setop to put the ArtifactFactoryNode into the setup routine. |
a5a279a0ee35
Laid tracks for artifacts being removed from artifact database.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
7
diff
changeset
|
356 |
a5a279a0ee35
Laid tracks for artifacts being removed from artifact database.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
7
diff
changeset
|
357 2009-09-04 Tim Englich <tim.englich@intevation.de> |
a5a279a0ee35
Laid tracks for artifacts being removed from artifact database.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
7
diff
changeset
|
358 |
a5a279a0ee35
Laid tracks for artifacts being removed from artifact database.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
7
diff
changeset
|
359 * pom.xml: Edited |
a5a279a0ee35
Laid tracks for artifacts being removed from artifact database.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
7
diff
changeset
|
360 Buildplugins for Maven-Compiler and Maven-Eclipse Plugin integrated. |
6
48eb2367de2a
Buildplugins for Maven-Compiler and Maven-Eclipse Plugin integrated.
Tim Englich <tim.englich@intevation.de>
parents:
5
diff
changeset
|
361 |
5
8f2de197bce2
Added config to artifact database and modelled bootstap of artifact factories on top of this.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
4
diff
changeset
|
362 2009-09-04 Sascha L. Teichmann <sascha.teichmann@intevation.de> |
8f2de197bce2
Added config to artifact database and modelled bootstap of artifact factories on top of this.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
4
diff
changeset
|
363 |
8f2de197bce2
Added config to artifact database and modelled bootstap of artifact factories on top of this.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
4
diff
changeset
|
364 * artifact-database/doc/artifactdb-example-conf.xml: Example for artifact db |
8f2de197bce2
Added config to artifact database and modelled bootstap of artifact factories on top of this.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
4
diff
changeset
|
365 configuration. |
8f2de197bce2
Added config to artifact database and modelled bootstap of artifact factories on top of this.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
4
diff
changeset
|
366 |
8f2de197bce2
Added config to artifact database and modelled bootstap of artifact factories on top of this.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
4
diff
changeset
|
367 * artifact-database/src/main/java/de/intevation/artifactdatabase/DefaultArtifactContextFactory.java: |
8f2de197bce2
Added config to artifact database and modelled bootstap of artifact factories on top of this.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
4
diff
changeset
|
368 New. Default implementation of ArtifactContextFactory. Creates a DefaultArtifactContext. |
8f2de197bce2
Added config to artifact database and modelled bootstap of artifact factories on top of this.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
4
diff
changeset
|
369 |
8f2de197bce2
Added config to artifact database and modelled bootstap of artifact factories on top of this.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
4
diff
changeset
|
370 * artifact-database/src/main/java/de/intevation/artifactdatabase/DefaultArtifactContext.java: |
8f2de197bce2
Added config to artifact database and modelled bootstap of artifact factories on top of this.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
4
diff
changeset
|
371 New. Default implementation of ArtifactContext. |
8f2de197bce2
Added config to artifact database and modelled bootstap of artifact factories on top of this.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
4
diff
changeset
|
372 |
8f2de197bce2
Added config to artifact database and modelled bootstap of artifact factories on top of this.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
4
diff
changeset
|
373 * artifact-database/src/main/java/de/intevation/artifactdatabase/FactoryBootstrap.java: |
8f2de197bce2
Added config to artifact database and modelled bootstap of artifact factories on top of this.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
4
diff
changeset
|
374 New. Class to bootstrap the context and the artifact factories. |
8f2de197bce2
Added config to artifact database and modelled bootstap of artifact factories on top of this.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
4
diff
changeset
|
375 |
8f2de197bce2
Added config to artifact database and modelled bootstap of artifact factories on top of this.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
4
diff
changeset
|
376 * artifact-database/src/main/java/de/intevation/artifactdatabase/App.java: Bootstrap |
8f2de197bce2
Added config to artifact database and modelled bootstap of artifact factories on top of this.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
4
diff
changeset
|
377 factories. |
8f2de197bce2
Added config to artifact database and modelled bootstap of artifact factories on top of this.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
4
diff
changeset
|
378 |
8f2de197bce2
Added config to artifact database and modelled bootstap of artifact factories on top of this.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
4
diff
changeset
|
379 * artifact-database/src/main/java/de/intevation/artifactdatabase/Config.java: New. |
8f2de197bce2
Added config to artifact database and modelled bootstap of artifact factories on top of this.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
4
diff
changeset
|
380 Loads configuration as XML from a file. The file is specified by the system |
8f2de197bce2
Added config to artifact database and modelled bootstap of artifact factories on top of this.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
4
diff
changeset
|
381 property "artifact.database.config" and defaults to "artifactdb-conf.xml". |
8f2de197bce2
Added config to artifact database and modelled bootstap of artifact factories on top of this.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
4
diff
changeset
|
382 The configuration can be searched via XPath. |
8f2de197bce2
Added config to artifact database and modelled bootstap of artifact factories on top of this.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
4
diff
changeset
|
383 |
8f2de197bce2
Added config to artifact database and modelled bootstap of artifact factories on top of this.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
4
diff
changeset
|
384 * artifact-database/pom.xml: Made de.intevation.artifactdatabase.App the main |
8f2de197bce2
Added config to artifact database and modelled bootstap of artifact factories on top of this.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
4
diff
changeset
|
385 class for start up. |
8f2de197bce2
Added config to artifact database and modelled bootstap of artifact factories on top of this.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
4
diff
changeset
|
386 |
8f2de197bce2
Added config to artifact database and modelled bootstap of artifact factories on top of this.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
4
diff
changeset
|
387 * TODO: Added remark to add logging to artifact database. |
8f2de197bce2
Added config to artifact database and modelled bootstap of artifact factories on top of this.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
4
diff
changeset
|
388 |
4
13a12b607baf
Added mechanism to create an share a global context in the artifact database.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
3
diff
changeset
|
389 2009-09-04 Sascha L. Teichmann <sascha.teichmann@intevation.de> |
13a12b607baf
Added mechanism to create an share a global context in the artifact database.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
3
diff
changeset
|
390 |
13a12b607baf
Added mechanism to create an share a global context in the artifact database.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
3
diff
changeset
|
391 * artifacts/src/main/java/de/intevation/artifacts/ArtifactContextFactory.java: |
13a12b607baf
Added mechanism to create an share a global context in the artifact database.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
3
diff
changeset
|
392 New. Factory for a global context in the artifact data base. Useful to |
13a12b607baf
Added mechanism to create an share a global context in the artifact database.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
3
diff
changeset
|
393 create shared ressources for artifacts like caches et al. |
13a12b607baf
Added mechanism to create an share a global context in the artifact database.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
3
diff
changeset
|
394 |
13a12b607baf
Added mechanism to create an share a global context in the artifact database.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
3
diff
changeset
|
395 * artifacts/src/main/java/de/intevation/artifacts/ArtifactDatabase.java, |
13a12b607baf
Added mechanism to create an share a global context in the artifact database.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
3
diff
changeset
|
396 artifacts/src/main/java/de/intevation/artifacts/ArtifactFactory.java, |
13a12b607baf
Added mechanism to create an share a global context in the artifact database.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
3
diff
changeset
|
397 artifacts/src/main/java/de/intevation/artifacts/ArtifactContextFactory.java, |
13a12b607baf
Added mechanism to create an share a global context in the artifact database.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
3
diff
changeset
|
398 artifacts/src/main/java/de/intevation/artifacts/Artifact.java: Uses the |
13a12b607baf
Added mechanism to create an share a global context in the artifact database.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
3
diff
changeset
|
399 global context more consistent. |
13a12b607baf
Added mechanism to create an share a global context in the artifact database.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
3
diff
changeset
|
400 |
13a12b607baf
Added mechanism to create an share a global context in the artifact database.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
3
diff
changeset
|
401 * artifact-database/doc/schema.sql: Using BINARY instead of BLOB to |
13a12b607baf
Added mechanism to create an share a global context in the artifact database.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
3
diff
changeset
|
402 avoid external files for each artifact blob. See H2 documentation |
13a12b607baf
Added mechanism to create an share a global context in the artifact database.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
3
diff
changeset
|
403 for details. |
13a12b607baf
Added mechanism to create an share a global context in the artifact database.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
3
diff
changeset
|
404 |
3
b1ec257e9d8d
Added dependencies to H2 and restlet.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2
diff
changeset
|
405 2009-09-03 Sascha L. Teichmann <sascha.teichmann@intevation.de> |
b1ec257e9d8d
Added dependencies to H2 and restlet.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2
diff
changeset
|
406 |
b1ec257e9d8d
Added dependencies to H2 and restlet.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2
diff
changeset
|
407 * artifact-database/doc/schema.sql: Schema to store artifacts |
b1ec257e9d8d
Added dependencies to H2 and restlet.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2
diff
changeset
|
408 in H2 databases. |
b1ec257e9d8d
Added dependencies to H2 and restlet.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2
diff
changeset
|
409 |
b1ec257e9d8d
Added dependencies to H2 and restlet.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2
diff
changeset
|
410 * artifact-database/pom.xml: Added dependencies to H2 and |
b1ec257e9d8d
Added dependencies to H2 and restlet.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2
diff
changeset
|
411 restlet. |
b1ec257e9d8d
Added dependencies to H2 and restlet.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2
diff
changeset
|
412 |
b1ec257e9d8d
Added dependencies to H2 and restlet.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2
diff
changeset
|
413 * pom.xml: Added repository to fetch restlet. |
b1ec257e9d8d
Added dependencies to H2 and restlet.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2
diff
changeset
|
414 |
b1ec257e9d8d
Added dependencies to H2 and restlet.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2
diff
changeset
|
415 * README: Describe how to create a H2 database to store artifacts. |
b1ec257e9d8d
Added dependencies to H2 and restlet.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2
diff
changeset
|
416 TODO: Make it more general because description assumes usage of |
b1ec257e9d8d
Added dependencies to H2 and restlet.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2
diff
changeset
|
417 a unixoid system. |
b1ec257e9d8d
Added dependencies to H2 and restlet.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2
diff
changeset
|
418 |
2
141457e0d7b1
Created a new sub project for artifact database server.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
1
diff
changeset
|
419 2009-09-03 Sascha L. Teichmann <sascha.teichmann@intevation.de> |
141457e0d7b1
Created a new sub project for artifact database server.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
1
diff
changeset
|
420 |
141457e0d7b1
Created a new sub project for artifact database server.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
1
diff
changeset
|
421 * artifact-database/**: created new sub project for the artefact |
141457e0d7b1
Created a new sub project for artifact database server.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
1
diff
changeset
|
422 database server. |
141457e0d7b1
Created a new sub project for artifact database server.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
1
diff
changeset
|
423 |
141457e0d7b1
Created a new sub project for artifact database server.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
1
diff
changeset
|
424 * pom.xml: Registered new sub project and made artifacts a |
141457e0d7b1
Created a new sub project for artifact database server.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
1
diff
changeset
|
425 sub project, too. |
141457e0d7b1
Created a new sub project for artifact database server.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
1
diff
changeset
|
426 |
141457e0d7b1
Created a new sub project for artifact database server.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
1
diff
changeset
|
427 * artifacts/pom.xml: Adjusted to make a artifacts a sub project. |
141457e0d7b1
Created a new sub project for artifact database server.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
1
diff
changeset
|
428 |
1
11c82d3f125e
Checked in the central interfaces of the artifact system.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
0
diff
changeset
|
429 2009-09-02 Sascha L. Teichmann <sascha.teichmann@intevation.de> |
11c82d3f125e
Checked in the central interfaces of the artifact system.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
0
diff
changeset
|
430 |
11c82d3f125e
Checked in the central interfaces of the artifact system.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
0
diff
changeset
|
431 * artifacts/src/main/java/de/intevation/artifacts/Artifact.java: |
11c82d3f125e
Checked in the central interfaces of the artifact system.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
0
diff
changeset
|
432 Interface of the central component of the system. |
11c82d3f125e
Checked in the central interfaces of the artifact system.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
0
diff
changeset
|
433 |
11c82d3f125e
Checked in the central interfaces of the artifact system.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
0
diff
changeset
|
434 * artifacts/src/main/java/de/intevation/artifacts/ArtifactDatabase.java: |
11c82d3f125e
Checked in the central interfaces of the artifact system.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
0
diff
changeset
|
435 Central place to store artifacts in. |
11c82d3f125e
Checked in the central interfaces of the artifact system.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
0
diff
changeset
|
436 |
11c82d3f125e
Checked in the central interfaces of the artifact system.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
0
diff
changeset
|
437 * artifacts/src/main/java/de/intevation/artifacts/ArtifactFactory.java: |
11c82d3f125e
Checked in the central interfaces of the artifact system.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
0
diff
changeset
|
438 Factory to build artifacts. Works together with ArtifactDatabase. |
11c82d3f125e
Checked in the central interfaces of the artifact system.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
0
diff
changeset
|
439 |
11c82d3f125e
Checked in the central interfaces of the artifact system.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
0
diff
changeset
|
440 * artifacts/pom.xml: Simple maven file to compile the project. |
11c82d3f125e
Checked in the central interfaces of the artifact system.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
0
diff
changeset
|
441 |
0
458bffbf57c0
Moved misplaced files into trunk
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
442 2009-09-01 Sascha L. Teichmann <sascha.teichmann@intevation.de> |
458bffbf57c0
Moved misplaced files into trunk
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
443 |
458bffbf57c0
Moved misplaced files into trunk
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
444 * README, Changelog, Changes, NEWS, TODO: New. Initial setup |