public class RemoteFileCopier extends Object
| 构造器和说明 |
|---|
RemoteFileCopier() |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
copy2IoBuffer(String source,
ByteBufferCollector destBuf,
CopyOptions opt)
Copy `source` from remote to buffer.
|
boolean |
copyToFile(String source,
String destPath,
CopyOptions opts)
Copy `source` from remote to local dest.
|
boolean |
init(String uri,
SnapshotThrottle snapshotThrottle,
SnapshotCopierOptions opts) |
Session |
startCopy2IoBuffer(String source,
ByteBufferCollector destBuf,
CopyOptions opts) |
Session |
startCopyToFile(String source,
String destPath,
CopyOptions opts) |
public boolean init(String uri, SnapshotThrottle snapshotThrottle, SnapshotCopierOptions opts)
public boolean copyToFile(String source, String destPath, CopyOptions opts) throws IOException, InterruptedException
source - source from remotedestPath - local pathopts - options of copyIOExceptionInterruptedExceptionpublic Session startCopyToFile(String source, String destPath, CopyOptions opts) throws IOException
IOExceptionpublic boolean copy2IoBuffer(String source, ByteBufferCollector destBuf, CopyOptions opt) throws InterruptedException
source - source from remotedestBuf - buffer of destopt - options of copyInterruptedExceptionpublic Session startCopy2IoBuffer(String source, ByteBufferCollector destBuf, CopyOptions opts)
Copyright © 2021. All rights reserved.