public class RemoteFileCopier extends Object
| Constructor and Description |
|---|
RemoteFileCopier() |
| Modifier and Type | Method and Description |
|---|---|
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 © 2024. All rights reserved.