|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sleepycat.je.cleaner.DbFileSummaryMap
public class DbFileSummaryMap
Constructor Summary | |
---|---|
DbFileSummaryMap(boolean countParentMapEntry)
Creates a map of Long file number to DbFileSummary. |
Method Summary | |
---|---|
boolean |
contains(Long fileNum)
|
Set<Map.Entry<Long,DbFileSummary>> |
entrySet()
|
DbFileSummary |
get(Long fileNum,
boolean adjustMemBudget,
boolean checkResurrected,
FileManager fileManager)
Returns the DbFileSummary for the given file, allocating it if necessary. |
long |
getMemorySize()
|
void |
init(EnvironmentImpl env)
Starts memory budgeting. |
boolean |
remove(Long fileNum)
Removes the DbFileSummary for the given file. |
void |
repair(EnvironmentImpl env)
Removes entries for deleted files that were created by JE 3.3.74 and earlier. |
int |
size()
|
void |
subtractFromMemoryBudget()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DbFileSummaryMap(boolean countParentMapEntry)
Always counts this object and its contained objects in the memory budget. If countParentMapEntry is true, also counts a single HashMap entry that contains this object. This option allows all memory budget adjustments for LocalUtilizationTracker to be contained in this class.
Method Detail |
---|
public void init(EnvironmentImpl env)
This method is separate from the constructor so that the map may be read from the log without having the EnvironmentImpl object available.
public DbFileSummary get(Long fileNum, boolean adjustMemBudget, boolean checkResurrected, FileManager fileManager)
Must be called under the log write latch.
fileNum
- the file identifying the summary.adjustMemBudget
- see init().checkResurrected
- is true if this method should check fileNum and
return null if the file does not exist.fileManager
- is used to check for resurrected files and may be
null if checkResurrected is false.public boolean remove(Long fileNum)
Must be called under the log write latch.
public long getMemorySize()
public void subtractFromMemoryBudget()
public Set<Map.Entry<Long,DbFileSummary>> entrySet()
public boolean contains(Long fileNum)
public int size()
public String toString()
toString
in class Object
public void repair(EnvironmentImpl env)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |