public class LocalSnapshotCopier extends SnapshotCopier
| 构造器和说明 |
|---|
LocalSnapshotCopier() |
| 限定符和类型 | 方法和说明 |
|---|---|
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 在类中 SnapshotCopierpublic void cancel()
SnapshotCopiercancel 在类中 SnapshotCopierpublic void join()
throws InterruptedException
SnapshotCopierjoin 在类中 SnapshotCopierInterruptedException - if the current thread is interrupted
while waitingpublic SnapshotReader getReader()
SnapshotCopiergetReader 在类中 SnapshotCopierCopyright © 2021. All rights reserved.