|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sleepycat.je.evictor.Arbiter
class Arbiter
The Arbiter determines whether eviction should occur, by consulting the memory budget.
Constructor Summary | |
---|---|
Arbiter(EnvironmentImpl envImpl)
|
Method Summary | |
---|---|
(package private) long |
getEvictionPledge()
Return non zero number of bytes if eviction should happen. |
boolean |
isCacheFull()
Returns true if the JE cache level is above the point where it is likely that the cache has filled, and is staying full. |
(package private) boolean |
isOverBudget()
Return true if the memory budget is overspent. |
StatGroup |
loadStats(StatsConfig config)
|
(package private) boolean |
needCriticalEviction()
Do a check on whether synchronous eviction is needed. |
(package private) void |
setRunnableHook(TestHook<Boolean> hook)
|
(package private) boolean |
stillNeedsEviction()
Do a check on whether the cache should still be subject to eviction. |
boolean |
wasCacheEverFull()
Returns whether eviction has ever occurred, i.e., whether the cache has ever filled. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
Arbiter(EnvironmentImpl envImpl)
Method Detail |
---|
public StatGroup loadStats(StatsConfig config)
boolean isOverBudget()
boolean needCriticalEviction()
boolean stillNeedsEviction()
public boolean isCacheFull()
public boolean wasCacheEverFull()
long getEvictionPledge()
void setRunnableHook(TestHook<Boolean> hook)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |