Class AlignedBuffersDirectFileIOFactory
- java.lang.Object
-
- org.apache.ignite.internal.processors.cache.persistence.file.AlignedBuffersDirectFileIOFactory
-
- All Implemented Interfaces:
Serializable,FileIOFactory
public class AlignedBuffersDirectFileIOFactory extends Object implements FileIOFactory
Direct native IO factory for block IO operations on aligned memory structures.
This limited functionality is used for page store operations.
Note: This type of IO not applicable for WAL or other files.
This IO tries to minimize cache effects of the I/O (page caching by OS).
In general this will degrade performance, but it is useful in special situations, such as when applications do their own caching.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AlignedBuffersDirectFileIOFactory(IgniteLogger log, File storePath, int pageSize, FileIOFactory backupFactory)Creates direct native IO factory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FileIOcreate(File file, OpenOption... modes)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.ignite.internal.processors.cache.persistence.file.FileIOFactory
create
-
-
-
-
Constructor Detail
-
AlignedBuffersDirectFileIOFactory
public AlignedBuffersDirectFileIOFactory(IgniteLogger log, File storePath, int pageSize, FileIOFactory backupFactory)
Creates direct native IO factory.- Parameters:
log- Logger.storePath- Storage path, used to check FS settings.pageSize- durable memory page size.backupFactory- fallback factory if init failed.
-
-
Method Detail
-
create
public FileIO create(File file, OpenOption... modes) throws IOException
- Specified by:
createin interfaceFileIOFactory- Throws:
IOException
-
-