Class BlobIdTracker
java.lang.Object
org.apache.jackrabbit.oak.plugins.blob.datastore.BlobIdTracker
- All Implemented Interfaces:
Closeable
,AutoCloseable
,BlobTracker
@Deprecated(since="2024-09-23")
public class BlobIdTracker
extends Object
implements Closeable, BlobTracker
Deprecated.
The Jackrabbit Oak Blob Plugins library is designed for Oak-internal use only and thus deprecated. It will not be part of the AEM SDK after April 2025.
Tracks the blob ids available or added in the blob store using the
BlobIdTracker.BlobIdStore
.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Deprecated.The Jackrabbit Oak Blob Plugins library is designed for Oak-internal use only and thus deprecated.Nested classes/interfaces inherited from interface org.apache.jackrabbit.oak.plugins.blob.datastore.BlobTracker
BlobTracker.Options
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Deprecated.Adds the ids in the given file.void
Deprecated.Adds the given id.void
Deprecated.Adds the given ids.static BlobIdTracker
build
(String path, String repositoryId, long snapshotIntervalSecs, SharedDataStore datastore) Deprecated.void
close()
Deprecated.Closes the tracker and the underlying store.get()
Deprecated.Retrieves all the reference files available in the DataStore and merges them to the local store and then returns an iterator over it.Deprecated.Fetches a File object which having all the sorted records.Deprecated.void
Deprecated.Remove the ids in the given file and deletes the file.void
remove
(File recs, BlobTracker.Options options) Deprecated.Remove the ids in the given file and deletes the file.void
Deprecated.Remove the given ids.
-
Method Details
-
getDeleteTracker
Deprecated. -
remove
Deprecated.Description copied from interface:BlobTracker
Remove the ids in the given file and deletes the file.- Specified by:
remove
in interfaceBlobTracker
- Parameters:
recs
-- Throws:
IOException
-
remove
Deprecated.Description copied from interface:BlobTracker
Remove the ids in the given file and deletes the file.- Specified by:
remove
in interfaceBlobTracker
- Parameters:
recs
-- Throws:
IOException
-
remove
Deprecated.Description copied from interface:BlobTracker
Remove the given ids.- Specified by:
remove
in interfaceBlobTracker
- Parameters:
recs
-- Throws:
IOException
-
add
Deprecated.Description copied from interface:BlobTracker
Adds the given id.- Specified by:
add
in interfaceBlobTracker
- Parameters:
id
- the record id to be tracked- Throws:
IOException
-
add
Deprecated.Description copied from interface:BlobTracker
Adds the given ids.- Specified by:
add
in interfaceBlobTracker
- Parameters:
recs
-- Throws:
IOException
-
add
Deprecated.Description copied from interface:BlobTracker
Adds the ids in the given file.- Specified by:
add
in interfaceBlobTracker
- Parameters:
recs
-- Throws:
IOException
-
get
Deprecated.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:
get
in interfaceBlobTracker
- Returns:
- iterator over all the blob ids available
- Throws:
IOException
-
get
Deprecated.Description copied from interface:BlobTracker
Fetches a File object which having all the sorted records. The lifecycle of the returnedFile
handle is the responsibility of the handler.- Specified by:
get
in interfaceBlobTracker
- Returns:
- Throws:
IOException
-
close
Deprecated.Closes the tracker and the underlying store.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException