public class JournalFileImpl extends Object implements JournalFile
Constructor and Description |
---|
JournalFileImpl(SequentialFile file,
long fileID,
int version) |
Modifier and Type | Method and Description |
---|---|
void |
addSize(int bytes) |
String |
debug()
Receive debug information about the journal
|
void |
decPosCount() |
void |
decSize(int bytes) |
SequentialFile |
getFile() |
long |
getFileID() |
int |
getJournalVersion() |
int |
getLiveSize() |
int |
getNegCount(JournalFile file) |
long |
getOffset() |
int |
getPosCount() |
int |
getRecordID()
This is a field to identify that records on this file actually belong to the current file.
|
int |
getTotalNegativeToOthers()
The total number of deletes this file has
|
void |
incNegCount(JournalFile file) |
void |
incPosCount() |
boolean |
isCanReclaim()
Whether this file's contents can deleted and the file reused.
|
void |
setCanReclaim(boolean canReclaim)
Whether this file's contents can deleted and the file reused.
|
void |
setOffset(long offset) |
String |
toString() |
public JournalFileImpl(SequentialFile file, long fileID, int version)
public int getPosCount()
getPosCount
in interface JournalFile
public boolean isCanReclaim()
JournalFile
isCanReclaim
in interface JournalFile
true
if the file can already be deleted.public void setCanReclaim(boolean canReclaim)
JournalFile
setCanReclaim
in interface JournalFile
canReclaim
- if true
then this file's contents are unimportant and may be deleted
at any time.public void incNegCount(JournalFile file)
incNegCount
in interface JournalFile
public int getNegCount(JournalFile file)
getNegCount
in interface JournalFile
public int getJournalVersion()
getJournalVersion
in interface JournalFile
public void incPosCount()
incPosCount
in interface JournalFile
public void decPosCount()
decPosCount
in interface JournalFile
public long getOffset()
public long getFileID()
getFileID
in interface JournalFile
public int getRecordID()
JournalFile
getRecordID
in interface JournalFile
public void setOffset(long offset)
public SequentialFile getFile()
getFile
in interface JournalFile
public String debug()
public void addSize(int bytes)
addSize
in interface JournalFile
public void decSize(int bytes)
decSize
in interface JournalFile
public int getLiveSize()
getLiveSize
in interface JournalFile
public int getTotalNegativeToOthers()
JournalFile
getTotalNegativeToOthers
in interface JournalFile
Copyright © 2018 JBoss by Red Hat. All rights reserved.