public abstract class AbstractFileStore extends Object implements SegmentStore, Closeable
Modifier and Type | Field and Description |
---|---|
protected IOMonitor |
ioMonitor |
protected RemoteStoreMonitor |
remoteStoreMonitor |
EMPTY_STORE
Modifier and Type | Method and Description |
---|---|
abstract void |
collectBlobReferences(Consumer<String> collector)
Finds all external blob references that are currently accessible
in this repository and adds them to the given collector.
|
@Nullable org.apache.jackrabbit.oak.spi.blob.BlobStore |
getBlobStore() |
@NotNull SegmentNodeState |
getHead()
Convenience method for accessing the root node for the current head.
|
@NotNull SegmentReader |
getReader() |
abstract Revisions |
getRevisions() |
@NotNull org.apache.jackrabbit.oak.api.jmx.CacheStatsMBean |
getSegmentCacheStats() |
@NotNull SegmentIdProvider |
getSegmentIdProvider() |
@NotNull org.apache.jackrabbit.oak.api.jmx.CacheStatsMBean |
getStringCacheStats() |
@NotNull org.apache.jackrabbit.oak.api.jmx.CacheStatsMBean |
getTemplateCacheStats() |
abstract @NotNull SegmentWriter |
getWriter() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
containsSegment, readSegment, writeSegment
protected final IOMonitor ioMonitor
protected final RemoteStoreMonitor remoteStoreMonitor
@NotNull public @NotNull org.apache.jackrabbit.oak.api.jmx.CacheStatsMBean getSegmentCacheStats()
@NotNull public @NotNull org.apache.jackrabbit.oak.api.jmx.CacheStatsMBean getStringCacheStats()
@NotNull public @NotNull org.apache.jackrabbit.oak.api.jmx.CacheStatsMBean getTemplateCacheStats()
@NotNull public abstract @NotNull SegmentWriter getWriter()
@NotNull public @NotNull SegmentReader getReader()
@NotNull public @NotNull SegmentIdProvider getSegmentIdProvider()
public abstract Revisions getRevisions()
Revisions
object bound to the current store.@NotNull public @NotNull SegmentNodeState getHead()
fileStore.getReader().readHeadState(fileStore.getRevisions())
@Nullable public @Nullable org.apache.jackrabbit.oak.spi.blob.BlobStore getBlobStore()
null
otherwise.public abstract void collectBlobReferences(Consumer<String> collector) throws IOException
Note that this method only collects blob references that are already stored in the repository (at the time when this method is called), so the garbage collector will need some other mechanism for tracking in-memory references and references stored while this method is running.
collector
- reference collector called back for each blob reference foundIOException
Copyright © 2012–2020 The Apache Software Foundation. All rights reserved.