@Component public class LowLevelStorageService extends Object
| Constructor and Description |
|---|
LowLevelStorageService() |
| Modifier and Type | Method and Description |
|---|---|
<T> Set<T> |
getClusterResults(org.modeshape.jcr.value.binary.infinispan.InfinispanBinaryStore cacheStore,
org.modeshape.jcr.value.BinaryKey key,
com.google.common.base.Function<LowLevelCacheEntry,T> transform)
Get the transform results in a clustered Infinispan binary store
|
Set<LowLevelCacheEntry> |
getLowLevelCacheEntries(org.modeshape.jcr.value.BinaryKey key)
Get the low-level Cache entries for a Modeshape BinaryKey
|
Set<LowLevelCacheEntry> |
getLowLevelCacheEntries(javax.jcr.Node resource)
Get the low-level cache entries for a Node containing a jcr:data binary
property
|
Set<LowLevelCacheEntry> |
getLowLevelCacheEntries(javax.jcr.Property jcrBinaryProperty)
Get the low-level cache entries for a JCR Binary property
|
Set<LowLevelCacheEntry> |
getLowLevelCacheEntriesFromStore(org.modeshape.jcr.value.binary.BinaryStore store,
org.modeshape.jcr.value.BinaryKey key)
Get the low-level cache entries from a particular BinaryStore
|
protected Set<LowLevelCacheEntry> |
getLowLevelCacheEntriesFromStore(org.modeshape.jcr.value.binary.CompositeBinaryStore compositeStore,
org.modeshape.jcr.value.BinaryKey key)
Get the low-level cache entries from a particular CompositeBinaryStore
|
protected Set<LowLevelCacheEntry> |
getLowLevelCacheEntriesFromStore(org.modeshape.jcr.value.binary.infinispan.InfinispanBinaryStore ispnStore,
org.modeshape.jcr.value.BinaryKey key)
Get the low-level cache entries from a particular InfinispanBinaryStore
|
void |
setGetBinaryKey(GetBinaryKey getBinaryKey)
Set the function that retrieves a BinaryKey for a property
|
void |
setGetBinaryStore(GetBinaryStore getBinaryStore)
Set the function to use to retrieve the BinaryStore
|
void |
setRepository(javax.jcr.Repository repository)
Set the repository (used for testing)
|
<T> Collection<T> |
transformLowLevelCacheEntries(org.modeshape.jcr.value.BinaryKey key,
com.google.common.base.Function<LowLevelCacheEntry,T> transform)
Apply some Function to the low-level cache entries for a BinaryKey in the
store
|
protected <T> Set<T> |
transformLowLevelCacheEntries(org.modeshape.jcr.value.binary.BinaryStore store,
org.modeshape.jcr.value.BinaryKey key,
com.google.common.base.Function<LowLevelCacheEntry,T> transform)
Steer low-level cache entries to transform functions according to the
subtype of BinaryStore in question
|
protected <T> Set<T> |
transformLowLevelCacheEntries(org.modeshape.jcr.value.binary.CompositeBinaryStore compositeStore,
org.modeshape.jcr.value.BinaryKey key,
com.google.common.base.Function<LowLevelCacheEntry,T> transform)
Transform low-level cache entries from a particular CompositeBinaryStore
|
<T> Collection<T> |
transformLowLevelCacheEntries(javax.jcr.Node resource,
com.google.common.base.Function<LowLevelCacheEntry,T> transform)
Apply some Function to the low-level cache entries for the Node
|
<T> Collection<T> |
transformLowLevelCacheEntries(javax.jcr.Property jcrBinaryProperty,
com.google.common.base.Function<LowLevelCacheEntry,T> transform)
Apply some Function to the low-level cache entries for the binary
property
|
public <T> Collection<T> transformLowLevelCacheEntries(javax.jcr.Node resource, com.google.common.base.Function<LowLevelCacheEntry,T> transform) throws javax.jcr.RepositoryException
resource - a JCR Node containing a jcr:data binary property (e.g. a
jcr:content node)transform - a Function to transform the cache entries withjavax.jcr.RepositoryException - if the jcr:data property isn't found, a
RepositoryException is thrownpublic <T> Collection<T> transformLowLevelCacheEntries(javax.jcr.Property jcrBinaryProperty, com.google.common.base.Function<LowLevelCacheEntry,T> transform)
jcrBinaryProperty - a binary property (e.g. jcr:data)transform - a Function to transform the underlying cache entry withpublic <T> Collection<T> transformLowLevelCacheEntries(org.modeshape.jcr.value.BinaryKey key, com.google.common.base.Function<LowLevelCacheEntry,T> transform)
key - a BinaryKey in the cache storetransform - a Function to transform the underlying cache entry withprotected <T> Set<T> transformLowLevelCacheEntries(org.modeshape.jcr.value.binary.CompositeBinaryStore compositeStore, org.modeshape.jcr.value.BinaryKey key, com.google.common.base.Function<LowLevelCacheEntry,T> transform)
key - a Modeshape BinaryValue's key.protected <T> Set<T> transformLowLevelCacheEntries(org.modeshape.jcr.value.binary.BinaryStore store, org.modeshape.jcr.value.BinaryKey key, com.google.common.base.Function<LowLevelCacheEntry,T> transform)
key - a Modeshape BinaryValue's key.public Set<LowLevelCacheEntry> getLowLevelCacheEntries(javax.jcr.Node resource) throws javax.jcr.RepositoryException
resource - a JCR node that has a jcr:data property.javax.jcr.RepositoryException - if the jcr:data property isn't found, a
RepositoryException is thrownpublic Set<LowLevelCacheEntry> getLowLevelCacheEntries(javax.jcr.Property jcrBinaryProperty)
jcrBinaryProperty - a JCR Binary property (e.g. jcr:data)public Set<LowLevelCacheEntry> getLowLevelCacheEntries(org.modeshape.jcr.value.BinaryKey key)
key - a Modeshape BinaryValue's key.public Set<LowLevelCacheEntry> getLowLevelCacheEntriesFromStore(org.modeshape.jcr.value.binary.BinaryStore store, org.modeshape.jcr.value.BinaryKey key)
key - a Modeshape BinaryValue's key.protected Set<LowLevelCacheEntry> getLowLevelCacheEntriesFromStore(org.modeshape.jcr.value.binary.CompositeBinaryStore compositeStore, org.modeshape.jcr.value.BinaryKey key)
key - a Modeshape BinaryValue's key.protected Set<LowLevelCacheEntry> getLowLevelCacheEntriesFromStore(org.modeshape.jcr.value.binary.infinispan.InfinispanBinaryStore ispnStore, org.modeshape.jcr.value.BinaryKey key)
key - a Modeshape BinaryValue's key.public <T> Set<T> getClusterResults(org.modeshape.jcr.value.binary.infinispan.InfinispanBinaryStore cacheStore, org.modeshape.jcr.value.BinaryKey key, com.google.common.base.Function<LowLevelCacheEntry,T> transform) throws InterruptedException, ExecutionException
cacheStore - the Modeshape BinaryStore to usekey - the BinaryKey we want to transformtransform - the Function to applyInterruptedExceptionExecutionExceptionpublic void setRepository(javax.jcr.Repository repository)
public void setGetBinaryStore(GetBinaryStore getBinaryStore)
public void setGetBinaryKey(GetBinaryKey getBinaryKey)
Copyright © 2013–2014 DuraSpace, Inc.. All rights reserved.