public class LocalSnapshotCopier extends SnapshotCopier
| Constructor and Description |
|---|
LocalSnapshotCopier() |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Cancel the copy job.
|
void |
close() |
SnapshotReader |
getReader()
Get the the SnapshotReader which represents the copied Snapshot
|
SnapshotStorage |
getStorage() |
boolean |
init(String uri,
SnapshotCopierOptions opts) |
boolean |
isFilterBeforeCopyRemote() |
void |
join()
Block the thread until this copy job finishes, or some error occurs.
|
void |
setFilterBeforeCopyRemote(boolean filterBeforeCopyRemote) |
void |
setSnapshotThrottle(SnapshotThrottle snapshotThrottle) |
void |
setStorage(SnapshotStorage storage) |
void |
start()
Start the copy job.
|
copy, equals, getCode, getErrorMsg, getRaftError, hashCode, isOk, OK, reset, setCode, setError, setError, setErrorMsg, toStringpublic void setSnapshotThrottle(SnapshotThrottle snapshotThrottle)
public boolean init(String uri, SnapshotCopierOptions opts)
public SnapshotStorage getStorage()
public void setStorage(SnapshotStorage storage)
public boolean isFilterBeforeCopyRemote()
public void setFilterBeforeCopyRemote(boolean filterBeforeCopyRemote)
public void close()
throws IOException
IOExceptionpublic void start()
SnapshotCopierstart in class SnapshotCopierpublic void cancel()
SnapshotCopiercancel in class SnapshotCopierpublic void join()
throws InterruptedException
SnapshotCopierjoin in class SnapshotCopierInterruptedException - if the current thread is interrupted
while waitingpublic SnapshotReader getReader()
SnapshotCopiergetReader in class SnapshotCopierCopyright © 2024. All rights reserved.