Class AbstractFileStore
java.lang.Object
org.apache.jackrabbit.oak.segment.file.AbstractFileStore
- All Implemented Interfaces:
Closeable
,AutoCloseable
,SegmentStore
- Direct Known Subclasses:
FileStore
,ReadOnlyFileStore
The storage implementation for tar files.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final int
protected final IOMonitor
protected final RemoteStoreMonitor
Fields inherited from interface org.apache.jackrabbit.oak.segment.SegmentStore
EMPTY_STORE
-
Method Summary
Modifier and TypeMethodDescriptionabstract void
collectBlobReferences
(Consumer<String> collector) Finds all external blob references that are currently accessible in this repository and adds them to the given collector.int
@Nullable BlobStore
@NotNull SegmentNodeState
getHead()
Convenience method for accessing the root node for the current head.@NotNull SegmentReader
abstract Revisions
@NotNull CacheStatsMBean
@NotNull SegmentIdProvider
@NotNull CacheStatsMBean
@NotNull CacheStatsMBean
abstract @NotNull SegmentWriter
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.jackrabbit.oak.segment.SegmentStore
containsSegment, readSegment, writeSegment
-
Field Details
-
ioMonitor
-
remoteStoreMonitor
-
binariesInlineThreshold
protected final int binariesInlineThreshold
-
-
Method Details
-
getSegmentCacheStats
-
getStringCacheStats
-
getTemplateCacheStats
-
getWriter
-
getReader
-
getSegmentIdProvider
-
getBinariesInlineThreshold
public int getBinariesInlineThreshold() -
getRevisions
- Returns:
- the
Revisions
object bound to the current store.
-
getHead
Convenience method for accessing the root node for the current head. This is equivalent tofileStore.getReader().readHeadState(fileStore.getRevisions())
- Returns:
- the current head node state
-
getBlobStore
- Returns:
- the external BlobStore (if configured) with this store,
null
otherwise.
-
collectBlobReferences
Finds all external blob references that are currently accessible in this repository and adds them to the given collector. Useful for collecting garbage in an external data store.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.
- Parameters:
collector
- reference collector called back for each blob reference found- Throws:
IOException
-