public class FileProcessor extends DaemonThread
envImpl, logger, name, nWakeupRequests, stifleExceptionChatter| Modifier and Type | Method and Description |
|---|---|
ExpirationTracker |
countExpiration(long fileNum)
Calculates expired bytes without performing any migration or other side
effects.
|
protected long |
nDeadlockRetries()
Return the number of retries when a deadlock exception occurs.
|
protected void |
onWakeup()
The thread is woken, either by an explicit notify (call to
Cleaner.wakeupActivate(), or when the timed wakeup interval elapses. |
checkErrorListener, createLogger, getNWakeupRequests, getThread, isPaused, isRunning, isShutdownRequested, requestShutdown, run, runOrPause, setWaitTime, shutdown, toString, wakeupprotected long nDeadlockRetries()
nDeadlockRetries in class DaemonThreadprotected void onWakeup()
Cleaner.wakeupActivate(), or when the timed wakeup interval elapses.
In the former case (a call to wakeupActivate), the 'activate' field will
be true and the doClean method is called here. This happens when the
number of bytes written exceeds the cleanerBytesInterval, a config
change is made that could impact cleaning, etc.
In the latter case (the wakeup interval elapsed), 'activate' will be
false. In this case, when there has been no writing since the last
wakeup, we perform cleaning and checkpointing, if needed to reclaim
space. This handles the situation where writing stops, but cleaning
or checkpointing or reserved file deletion may be needed. See EnvironmentConfig.CLEANER_WAKEUP_INTERVAL.
In all cases, when a disk limit is in violation we always call the
doClean method to ensure that Cleaner.manageDiskUsage() is
called in this situation. This is important to free disk space whenever
possible.onWakeup in class DaemonThreadpublic ExpirationTracker countExpiration(long fileNum)
fileNum - file to read.Copyright © 2024. All rights reserved.