|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.hdfs.server.datanode.fsdataset.ReplicaOutputStreams
public class ReplicaOutputStreams
Contains the output streams for the data and checksum of a replica.
| Constructor Summary | |
|---|---|
ReplicaOutputStreams(OutputStream dataOut,
OutputStream checksumOut,
org.apache.hadoop.util.DataChecksum checksum)
Create an object with a data output stream, a checksum output stream and a checksum. |
|
| Method Summary | |
|---|---|
void |
close()
|
org.apache.hadoop.util.DataChecksum |
getChecksum()
|
OutputStream |
getChecksumOut()
|
OutputStream |
getDataOut()
|
void |
syncChecksumOut()
Sync the checksum stream if it supports it. |
void |
syncDataOut()
Sync the data stream if it supports it. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ReplicaOutputStreams(OutputStream dataOut,
OutputStream checksumOut,
org.apache.hadoop.util.DataChecksum checksum)
| Method Detail |
|---|
public OutputStream getDataOut()
public OutputStream getChecksumOut()
public org.apache.hadoop.util.DataChecksum getChecksum()
public void close()
close in interface Closeable
public void syncDataOut()
throws IOException
IOException
public void syncChecksumOut()
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||