Mercurial > dive4elements > river
annotate flys-artifacts/doc/conf/artifacts/gaugedischargecurve.xml @ 5779:ebec12def170
Datacage: Add a pool of builders to make it multi threadable.
XML DOM is not thread safe. Therefore the old implementation only allowed one thread
to use the builder at a time. As the complexity of the configuration
has increased over time this has become a bottleneck of the whole application
because it took quiet some time to build a result. Furthermore the builder code path
is visited very frequent. So many concurrent requests were piled up
resulting in long waits for the users.
To mitigate this problem a round robin pool of builders is used now.
Each of the pooled builders has an independent copy of the XML template
and can be run in parallel.
The number of builders is determined by the system property
'flys.datacage.pool.size'. It defaults to 4.
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Sun, 21 Apr 2013 12:48:09 +0200 |
parents | 526fd442e0e5 |
children | a2bdc0f524e8 |
rev | line source |
---|---|
3995
22981503ff81
Add config for the GaugeDischargeCurveArtifact
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
1 <?xml version="1.0" encoding="UTF-8"?> |
22981503ff81
Add config for the GaugeDischargeCurveArtifact
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
2 <artifact name="gaugedischargecurve"> |
22981503ff81
Add config for the GaugeDischargeCurveArtifact
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
3 <states> |
22981503ff81
Add config for the GaugeDischargeCurveArtifact
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
4 <state id="state.gaugedischargecurve.static" description="state.gaugedischargecurve.static" state="de.intevation.flys.artifacts.states.StaticState"> |
22981503ff81
Add config for the GaugeDischargeCurveArtifact
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
5 <data name="river" type="String" /> |
4186
eba517419832
Change reference_gauge paremeter to Long
Björn Ricks <bjoern.ricks@intevation.de>
parents:
4164
diff
changeset
|
6 <data name="reference_gauge" type="Long" /> |
4164
8d3e8cb54e4c
Add data for the gauge name to the GaugeDischargeCurveArtifact
Björn Ricks <bjoern.ricks@intevation.de>
parents:
4026
diff
changeset
|
7 <data name="gauge_name" type="String" /> |
3995
22981503ff81
Add config for the GaugeDischargeCurveArtifact
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
8 <outputmodes> |
4026
c759da78f17a
Fix typo and change out type to chart
Björn Ricks <bjoern.ricks@intevation.de>
parents:
3995
diff
changeset
|
9 <outputmode name="discharge_curve" description="output.discharge_curve" type="chart"> |
3995
22981503ff81
Add config for the GaugeDischargeCurveArtifact
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
10 <facets> |
22981503ff81
Add config for the GaugeDischargeCurveArtifact
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
11 <facet name="gauge_discharge_curve"/> |
22981503ff81
Add config for the GaugeDischargeCurveArtifact
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
12 </facets> |
22981503ff81
Add config for the GaugeDischargeCurveArtifact
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
13 </outputmode> |
4188
dc4087088c0b
Add a new outputmode for an at export in GaugeDischargeCurveArtifact
Björn Ricks <bjoern.ricks@intevation.de>
parents:
4186
diff
changeset
|
14 <outputmode name="computed_dischargecurve_at_export" description="output.computed_dischargecurve_at_export" mime-type="text/plain" type="export"> |
dc4087088c0b
Add a new outputmode for an at export in GaugeDischargeCurveArtifact
Björn Ricks <bjoern.ricks@intevation.de>
parents:
4186
diff
changeset
|
15 <facets> |
4305
8c51c43e59ca
Rename gauge_discharge_curve_at_export facet to at
Björn Ricks <bjoern.ricks@intevation.de>
parents:
4188
diff
changeset
|
16 <facet name="at" description="facet.gauge_discharge_curve_export.at"/> |
4188
dc4087088c0b
Add a new outputmode for an at export in GaugeDischargeCurveArtifact
Björn Ricks <bjoern.ricks@intevation.de>
parents:
4186
diff
changeset
|
17 </facets> |
dc4087088c0b
Add a new outputmode for an at export in GaugeDischargeCurveArtifact
Björn Ricks <bjoern.ricks@intevation.de>
parents:
4186
diff
changeset
|
18 </outputmode> |
4586
319565a48182
Add the csv export to the GaugeDischargeCurveArtifact
Björn Ricks <bjoern.ricks@intevation.de>
parents:
4305
diff
changeset
|
19 <outputmode name="computed_dischargecurve_export" description="output.computed_dischargecurve_export" mime-type="text/plain" type="export"> |
319565a48182
Add the csv export to the GaugeDischargeCurveArtifact
Björn Ricks <bjoern.ricks@intevation.de>
parents:
4305
diff
changeset
|
20 <facets> |
319565a48182
Add the csv export to the GaugeDischargeCurveArtifact
Björn Ricks <bjoern.ricks@intevation.de>
parents:
4305
diff
changeset
|
21 <facet name="csv" description="facet.computed_dischargecurve_export.csv" /> |
4611
526fd442e0e5
Add pdf export to GaugeDischargeCurveArtifact
Björn Ricks <bjoern.ricks@intevation.de>
parents:
4586
diff
changeset
|
22 <facet name="pdf" description="facet.computed_dischargecurve_export.pdf" /> |
4586
319565a48182
Add the csv export to the GaugeDischargeCurveArtifact
Björn Ricks <bjoern.ricks@intevation.de>
parents:
4305
diff
changeset
|
23 </facets> |
319565a48182
Add the csv export to the GaugeDischargeCurveArtifact
Björn Ricks <bjoern.ricks@intevation.de>
parents:
4305
diff
changeset
|
24 </outputmode> |
3995
22981503ff81
Add config for the GaugeDischargeCurveArtifact
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
25 </outputmodes> |
22981503ff81
Add config for the GaugeDischargeCurveArtifact
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
26 </state> |
22981503ff81
Add config for the GaugeDischargeCurveArtifact
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
27 </states> |
22981503ff81
Add config for the GaugeDischargeCurveArtifact
Björn Ricks <bjoern.ricks@intevation.de>
parents:
diff
changeset
|
28 </artifact> |