comparison gnv-artifacts/ChangeLog @ 1030:c07d9f9a738c

Removed bugs that existed in the caching mechanism (issue264, issue268). gnv-artifacts/trunk@1067 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Thu, 06 May 2010 08:32:56 +0000
parents a5e0384fe464
children cf510bd46188
comparison
equal deleted inserted replaced
1029:a5e0384fe464 1030:c07d9f9a738c
1 2010-05-06 Ingo Weinzierl <ingo.weinzierl@intevation.de>
2
3 Issue264 & Issue268 (Removed bugs in the caching mechanism)
4
5 * src/main/java/de/intevation/gnv/state/DefaultInputData.java: Implemented
6 hashCode() and equals(.) method. The hashCode() method is used while
7 creating hashes for caching elements (see StateBase).
8
9 * src/main/java/de/intevation/gnv/state/StateBase.java: Improved hash
10 creation. The hashes are used as keys for the caching mechanism. The key
11 contains the uuid of the current artifact, the state id and a hash code
12 created by InputData elements. User input is stored in a TreeMap instead
13 of a HashMap, because the elements in a TreeMap are sorted. This is very
14 import for us, because we need a defined order to create equal hashes if
15 the input data elements, uuid and state id are equal.
16
17 * src/main/java/de/intevation/gnv/state/MeasurementState.java: Replaced the
18 HashMap to store user input with a TreeMap which elements are sorted.
19
20 * src/main/java/de/intevation/gnv/state/profile/horizontalcrosssection/HorizontalCrossSectionMeshOutputState.java,
21 src/main/java/de/intevation/gnv/state/profile/verticalcrosssection/VerticalCrossSectionOutputState.java:
22 Added some more debug output that shows the usage of the cache.
23
24 * src/main/java/de/intevation/gnv/state/profile/horizontal/HorizontalProfileMeshCrossOutputState.java:
25 Removed a critical bug that avoided using this product type if no cache
26 have been initialized.
27
28 * src/main/java/de/intevation/gnv/state/OutputStateBase.java: Adjusted
29 getHash(.) method call.
30
1 2010-05-04 Tim Englich <tim.englich@intevation.de> 31 2010-05-04 Tim Englich <tim.englich@intevation.de>
2 32
3 * doc/conf/conf.xml: 33 * doc/conf/conf.xml:
4 Do some Documentation of the Artifact-Database. 34 Do some Documentation of the Artifact-Database.
5 35

http://dive4elements.wald.intevation.org