public class INCompressor extends DaemonThread
name, nWakeupRequests, stifleExceptionChatter| 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<BINReference> binRefs,
boolean doWakeup)
Adds an entire collection of BINReferences to the queue at once.
|
void |
clearEnv() |
void |
doCompress()
The real work to doing a compress.
|
boolean |
exists(long nodeId) |
int |
getBinRefQueueSize() |
void |
lazyCompress(IN in,
LocalUtilizationTracker localTracker)
Lazily compress a single BIN.
|
void |
loadStats(StatsConfig config,
EnvironmentStats stat)
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 or DBIN that corresponds to this
BINReference.
|
void |
setBeforeFlushTrackerHook(TestHook hook) |
void |
verifyCursors() |
checkErrorListener, getExceptionListener, getNWakeupRequests, getThread, isPaused, isRunning, isShutdownRequested, requestShutdown, run, runOrPause, setExceptionListener, shutdown, toString, wakeuppublic INCompressor(EnvironmentImpl env, long waitTime, java.lang.String name) throws DatabaseException
DatabaseExceptionpublic void clearEnv()
public void setBeforeFlushTrackerHook(TestHook hook)
public void verifyCursors()
throws DatabaseException
DatabaseExceptionpublic 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<BINReference> binRefs, boolean doWakeup) throws DatabaseException
DatabaseExceptionpublic boolean exists(long nodeId)
public void loadStats(StatsConfig config, EnvironmentStats stat) throws DatabaseException
DatabaseExceptionprotected long 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, LocalUtilizationTracker localTracker) throws DatabaseException
DatabaseExceptionCopyright (c) 2004,2008 Oracle. All rights reserved.