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
IOException
public CopyOneFile(CopyOneFile other, DataInput in)
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
public boolean visit() throws IOException
IOException
public long getBytesCopied()
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.