Package org.apache.bookkeeper.bookie
Interface UncleanShutdownDetection
- All Known Implementing Classes:
UncleanShutdownDetectionImpl
public interface UncleanShutdownDetection
An interface for unclean shutdown detection. The bookie
must register its start-up and then register its graceful
shutdown. Abrupt termination will not register the clean
shutdown.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidvoid
-
Method Details
-
registerStartUp
- Throws:
IOException
-
registerCleanShutdown
void registerCleanShutdown() -
lastShutdownWasUnclean
boolean lastShutdownWasUnclean()
-