Class FederatedStoreCacheTransient
- java.lang.Object
-
- uk.gov.gchq.gaffer.cache.Cache<String,Pair<GraphSerialisable,byte[]>>
-
- uk.gov.gchq.gaffer.federatedstore.FederatedStoreCacheTransient
-
@Deprecated public class FederatedStoreCacheTransient extends Cache<String,Pair<GraphSerialisable,byte[]>>
Deprecated.Federated store will use the default cache implementation going forward.
-
-
Field Summary
Fields Modifier and Type Field Description static StringERROR_ADDING_GRAPH_TO_CACHE_GRAPH_ID_SDeprecated.static StringFEDERATED_STORE_CACHE_SERVICE_NAMEDeprecated.
-
Constructor Summary
Constructors Constructor Description FederatedStoreCacheTransient(String suffixFederatedStoreCacheName)Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddGraphToCache(Graph graph, byte[] access, boolean overwrite)Deprecated.Add the specifiedGraphto the cache.voidaddGraphToCache(GraphSerialisable graphSerialisable, byte[] access, boolean overwrite)Deprecated.Add the specifiedGraphto the cache.voiddeleteGraphFromCache(String graphId)Deprecated.byte[]getAccessFromCache(String graphId)Deprecated.Iterable<String>getAllGraphIds()Deprecated.Get all the ID's related to theGraph's stored in the cache.static StringgetCacheNameFrom(String suffixFederatedStoreCacheName)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.StringgetSuffixCacheName()Deprecated.-
Methods inherited from class uk.gov.gchq.gaffer.cache.Cache
clearCache, contains, deleteFromCache, getAllKeys, getCache, getCacheName, getCacheNameFrom, getFromCache, getSuffixCacheNameWithoutPrefix
-
-
-
-
Field Detail
-
ERROR_ADDING_GRAPH_TO_CACHE_GRAPH_ID_S
public static final String ERROR_ADDING_GRAPH_TO_CACHE_GRAPH_ID_S
Deprecated.- See Also:
- Constant Field Values
-
FEDERATED_STORE_CACHE_SERVICE_NAME
public static final String FEDERATED_STORE_CACHE_SERVICE_NAME
Deprecated.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
FederatedStoreCacheTransient
public FederatedStoreCacheTransient(String suffixFederatedStoreCacheName)
Deprecated.
-
-
Method Detail
-
getCacheNameFrom
public static String getCacheNameFrom(String suffixFederatedStoreCacheName)
Deprecated.
-
getSuffixCacheName
public String getSuffixCacheName()
Deprecated.
-
getAllGraphIds
public Iterable<String> getAllGraphIds()
Deprecated.Get all the ID's related to theGraph's stored in the cache.- Returns:
- Iterable of all the Graph ID's within the cache.
-
addGraphToCache
public void addGraphToCache(Graph graph, byte[] 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, byte[] 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) throws CacheOperationException
Deprecated.Retrieve theGraphwith the specified ID from the cache.- Parameters:
graphId- the ID of theGraphto retrieve- Returns:
- the
Graphrelated to the specified ID - Throws:
CacheOperationException- exception
-
getAccessFromCache
public byte[] getAccessFromCache(String graphId) throws CacheOperationException
Deprecated.- Throws:
CacheOperationException
-
-