# HG changeset patch # User Ingo Weinzierl # Date 1264507220 0 # Node ID 78e0e239a0b9d367e25d633035205b4306a31ffe # Parent d2f97cb2ac32407da58817cead02a24e4c778c9c Calculate results after reaching the output state and store them in cache. gnv-artifacts/trunk@629 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r d2f97cb2ac32 -r 78e0e239a0b9 gnv-artifacts/ChangeLog --- a/gnv-artifacts/ChangeLog Tue Jan 26 10:46:33 2010 +0000 +++ b/gnv-artifacts/ChangeLog Tue Jan 26 12:00:20 2010 +0000 @@ -1,3 +1,9 @@ +2010-01-26 Ingo Weinzierl + + * src/main/java/de/intevation/gnv/state/profile/verticalcrosssection/VerticalCrossSectionOutputState.java: + Calculate results after reaching the final state and store them in cache. + This avoids long latencies for chart creation or exports. + 2010-01-26 Ingo Weinzierl Issue162 diff -r d2f97cb2ac32 -r 78e0e239a0b9 gnv-artifacts/src/main/java/de/intevation/gnv/state/profile/verticalcrosssection/VerticalCrossSectionOutputState.java --- a/gnv-artifacts/src/main/java/de/intevation/gnv/state/profile/verticalcrosssection/VerticalCrossSectionOutputState.java Tue Jan 26 10:46:33 2010 +0000 +++ b/gnv-artifacts/src/main/java/de/intevation/gnv/state/profile/verticalcrosssection/VerticalCrossSectionOutputState.java Tue Jan 26 12:00:20 2010 +0000 @@ -126,6 +126,13 @@ this.rangeLabel = "chart.verticalcrosssection.title.yaxis"; } + @Override + public void initialize(String uuid, CallContext callContext) + throws StateException { + super.initialize(uuid, callContext); + + getChartResult(uuid, callContext); + } @Override protected ChartLabels createChartLabels(Locale locale, String uuid) {