public class CopyOneFile
extends java.lang.Object
implements java.io.Closeable
| Modifier and Type | Field and Description |
|---|---|
long |
bytesToCopy |
FileMetaData |
metaData |
java.lang.String |
name |
java.lang.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,
java.lang.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 java.lang.String name
public final java.lang.String tmpName
public final FileMetaData metaData
public final long bytesToCopy
public CopyOneFile(DataInput in, ReplicaNode dest, java.lang.String name, FileMetaData metaData, byte[] buffer) throws java.io.IOException
java.io.IOExceptionpublic CopyOneFile(CopyOneFile other, DataInput in)
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOExceptionpublic boolean visit()
throws java.io.IOException
java.io.IOExceptionpublic long getBytesCopied()
Copyright © 2000–2025 The Apache Software Foundation. All rights reserved.