Class ScrubberService
- java.lang.Object
-
- org.apache.bookkeeper.common.component.AbstractComponent<ConfT>
-
- org.apache.bookkeeper.common.component.AbstractLifecycleComponent<BookieConfiguration>
-
- org.apache.bookkeeper.server.component.ServerLifecycleComponent
-
- org.apache.bookkeeper.server.service.ScrubberService
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,LifecycleComponent
public class ScrubberService extends ServerLifecycleComponent
ALifecycleComponent
that runs the scrubber background service.
-
-
Field Summary
-
Fields inherited from class org.apache.bookkeeper.common.component.AbstractLifecycleComponent
lifecycle, statsLogger, uncaughtExceptionHandler
-
Fields inherited from class org.apache.bookkeeper.common.component.AbstractComponent
componentName, conf
-
-
Constructor Summary
Constructors Constructor Description ScrubberService(StatsLogger logger, BookieConfiguration conf, LedgerStorage ledgerStorage)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doClose()
protected void
doStart()
protected void
doStop()
-
Methods inherited from class org.apache.bookkeeper.server.component.ServerLifecycleComponent
loadServerComponents
-
Methods inherited from class org.apache.bookkeeper.common.component.AbstractLifecycleComponent
addLifecycleListener, close, getStatsLogger, lifecycleState, removeLifecycleListener, setExceptionHandler, start, stop
-
Methods inherited from class org.apache.bookkeeper.common.component.AbstractComponent
getConf, getName
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.bookkeeper.common.component.LifecycleComponent
getName, publishInfo
-
-
-
-
Constructor Detail
-
ScrubberService
public ScrubberService(StatsLogger logger, BookieConfiguration conf, LedgerStorage ledgerStorage)
-
-
Method Detail
-
doStart
protected void doStart()
- Specified by:
doStart
in classAbstractLifecycleComponent<BookieConfiguration>
-
doStop
protected void doStop()
- Specified by:
doStop
in classAbstractLifecycleComponent<BookieConfiguration>
-
doClose
protected void doClose() throws java.io.IOException
- Specified by:
doClose
in classAbstractLifecycleComponent<BookieConfiguration>
- Throws:
java.io.IOException
-
-