Mercurial > dive4elements > gnv-client
changeset 536:f1dc3c2f9be7
Calculate results and put them into cache when reaching the output state - avoids latencies.
gnv-artifacts/trunk@634 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Tue, 26 Jan 2010 18:32:12 +0000 |
parents | a162793b6053 |
children | f7f97edf09ba |
files | gnv-artifacts/ChangeLog gnv-artifacts/src/main/java/de/intevation/gnv/state/timeseries/TimeSeriesOutputState.java |
diffstat | 2 files changed, 15 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/gnv-artifacts/ChangeLog Tue Jan 26 17:52:10 2010 +0000 +++ b/gnv-artifacts/ChangeLog Tue Jan 26 18:32:12 2010 +0000 @@ -1,3 +1,9 @@ +2010-01-26 Ingo Weinzierl <ingo.weinzierl@intevation.de> + + * src/main/java/de/intevation/gnv/state/timeseries/TimeSeriesOutputState.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 <ingo.weinzierl@intevation.de> Issue158
--- a/gnv-artifacts/src/main/java/de/intevation/gnv/state/timeseries/TimeSeriesOutputState.java Tue Jan 26 17:52:10 2010 +0000 +++ b/gnv-artifacts/src/main/java/de/intevation/gnv/state/timeseries/TimeSeriesOutputState.java Tue Jan 26 18:32:12 2010 +0000 @@ -184,6 +184,15 @@ super(); } + + @Override + public void initialize(String uuid, CallContext context) + throws StateException + { + getChartResult(uuid, context); + } + + /** * @see de.intevation.gnv.transition.OutputTransition#out(java.lang.String, * java.util.Collection, java.io.OutputStream, java.lang.String,