public class INCompressor extends DaemonThread
envImpl, logger, name, nWakeupRequests, stifleExceptionChatter| Constructor and Description |
|---|
INCompressor(EnvironmentImpl env,
long waitTime,
String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
addBinToQueue(BIN bin)
Adds the BIN to the queue if the BIN is not already in the queue.
|
void |
addMultipleBinRefsToQueue(Collection<BINReference> binRefs)
Adds an entire collection of BINReferences to the queue at once.
|
void |
doCompress()
The real work to doing a compress.
|
boolean |
exists(long nodeId) |
int |
getBinRefQueueSize() |
void |
lazyCompress(IN in,
boolean compressDirtySlots)
Lazily/opportunistically compress a full BIN.
|
StatGroup |
loadStats(StatsConfig config)
Return stats
|
protected long |
nDeadlockRetries()
Return the number of retries when a deadlock exception occurs.
|
void |
onWakeup()
onWakeup is synchronized to ensure that multiple invocations of the
DaemonThread aren't made.
|
BIN |
searchForBIN(DatabaseImpl db,
BINReference binRef)
Search the tree for the BIN that corresponds to this BINReference.
|
void |
setBeforeFlushTrackerHook(TestHook hook) |
void |
verifyCursors() |
checkErrorListener, createLogger, getNWakeupRequests, getThread, isPaused, isRunning, isShutdownRequested, requestShutdown, run, runOrPause, setWaitTime, shutdown, toString, wakeuppublic INCompressor(EnvironmentImpl env, long waitTime, String name)
public void setBeforeFlushTrackerHook(TestHook hook)
public void verifyCursors()
throws DatabaseException
DatabaseExceptionpublic int getBinRefQueueSize()
public void addBinToQueue(BIN bin)
public void addMultipleBinRefsToQueue(Collection<BINReference> binRefs)
public boolean exists(long nodeId)
public StatGroup loadStats(StatsConfig config)
protected long nDeadlockRetries()
nDeadlockRetries in class DaemonThreadpublic void onWakeup()
throws DatabaseException
DaemonThreadonWakeup in class DaemonThreadDatabaseExceptionpublic void doCompress()
throws DatabaseException
DatabaseExceptionpublic BIN searchForBIN(DatabaseImpl db, BINReference binRef)
binRef - the BINReference that indicates the bin we want.public void lazyCompress(IN in, boolean compressDirtySlots)
Copyright © 2024. All rights reserved.