Class BlobIdTracker
java.lang.Object
org.apache.jackrabbit.oak.plugins.blob.datastore.BlobIdTracker
- All Implemented Interfaces:
Closeable,AutoCloseable,BlobTracker
Tracks the blob ids available or added in the blob store using the
BlobIdTracker.BlobIdStore .-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classTracking any active deletions store for managing the blob referenceNested classes/interfaces inherited from interface org.apache.jackrabbit.oak.plugins.blob.datastore.BlobTracker
BlobTracker.Options -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.apache.jackrabbit.oak.plugins.blob.datastore.BlobIdTracker.BlobIdStore -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds the ids in the given file.voidAdds the given id.voidAdds the given ids.static BlobIdTrackerbuild(String path, String repositoryId, long snapshotIntervalSecs, SharedDataStore datastore) voidclose()Closes the tracker and the underlying store.get()Retrieves all the reference files available in the DataStore and merges them to the local store and then returns an iterator over it.Fetches a File object which having all the sorted records.voidRemove the ids in the given file and deletes the file.voidremove(File recs, BlobTracker.Options options) Remove the ids in the given file and deletes the file.voidRemove the given ids.
-
Field Details
-
store
protected org.apache.jackrabbit.oak.plugins.blob.datastore.BlobIdTracker.BlobIdStore store
-
-
Method Details
-
getDeleteTracker
-
remove
Description copied from interface:BlobTrackerRemove the ids in the given file and deletes the file.- Specified by:
removein interfaceBlobTracker- Throws:
IOException
-
remove
Description copied from interface:BlobTrackerRemove the ids in the given file and deletes the file.- Specified by:
removein interfaceBlobTracker- Throws:
IOException
-
remove
Description copied from interface:BlobTrackerRemove the given ids.- Specified by:
removein interfaceBlobTracker- Throws:
IOException
-
add
Description copied from interface:BlobTrackerAdds the given id.- Specified by:
addin interfaceBlobTracker- Parameters:
id- the record id to be tracked- Throws:
IOException
-
add
Description copied from interface:BlobTrackerAdds the given ids.- Specified by:
addin interfaceBlobTracker- Throws:
IOException
-
add
Description copied from interface:BlobTrackerAdds the ids in the given file.- Specified by:
addin interfaceBlobTracker- Throws:
IOException
-
get
Retrieves all the reference files available in the DataStore and merges them to the local store and then returns an iterator over it. This way the ids returned are as recent as the snapshots taken on all instances/repositories connected to the DataStore.The iterator returned ia a Closeable instance and should be closed by calling #close().
- Specified by:
getin interfaceBlobTracker- Returns:
- iterator over all the blob ids available
- Throws:
IOException
-
get
Description copied from interface:BlobTrackerFetches a File object which having all the sorted records. The lifecycle of the returnedFilehandle is the responsibility of the handler.- Specified by:
getin interfaceBlobTracker- Returns:
- Throws:
IOException
-
close
Closes the tracker and the underlying store.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException