Class TestHStore.FaultyOutputStream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
java.io.DataOutputStream
org.apache.hadoop.fs.FSDataOutputStream
org.apache.hadoop.hbase.regionserver.TestHStore.FaultyOutputStream
- All Implemented Interfaces:
Closeable
,DataOutput
,Flushable
,AutoCloseable
,org.apache.hadoop.fs.CanSetDropBehind
,org.apache.hadoop.fs.StreamCapabilities
,org.apache.hadoop.fs.Syncable
- Enclosing class:
- TestHStore
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.hadoop.fs.StreamCapabilities
org.apache.hadoop.fs.StreamCapabilities.StreamCapability
-
Field Summary
Fields inherited from class java.io.DataOutputStream
written
Fields inherited from class java.io.FilterOutputStream
out
Fields inherited from interface org.apache.hadoop.fs.StreamCapabilities
DROPBEHIND, HFLUSH, HSYNC, PREADBYTEBUFFER, READAHEAD, READBYTEBUFFER, UNBUFFER
-
Constructor Summary
ConstructorDescriptionFaultyOutputStream
(org.apache.hadoop.fs.FSDataOutputStream out, long faultPos, AtomicBoolean fault) -
Method Summary
Methods inherited from class org.apache.hadoop.fs.FSDataOutputStream
close, getPos, getWrappedStream, hasCapability, hflush, hsync, setDropBehind, sync
Methods inherited from class java.io.DataOutputStream
flush, size, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF
Methods inherited from class java.io.FilterOutputStream
write
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.io.DataOutput
write
-
Field Details
-
faultPos
-
fault
-
-
Constructor Details
-
FaultyOutputStream
public FaultyOutputStream(org.apache.hadoop.fs.FSDataOutputStream out, long faultPos, AtomicBoolean fault) throws IOException - Throws:
IOException
-
-
Method Details
-
write
- Specified by:
write
in interfaceDataOutput
- Overrides:
write
in classDataOutputStream
- Throws:
IOException
-
injectFault
- Throws:
IOException
-