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.Abortable
,org.apache.hadoop.fs.CanSetDropBehind
,org.apache.hadoop.fs.statistics.IOStatisticsSource
,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.Abortable
org.apache.hadoop.fs.Abortable.AbortableResult
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
ABORTABLE_STREAM, DROPBEHIND, HFLUSH, HSYNC, IOSTATISTICS, IOSTATISTICS_CONTEXT, PREADBYTEBUFFER, READAHEAD, READBYTEBUFFER, UNBUFFER, VECTOREDIO
-
Constructor Summary
ConstructorDescriptionFaultyOutputStream
(org.apache.hadoop.fs.FSDataOutputStream out, long faultPos, AtomicBoolean fault) -
Method Summary
Methods inherited from class org.apache.hadoop.fs.FSDataOutputStream
abort, close, getIOStatistics, getPos, getWrappedStream, hasCapability, hflush, hsync, setDropBehind, toString
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.io.OutputStream
nullOutputStream
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, 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
-