static class TestHStore.FaultyOutputStream extends org.apache.hadoop.fs.FSDataOutputStream
| Modifier and Type | Field and Description |
|---|---|
private AtomicBoolean |
fault |
(package private) long |
faultPos |
writtenout| Constructor and Description |
|---|
FaultyOutputStream(org.apache.hadoop.fs.FSDataOutputStream out,
long faultPos,
AtomicBoolean fault) |
| Modifier and Type | Method and Description |
|---|---|
private void |
injectFault() |
void |
write(byte[] buf,
int offset,
int length) |
close, getPos, getWrappedStream, hflush, hsync, setDropBehind, syncflush, size, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTFwriteclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitwritevolatile long faultPos
private final AtomicBoolean fault
public FaultyOutputStream(org.apache.hadoop.fs.FSDataOutputStream out, long faultPos, AtomicBoolean fault) throws IOException
IOExceptionpublic void write(byte[] buf, int offset, int length) throws IOException
write in interface DataOutputwrite in class DataOutputStreamIOExceptionprivate void injectFault() throws IOException
IOExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.