Class UncleanShutdownDetectionImpl

  • All Implemented Interfaces:
    UncleanShutdownDetection

    public class UncleanShutdownDetectionImpl
    extends java.lang.Object
    implements UncleanShutdownDetection
    Used to determine if the prior shutdown was unclean or not. It does so by adding a file to each ledger directory after successful start-up and removing the file on graceful shutdown. Any abrupt termination will cause one or more of these files to not be cleared and so on the subsequent boot-up, the presence of any of these files will indicate an unclean shutdown.