-
public final class GarbageCollector
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classGarbageCollector.Companion
-
Field Summary
Fields Modifier and Type Field Description private LonglastInvocationTimeprivate final UtilizationProfileutilizationProfileprivate final BooleanisSuspended
-
Constructor Summary
Constructors Constructor Description GarbageCollector(EnvironmentImpl environment)
-
Method Summary
Modifier and Type Method Description final LonggetLastInvocationTime()final UnitsetLastInvocationTime(Long lastInvocationTime)final UtilizationProfilegetUtilizationProfile()final BooleangetIsSuspended()final Unitclear()final JobProcessorAdaptergetCleanerJobProcessor()final UnitsetCleanerJobProcessor(JobProcessorAdapter processor)final UnitaddBeforeGcAction(Runnable action)final Unitwake(Boolean estimateTotalUtilization)final UnitfetchExpiredLoggables(ExpiredLoggableCollection loggables)final <ERROR CLASS>getFileFreeBytes(Long fileAddress)final <ERROR CLASS>suspend()final <ERROR CLASS>resume()final Unitfinish()final BooleandoCleanFile(Long fileAddress)final UnitwaitForPendingGC()For tests only!!! final UnitcleanEntireLog()For tests only!!! final UnittestDeletePendingFiles()For tests only!!! -
-
Constructor Detail
-
GarbageCollector
GarbageCollector(EnvironmentImpl environment)
-
-
Method Detail
-
getLastInvocationTime
final Long getLastInvocationTime()
-
setLastInvocationTime
final Unit setLastInvocationTime(Long lastInvocationTime)
-
getUtilizationProfile
final UtilizationProfile getUtilizationProfile()
-
getIsSuspended
final Boolean getIsSuspended()
-
getCleanerJobProcessor
final JobProcessorAdapter getCleanerJobProcessor()
-
setCleanerJobProcessor
final Unit setCleanerJobProcessor(JobProcessorAdapter processor)
-
addBeforeGcAction
final Unit addBeforeGcAction(Runnable action)
-
fetchExpiredLoggables
final Unit fetchExpiredLoggables(ExpiredLoggableCollection loggables)
-
getFileFreeBytes
final <ERROR CLASS> getFileFreeBytes(Long fileAddress)
-
suspend
final <ERROR CLASS> suspend()
-
resume
final <ERROR CLASS> resume()
-
doCleanFile
final Boolean doCleanFile(Long fileAddress)
-
waitForPendingGC
final Unit waitForPendingGC()
For tests only!!!
-
cleanEntireLog
final Unit cleanEntireLog()
For tests only!!!
-
testDeletePendingFiles
final Unit testDeletePendingFiles()
For tests only!!!
-
-
-
-