Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/main/java/de/intevation/gnv/state/profile/horizontal/HorizontalProfileMeshCrossOutputState.java @ 1060:cc4ec127d666
Remove the elements of an outdated state from cache if its endOfLife method is called.
gnv-artifacts/trunk@1143 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Tue, 01 Jun 2010 16:54:21 +0000 |
parents | 50a5ce7a47b7 |
children | f953c9a559d8 |
comparison
equal
deleted
inserted
replaced
1059:174f6eacd595 | 1060:cc4ec127d666 |
---|---|
424 | 424 |
425 @Override | 425 @Override |
426 protected Object getChartResult(String uuid, CallContext callContext) { | 426 protected Object getChartResult(String uuid, CallContext callContext) { |
427 log.debug("HorizontalProfileMeshCrossOutputState.getChartResult"); | 427 log.debug("HorizontalProfileMeshCrossOutputState.getChartResult"); |
428 | 428 |
429 String key = getHash(uuid); | 429 String key = getHash(); |
430 if (CacheFactory.getInstance().isInitialized()) { | 430 if (CacheFactory.getInstance().isInitialized()) { |
431 log.debug("Using cache - key: " + key); | 431 log.debug("Using cache - key: " + key); |
432 net.sf.ehcache.Element value = CacheFactory.getInstance().getCache().get(key); | 432 net.sf.ehcache.Element value = CacheFactory.getInstance().getCache().get(key); |
433 | 433 |
434 if (value != null) { | 434 if (value != null) { |