public class CopyOneFile extends Object implements Closeable
| Modifier and Type | Field and Description |
|---|---|
long |
bytesToCopy |
FileMetaData |
metaData |
String |
name |
String |
tmpName |
| Constructor and Description |
|---|
CopyOneFile(CopyOneFile other,
DataInput in)
Transfers this file copy to another input, continuing where the first one left off
|
CopyOneFile(DataInput in,
ReplicaNode dest,
String name,
FileMetaData metaData,
byte[] buffer) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
long |
getBytesCopied() |
boolean |
visit()
Copy another chunk of bytes, returning true once the copy is done
|
public final String name
public final String tmpName
public final FileMetaData metaData
public final long bytesToCopy
public CopyOneFile(DataInput in, ReplicaNode dest, String name, FileMetaData metaData, byte[] buffer) throws IOException
IOExceptionpublic CopyOneFile(CopyOneFile other, DataInput in)
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic boolean visit()
throws IOException
IOExceptionpublic long getBytesCopied()
Copyright © 2000-2024 Apache Software Foundation. All Rights Reserved.