Mercurial > dive4elements > framework
comparison Changes @ 53:fecd142b6856 0.1
RELEASE 0.1
artifacts/trunk@201 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Wed, 07 Oct 2009 10:59:19 +0000 |
parents | 458bffbf57c0 |
children | cf9848c85755 |
comparison
equal
deleted
inserted
replaced
52:9293af6b0a0f | 53:fecd142b6856 |
---|---|
1 2009-10-07 RELEASE 0.1 | |
2 | |
3 New: | |
4 | |
5 * Two sub projects: 'artifacts' and 'artifact-database' | |
6 | |
7 - 'artifacts' is a set of generic interfaces modelling | |
8 the workflow to parameterize a process and producing | |
9 outputs. | |
10 | |
11 An artifact is created via factories. It describes | |
12 itself via 'describe', it is parameterized via | |
13 'feed' and brought to new states with 'advance'. | |
14 Once able to produce output 'out' returns the | |
15 requested product. | |
16 | |
17 - 'artifact-database' is the default implemention | |
18 of the workflow described with 'artifact'. | |
19 | |
20 * artifact-database persists artifacts with a H2-database | |
21 [http://www.h2database.com] (default) or a | |
22 PostgeSQL 8.3+ database [http://www.postgresql.org/] (optional) | |
23 | |
24 * artifacts may spawn background threads to copy with long running | |
25 processes. After finishing work they are able to re-synchronize | |
26 themselves to the artifact database. | |
27 | |
28 * artifact-database is accessible via an HTTP REST server | |
29 implemented on top of the Restlet API http://www.restlet.org/ | |
30 It has to be started as a service. Default TCP port: 8181 | |
31 | |
32 HTTP GET '/factories' returns list of available factories. | |
33 HTTP GET '/create' creates new artifact. | |
34 HTTP GET '/artifact/{uuid}' returns a description of an artifact. | |
35 HTTP POST '/artifact/{uuid}' modifies an artifact ('feed', 'advance') | |
36 HTTP POST '/artifact/{uuid}/{out}' delivers output for an artifact. | |
37 | |
38 * artifact-database is configured with as XML file named conf.xml | |
39 (default placement in directory $HOME/.artitactdb, directory | |
40 may be changed with system property "artifact.database.dir") |