public class BlobIdTracker extends java.lang.Object implements java.io.Closeable, BlobTracker
BlobIdStore
.Constructor and Description |
---|
BlobIdTracker(java.lang.String path,
java.lang.String repositoryId,
long snapshotIntervalSecs,
SharedDataStore datastore) |
BlobIdTracker(java.lang.String path,
java.lang.String repositoryId,
java.util.concurrent.ScheduledExecutorService scheduler,
long snapshotDelaySecs,
long snapshotIntervalSecs,
SharedDataStore datastore) |
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.
|
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.
|
void |
remove(java.io.File recs)
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 BlobIdTracker(java.lang.String path, java.lang.String repositoryId, long snapshotIntervalSecs, SharedDataStore datastore) throws java.io.IOException
java.io.IOException
public BlobIdTracker(java.lang.String path, java.lang.String repositoryId, java.util.concurrent.ScheduledExecutorService scheduler, long snapshotDelaySecs, long snapshotIntervalSecs, SharedDataStore datastore) throws java.io.IOException
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
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 - 2019 Adobe Systems Incorporated. All Rights Reserved"