Class TestFSErrorsExposed.FaultyInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
java.io.DataInputStream
org.apache.hadoop.fs.FSDataInputStream
org.apache.hadoop.hbase.regionserver.TestFSErrorsExposed.FaultyInputStream
- All Implemented Interfaces:
- Closeable,- DataInput,- AutoCloseable,- org.apache.hadoop.fs.ByteBufferPositionedReadable,- org.apache.hadoop.fs.ByteBufferReadable,- org.apache.hadoop.fs.CanSetDropBehind,- org.apache.hadoop.fs.CanSetReadahead,- org.apache.hadoop.fs.CanUnbuffer,- org.apache.hadoop.fs.HasEnhancedByteBufferAccess,- org.apache.hadoop.fs.HasFileDescriptor,- org.apache.hadoop.fs.PositionedReadable,- org.apache.hadoop.fs.Seekable,- org.apache.hadoop.fs.statistics.IOStatisticsSource,- org.apache.hadoop.fs.StreamCapabilities
- Enclosing class:
- TestFSErrorsExposed
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.apache.hadoop.fs.StreamCapabilitiesorg.apache.hadoop.fs.StreamCapabilities.StreamCapability
- 
Field SummaryFieldsFields inherited from class java.io.FilterInputStreaminFields inherited from interface org.apache.hadoop.fs.StreamCapabilitiesABORTABLE_STREAM, DROPBEHIND, HFLUSH, HSYNC, IOSTATISTICS, IOSTATISTICS_CONTEXT, PREADBYTEBUFFER, READAHEAD, READBYTEBUFFER, UNBUFFER, VECTOREDIO, VECTOREDIO_BUFFERS_SLICED
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprivate voidintread(long position, byte[] buffer, int offset, int length) voidMethods inherited from class org.apache.hadoop.fs.FSDataInputStreamgetFileDescriptor, getIOStatistics, getPos, getWrappedStream, hasCapability, maxReadSizeForVectorReads, minSeekForVectorReads, read, read, read, read, readFully, readFully, readFully, readVectored, readVectored, releaseBuffer, seek, seekToNewSource, setDropBehind, setReadahead, toString, unbufferMethods inherited from class java.io.DataInputStreamread, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, readUTF, skipBytesMethods inherited from class java.io.FilterInputStreamavailable, close, mark, markSupported, read, reset, skipMethods inherited from class java.io.InputStreamnullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
- 
Field Details- 
faultsStartedboolean faultsStarted
 
- 
- 
Constructor Details- 
FaultyInputStream- Throws:
- IOException
 
 
- 
- 
Method Details- 
startFaults
- 
read- Specified by:
- readin interface- org.apache.hadoop.fs.PositionedReadable
- Overrides:
- readin class- org.apache.hadoop.fs.FSDataInputStream
- Throws:
- IOException
 
- 
injectFault- Throws:
- IOException
 
 
-