Package org.jgroups.raft.util.pmem
Class FileProvider
java.lang.Object
org.jgroups.raft.util.pmem.FileProvider
Creates
FileChannel.
If a Persistence Memory drive is available, support is provided by https://github.com/jhalliday/mashona
- Since:
- 0.5.4
- Author:
- Pedro Ruivo
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanstatic FileChannelopenPMEMChannel(File file, int length, boolean create, boolean readSharedMetadata)
-
Constructor Details
-
FileProvider
public FileProvider()
-
-
Method Details
-
isPMEMAvailable
public static boolean isPMEMAvailable() -
openPMEMChannel
public static FileChannel openPMEMChannel(File file, int length, boolean create, boolean readSharedMetadata) throws IOException - Throws:
IOException
-