Class LockedSegmentFileInputFactory
- java.lang.Object
-
- org.apache.ignite.internal.processors.cache.persistence.wal.io.LockedSegmentFileInputFactory
-
- All Implemented Interfaces:
SegmentFileInputFactory
public class LockedSegmentFileInputFactory extends Object implements SegmentFileInputFactory
Implementation of factory to provide I/O interfaces for read primitives with files. CreatingFileInputwith ability locked segment during reading.
-
-
Constructor Summary
Constructors Constructor Description LockedSegmentFileInputFactory(SegmentAware segmentAware, SegmentRouter segmentRouter, FileIOFactory fileIOFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FileInputcreateFileInput(SegmentIO segmentIO, ByteBufferExpander buf)
-
-
-
Constructor Detail
-
LockedSegmentFileInputFactory
public LockedSegmentFileInputFactory(SegmentAware segmentAware, SegmentRouter segmentRouter, FileIOFactory fileIOFactory)
- Parameters:
segmentAware- Holder of actual information of latest manipulation on WAL segments.segmentRouter- Manager of segment location.fileIOFactory-FileIOfactory definition.
-
-
Method Detail
-
createFileInput
public FileInput createFileInput(SegmentIO segmentIO, ByteBufferExpander buf) throws IOException
- Specified by:
createFileInputin interfaceSegmentFileInputFactory- Parameters:
segmentIO- FileIO of segment for reading.buf- ByteBuffer wrapper for dynamically expand buffer size.- Returns:
- Instance of
FileInput. - Throws:
IOException- If have some trouble with I/O.
-
-