Interface LogFile
- All Known Implementing Classes:
AppendLogFile,ReuseLogFile
public interface LogFile
-
Method Summary
Modifier and TypeMethodDescriptionvoidflush(boolean sync) getFile()intlongvoidinit(long maxSize) booleanvoidreset(boolean sync) voidreset(boolean sync, DataOutput copyHere) voidsetInMemoryMode(boolean b) voidvoidwrite(LogRecord logRecord, DataOutput copyHere)
-
Method Details
-
init
void init(long maxSize) -
setInMemoryMode
void setInMemoryMode(boolean b) -
isInMemoryMode
boolean isInMemoryMode() -
getFile
RandomAccessFile getFile() -
write
- Throws:
IOException
-
write
- Throws:
IOException
-
getFlushSize
int getFlushSize() -
getPosition
long getPosition() -
flush
- Throws:
IOException
-
reset
- Throws:
IOException
-
reset
- Throws:
IOException
-