org.gcube.contentmanagement.timeseries.geotools.tools
Class GeoGroupCache

java.lang.Object
  extended by org.gcube.contentmanagement.timeseries.geotools.tools.GeoGroupCache
All Implemented Interfaces:
java.io.Serializable

public class GeoGroupCache
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Field Summary
 java.lang.String cacheFile
           
 
Constructor Summary
GeoGroupCache(java.lang.String cacheFile)
           
 
Method Summary
 void addCacheElement(java.lang.String timeSeriesName, java.lang.String geoServerGroup, java.lang.String filterName)
           
static void addToCache(java.lang.String timeSeriesName, java.lang.String geoServerGroup, java.lang.String filterName)
           
static GeoGroupCache getCache(java.lang.String filePath)
           
 Tuple<java.lang.String> getCachedElement(java.lang.String timeSeriesName, java.lang.String geoServerGroup)
           
static GeoGroupCache getInstance(java.lang.String filePath)
           
static void initInstance(java.lang.String filePath)
           
 void removeCachedElement(java.lang.String timeSeriesName, java.lang.String filterName)
           
static void saveCache(GeoGroupCache cache, java.lang.String filePath)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cacheFile

public java.lang.String cacheFile
Constructor Detail

GeoGroupCache

public GeoGroupCache(java.lang.String cacheFile)
Method Detail

getCachedElement

public Tuple<java.lang.String> getCachedElement(java.lang.String timeSeriesName,
                                                java.lang.String geoServerGroup)

removeCachedElement

public void removeCachedElement(java.lang.String timeSeriesName,
                                java.lang.String filterName)

addCacheElement

public void addCacheElement(java.lang.String timeSeriesName,
                            java.lang.String geoServerGroup,
                            java.lang.String filterName)

initInstance

public static void initInstance(java.lang.String filePath)
                         throws java.lang.Exception
Throws:
java.lang.Exception

getInstance

public static GeoGroupCache getInstance(java.lang.String filePath)
                                 throws java.lang.Exception
Throws:
java.lang.Exception

addToCache

public static void addToCache(java.lang.String timeSeriesName,
                              java.lang.String geoServerGroup,
                              java.lang.String filterName)
                       throws java.lang.Exception
Throws:
java.lang.Exception

getCache

public static GeoGroupCache getCache(java.lang.String filePath)
                              throws java.lang.Exception
Throws:
java.lang.Exception

saveCache

public static void saveCache(GeoGroupCache cache,
                             java.lang.String filePath)
                      throws java.lang.Exception
Throws:
java.lang.Exception