public class INCompressor extends DaemonThread
name, nWakeupRequests, stifleExceptionChatter, workQueue, workQueueLatch| Constructor and Description |
|---|
INCompressor(EnvironmentImpl env,
long waitTime,
java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
addBinKeyToQueue(BIN bin,
Key deletedKey,
boolean doWakeup)
Adds the BIN and deleted Key to the queue if the BIN is not already in
the queue, or adds the deleted key to an existing entry if one exists.
|
void |
addBinRefToQueue(BINReference binRef,
boolean doWakeup)
Adds the BINReference to the queue if the BIN is not already in the
queue, or adds the deleted keys to an existing entry if one exists.
|
void |
addMultipleBinRefsToQueue(java.util.Collection binRefs,
boolean doWakeup)
Adds an entire collection of BINReferences to the queue at once.
|
void |
addToQueue(java.lang.Object o)
The default daemon work queue is not used because we need a map, not a
set.
|
void |
clearEnv() |
void |
doCompress()
The real work to doing a compress.
|
boolean |
exists(long nodeId) |
int |
getBinRefQueueSize() |
void |
lazyCompress(IN in,
UtilizationTracker tracker)
Lazily compress a single BIN.
|
void |
loadStats(StatsConfig config,
EnvironmentStats stat)
Return stats
|
protected int |
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 or DBIN that corresponds to this
BINReference.
|
void |
verifyCursors() |
addToQueueAlreadyLatched, getNWakeupRequests, getQueueSize, getThread, isPaused, isRunning, isShutdownRequested, requestShutdown, run, runOrPause, shutdown, toString, wakeuppublic INCompressor(EnvironmentImpl env, long waitTime, java.lang.String name) throws DatabaseException
DatabaseExceptionpublic void clearEnv()
public void verifyCursors()
throws DatabaseException
DatabaseExceptionpublic void addToQueue(java.lang.Object o)
throws DatabaseException
addToQueue in class DaemonThreadDatabaseExceptionpublic int getBinRefQueueSize()
throws DatabaseException
DatabaseExceptionpublic void addBinKeyToQueue(BIN bin, Key deletedKey, boolean doWakeup) throws DatabaseException
DatabaseExceptionpublic void addBinRefToQueue(BINReference binRef, boolean doWakeup) throws DatabaseException
DatabaseExceptionpublic void addMultipleBinRefsToQueue(java.util.Collection binRefs,
boolean doWakeup)
throws DatabaseException
DatabaseExceptionpublic boolean exists(long nodeId)
public void loadStats(StatsConfig config, EnvironmentStats stat) throws DatabaseException
DatabaseExceptionprotected int nDeadlockRetries()
throws DatabaseException
nDeadlockRetries in class DaemonThreadDatabaseExceptionpublic void onWakeup()
throws DatabaseException
DaemonThreadonWakeup in class DaemonThreadDatabaseExceptionpublic void doCompress()
throws DatabaseException
DatabaseExceptionpublic BIN searchForBIN(DatabaseImpl db, BINReference binRef) throws DatabaseException
binRef - the BINReference that indicates the bin we want.DatabaseExceptionpublic void lazyCompress(IN in, UtilizationTracker tracker) throws DatabaseException
DatabaseException