public class BlobIdTracker extends java.lang.Object implements java.io.Closeable, BlobTracker
BlobIdStore
.Modifier and Type | Class and Description |
---|---|
static class |
BlobIdTracker.ActiveDeletionTracker
Tracking any active deletions store for managing the blob reference
|
BlobTracker.Options
Modifier and Type | Method and Description |
---|---|
void |
add(java.io.File recs)
Adds the ids in the given file.
|
void |
add(java.util.Iterator<java.lang.String> recs)
Adds the given ids.
|
void |
add(java.lang.String id)
Adds the given id.
|
static BlobIdTracker |
build(java.lang.String path,
java.lang.String repositoryId,
long snapshotIntervalSecs,
SharedDataStore datastore) |
void |
close()
Closes the tracker and the underlying store.
|
java.util.Iterator<java.lang.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.
|
java.io.File |
get(java.lang.String path)
Fetches a File object which having all the sorted records.
|
BlobIdTracker.ActiveDeletionTracker |
getDeleteTracker() |
void |
remove(java.io.File recs)
Remove the ids in the given file and deletes the file.
|
void |
remove(java.io.File recs,
BlobTracker.Options options)
Remove the ids in the given file and deletes the file.
|
void |
remove(java.util.Iterator<java.lang.String> recs)
Remove the given ids.
|
public static BlobIdTracker build(java.lang.String path, java.lang.String repositoryId, long snapshotIntervalSecs, SharedDataStore datastore) throws java.io.IOException
java.io.IOException
public BlobIdTracker.ActiveDeletionTracker getDeleteTracker()
public void remove(java.io.File recs, BlobTracker.Options options) throws java.io.IOException
BlobTracker
remove
in interface BlobTracker
java.io.IOException
public void remove(java.io.File recs) throws java.io.IOException
BlobTracker
remove
in interface BlobTracker
java.io.IOException
public void remove(java.util.Iterator<java.lang.String> recs) throws java.io.IOException
BlobTracker
remove
in interface BlobTracker
java.io.IOException
public void add(java.lang.String id) throws java.io.IOException
BlobTracker
add
in interface BlobTracker
id
- the record id to be trackedjava.io.IOException
public void add(java.util.Iterator<java.lang.String> recs) throws java.io.IOException
BlobTracker
add
in interface BlobTracker
java.io.IOException
public void add(java.io.File recs) throws java.io.IOException
BlobTracker
add
in interface BlobTracker
java.io.IOException
public java.util.Iterator<java.lang.String> get() throws java.io.IOException
The iterator returned ia a Closeable instance and should be closed by calling #close().
get
in interface BlobTracker
java.io.IOException
public java.io.File get(java.lang.String path) throws java.io.IOException
BlobTracker
File
handle is the responsibility of the handler.get
in interface BlobTracker
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
java.io.IOException
Copyright © 2010 - 2020 Adobe. All Rights Reserved