Package org.apache.bookkeeper.bookie
Interface BookieFileChannel
- All Known Implementing Classes:
DefaultFileChannel
public interface BookieFileChannel
A FileChannel for the JournalChannel read and write, we can use this interface to extend the FileChannel
which we use in the JournalChannel.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close file channel and release all resources.booleanfileExists(File file) Check the given file if exists.getFD()Get the file descriptor of the opened file.An interface for get the FileChannel from the provider.
-
Method Details
-
getFileChannel
An interface for get the FileChannel from the provider.- Returns:
- Throws:
FileNotFoundExceptionIOException
-
fileExists
Check the given file if exists.- Parameters:
file-- Returns:
-
getFD
Get the file descriptor of the opened file.- Returns:
- Throws:
IOException
-
close
Close file channel and release all resources.- Throws:
IOException
-