@Component public abstract class ServiceHelpers extends Object
| Constructor and Description |
|---|
ServiceHelpers() |
| Modifier and Type | Method and Description |
|---|---|
static com.google.common.base.Function<LowLevelCacheEntry,FixityResult> |
getCheckCacheFixityFunction(URI dsChecksum,
long dsSize)
Get the fixity function to map a low-level cache entry to its fixity result
|
static org.infinispan.distexec.DistributedExecutorService |
getClusterExecutor(org.modeshape.jcr.value.binary.infinispan.InfinispanBinaryStore cacheStore)
A static factory function to insulate services from the details of building
a DistributedExecutorService
|
static Long |
getContentSize(javax.jcr.Node ds)
Get the size of the JCR content binary property
|
static Long |
getDatastreamSize(javax.jcr.Node ds)
Get the size of a datastream by calculating the size of the
properties and the binary properties
|
static Long |
getNodePropertySize(javax.jcr.Node node)
Get the total size of a Node's properties
|
static Long |
getObjectSize(javax.jcr.Node obj) |
public static Long getNodePropertySize(javax.jcr.Node node) throws javax.jcr.RepositoryException
node - javax.jcr.RepositoryExceptionpublic static Long getObjectSize(javax.jcr.Node obj) throws javax.jcr.RepositoryException
obj - javax.jcr.RepositoryExceptionpublic static Long getDatastreamSize(javax.jcr.Node ds) throws javax.jcr.RepositoryException
ds - javax.jcr.RepositoryExceptionpublic static Long getContentSize(javax.jcr.Node ds) throws javax.jcr.RepositoryException
ds - javax.jcr.RepositoryExceptionpublic static org.infinispan.distexec.DistributedExecutorService getClusterExecutor(org.modeshape.jcr.value.binary.infinispan.InfinispanBinaryStore cacheStore)
cache - public static com.google.common.base.Function<LowLevelCacheEntry,FixityResult> getCheckCacheFixityFunction(URI dsChecksum, long dsSize)
dsChecksum - dsSize - Copyright © 2013 DuraSpace, Inc.. All Rights Reserved.