Interface LogFile
- All Known Implementing Classes:
AppendLogFile
,ReuseLogFile
public interface LogFile
-
Method Summary
Modifier and TypeMethodDescriptionvoid
flush
(boolean sync) getFile()
int
long
void
init
(long maxSize) boolean
void
reset
(boolean sync) void
reset
(boolean sync, DataOutput copyHere) void
setInMemoryMode
(boolean b) void
void
write
(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
-