Class AbstractNonHaServices

    • Field Detail

      • lock

        protected final Object lock
    • Constructor Detail

      • AbstractNonHaServices

        public AbstractNonHaServices()
    • Method Detail

      • close

        public void close()
                   throws Exception
        Description copied from interface: HighAvailabilityServices
        Closes the high availability services, releasing all resources.

        This method does not delete or clean up any data stored in external stores (file systems, ZooKeeper, etc). Another instance of the high availability services will be able to recover the job.

        If an exception occurs during closing services, this method will attempt to continue closing other services and report exceptions only after all services have been attempted to be closed.

        Specified by:
        close in interface AutoCloseable
        Specified by:
        close in interface HighAvailabilityServices
        Throws:
        Exception - Thrown, if an exception occurred while closing these services.
      • cleanupAllData

        public void cleanupAllData()
                            throws Exception
        Description copied from interface: HighAvailabilityServices
        Deletes all data stored by high availability services in external stores.

        After this method was called, any job or session that was managed by these high availability services will be unrecoverable.

        If an exception occurs during cleanup, this method will attempt to continue the cleanup and report exceptions only after all cleanup steps have been attempted.

        Specified by:
        cleanupAllData in interface HighAvailabilityServices
        Throws:
        Exception - if an error occurred while cleaning up data stored by them.
      • checkNotShutdown

        protected void checkNotShutdown()
      • isShutDown

        protected boolean isShutDown()