class FileProcessor extends DaemonThread
envImpl, logger, name, nWakeupRequests, stifleExceptionChatter
Constructor and Description |
---|
FileProcessor(java.lang.String name,
EnvironmentImpl env,
Cleaner cleaner,
UtilizationProfile profile,
UtilizationCalculator calculator,
FileSelector fileSelector) |
Modifier and Type | Method and Description |
---|---|
void |
clearEnv() |
int |
doClean(boolean invokedFromDaemon,
boolean cleanMultipleFiles,
boolean forceCleaning)
Cleans selected files and returns the number of files cleaned.
|
protected long |
nDeadlockRetries()
Return the number of retries when a deadlock exception occurs.
|
void |
onWakeup()
Activates the cleaner.
|
(package private) void |
testProcessLN(LN targetLN,
long logLsn,
byte[] key,
DatabaseId dbId,
java.util.Map<DatabaseId,DatabaseImpl> dbCache)
Unit testing.
|
checkErrorListener, createLogger, getExceptionListener, getNWakeupRequests, getThread, isPaused, isRunning, isShutdownRequested, requestShutdown, run, runOrPause, setExceptionListener, shutdown, toString, wakeup
FileProcessor(java.lang.String name, EnvironmentImpl env, Cleaner cleaner, UtilizationProfile profile, UtilizationCalculator calculator, FileSelector fileSelector)
public void clearEnv()
protected long nDeadlockRetries()
nDeadlockRetries
in class DaemonThread
public void onWakeup() throws DatabaseException
onWakeup
in class DaemonThread
DatabaseException
public int doClean(boolean invokedFromDaemon, boolean cleanMultipleFiles, boolean forceCleaning) throws DatabaseException
invokedFromDaemon
- currently has no effect.cleanMultipleFiles
- is true to clean until we're under budget,
or false to clean at most one file.forceCleaning
- is true to clean even if we're not under the
utilization threshold.DatabaseException
void testProcessLN(LN targetLN, long logLsn, byte[] key, DatabaseId dbId, java.util.Map<DatabaseId,DatabaseImpl> dbCache)
Copyright (c) 2004-2012 Oracle. All rights reserved.