Class FederatedStoreCache
- java.lang.Object
-
- uk.gov.gchq.gaffer.federatedstore.FederatedStoreCache
-
@Deprecated public final class FederatedStoreCache extends Object
Deprecated.Federated store will use the default cache implementation going forward.Wrapper aroundFederatedStoreCacheTransientto provide an interface for handlingGraphs within aFederatedStore.
-
-
Constructor Summary
Constructors Constructor Description FederatedStoreCache(String suffixFederatedStoreCacheName)Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddGraphToCache(Graph graph, FederatedAccess access, boolean overwrite)Deprecated.Add the specifiedGraphto the cache.voidaddGraphToCache(GraphSerialisable graphSerialisable, byte[] access, boolean overwrite)Deprecated.voidaddGraphToCache(GraphSerialisable graphSerialisable, FederatedAccess access, boolean overwrite)Deprecated.Add the specifiedGraphto the cache.voidclearCache()Deprecated.booleancontains(String graphId)Deprecated.voiddeleteFromCache(String key)Deprecated.voiddeleteGraphFromCache(String graphId)Deprecated.FederatedAccessgetAccessFromCache(String graphId)Deprecated.Iterable<String>getAllGraphIds()Deprecated.Get all the ID's related to theGraph's stored in the cache.Iterable<String>getAllKeys()Deprecated.ICachegetCache()Deprecated.StringgetCacheName()Deprecated.static StringgetCacheNameFrom(String suffixCacheName)Deprecated.Pair<GraphSerialisable,FederatedAccess>getFromCache(String key)Deprecated.GraphSerialisablegetGraphFromCache(String graphId)Deprecated.Retrieve theGraphSerialisablewith the specified ID from the cache.GraphSerialisablegetGraphSerialisableFromCache(String graphId)Deprecated.Retrieve theGraphwith the specified ID from the cache.
-
-
-
Constructor Detail
-
FederatedStoreCache
public FederatedStoreCache(String suffixFederatedStoreCacheName)
Deprecated.
-
-
Method Detail
-
getAllGraphIds
public Iterable<String> getAllGraphIds()
Deprecated.Get all the ID's related to theGraph's stored in the cache.- Returns:
- all the Graph ID's within the cache.
-
addGraphToCache
public void addGraphToCache(Graph graph, FederatedAccess access, boolean overwrite) throws CacheOperationException
Deprecated.Add the specifiedGraphto the cache.- Parameters:
graph- theGraphto be addedoverwrite- if true, overwrite any graphs already in the cache with the same IDaccess- Access for the graph being stored.- Throws:
CacheOperationException- if issues adding to cache
-
addGraphToCache
public void addGraphToCache(GraphSerialisable graphSerialisable, FederatedAccess access, boolean overwrite) throws CacheOperationException
Deprecated.Add the specifiedGraphto the cache.- Parameters:
graphSerialisable- the serialisedGraphto be addedaccess- Access for the graph being stored.overwrite- if true, overwrite any graphs already in the cache with the same ID- Throws:
CacheOperationException- if issues adding to cache
-
deleteGraphFromCache
public void deleteGraphFromCache(String graphId)
Deprecated.
-
getGraphFromCache
public GraphSerialisable getGraphFromCache(String graphId) throws CacheOperationException
Deprecated.Retrieve theGraphSerialisablewith the specified ID from the cache.- Parameters:
graphId- the ID of theGraphto retrieve- Returns:
- the
GraphSerialisablerelated to the specified ID - Throws:
CacheOperationException- exception
-
getGraphSerialisableFromCache
public GraphSerialisable getGraphSerialisableFromCache(String graphId)
Deprecated.Retrieve theGraphwith the specified ID from the cache.
-
addGraphToCache
public void addGraphToCache(GraphSerialisable graphSerialisable, byte[] access, boolean overwrite) throws CacheOperationException
Deprecated.- Throws:
CacheOperationException
-
getAccessFromCache
public FederatedAccess getAccessFromCache(String graphId)
Deprecated.
-
getFromCache
public Pair<GraphSerialisable,FederatedAccess> getFromCache(String key)
Deprecated.
-
getCacheName
public String getCacheName()
Deprecated.
-
clearCache
public void clearCache() throws CacheOperationExceptionDeprecated.- Throws:
CacheOperationException
-
contains
public boolean contains(String graphId)
Deprecated.
-
deleteFromCache
public void deleteFromCache(String key)
Deprecated.
-
getCache
public ICache getCache()
Deprecated.
-
-