public class BlobIdTracker extends Object implements Closeable, BlobTracker
BlobIdStore .| Modifier and Type | Field and Description |
|---|---|
protected org.apache.jackrabbit.oak.plugins.blob.datastore.BlobIdTracker.BlobIdStore |
store |
| Constructor and Description |
|---|
BlobIdTracker(String path,
String repositoryId,
long snapshotIntervalSecs,
SharedDataStore datastore) |
BlobIdTracker(String path,
String repositoryId,
ScheduledExecutorService scheduler,
long snapshotDelaySecs,
long snapshotIntervalSecs,
SharedDataStore datastore) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(File recs)
Adds the ids in the given file.
|
void |
add(Iterator<String> recs)
Adds the given ids.
|
void |
add(String id)
Adds the given id.
|
void |
close()
Closes the tracker and the underlying store.
|
Iterator<String> |
get()
Retrieves all the reference files available in the DataStore and merges
them to the local store and then returns an iterator over it.
|
File |
get(String path)
Fetches a File object which having all the sorted records.
|
void |
remove(File recs)
Remove the ids in the given file and deletes the file.
|
void |
remove(Iterator<String> recs)
Remove the given ids.
|
protected org.apache.jackrabbit.oak.plugins.blob.datastore.BlobIdTracker.BlobIdStore store
public BlobIdTracker(String path, String repositoryId, long snapshotIntervalSecs, SharedDataStore datastore) throws IOException
IOExceptionpublic BlobIdTracker(String path, String repositoryId, ScheduledExecutorService scheduler, long snapshotDelaySecs, long snapshotIntervalSecs, SharedDataStore datastore) throws IOException
IOExceptionpublic void remove(File recs) throws IOException
BlobTrackerremove in interface BlobTrackerIOExceptionpublic void remove(Iterator<String> recs) throws IOException
BlobTrackerremove in interface BlobTrackerIOExceptionpublic void add(String id) throws IOException
BlobTrackeradd in interface BlobTrackerid - the record id to be trackedIOExceptionpublic void add(Iterator<String> recs) throws IOException
BlobTrackeradd in interface BlobTrackerIOExceptionpublic void add(File recs) throws IOException
BlobTrackeradd in interface BlobTrackerIOExceptionpublic Iterator<String> get() throws IOException
get in interface BlobTrackerIOExceptionpublic File get(String path) throws IOException
BlobTrackerFile handle is the responsibility of the handler.get in interface BlobTrackerIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2012–2017 The Apache Software Foundation. All rights reserved.