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) |
void |
clearCounts()
Used during compacting (clearing counters)
|
String |
debug()
Receive debug information about the journal
|
void |
decPosCount() |
void |
decSize(int bytes) |
void |
extendOffset(int delta) |
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() |
boolean |
resetNegCount(JournalFile file) |
void |
setCanReclaim(boolean canReclaim) |
void |
setOffset(long offset) |
String |
toString() |
public JournalFileImpl(SequentialFile file, long fileID, int version)
public void clearCounts()
JournalFile
clearCounts
in interface JournalFile
public int getPosCount()
getPosCount
in interface JournalFile
public boolean isCanReclaim()
isCanReclaim
in interface JournalFile
public void setCanReclaim(boolean canReclaim)
setCanReclaim
in interface JournalFile
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 boolean resetNegCount(JournalFile file)
resetNegCount
in interface JournalFile
public void incPosCount()
incPosCount
in interface JournalFile
public void decPosCount()
decPosCount
in interface JournalFile
public void extendOffset(int delta)
public long getOffset()
getOffset
in interface JournalFile
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 © 2012 JBoss by Red Hat. All Rights Reserved.