Interface Abortable

All Known Subinterfaces:
Admin, Connection, Hbck, MasterServices, RegionServerServices, Server
All Known Implementing Classes:
AdminOverAsyncAdmin, BackupHFileCleaner, ConnectionOverAsyncConnection, HBaseHbck, HBaseInterClusterReplicationEndpoint, HBaseReplicationEndpoint, HBaseServerBase, HMaster, HMasterCommandLine.LocalHMaster, HRegionServer, LogRollBackupSubprocedurePool, MiniHBaseCluster.MiniHBaseClusterRegionServer, ReplicationSyncUp.DummyServer, SharedConnection, ThriftAdmin, ThriftConnection, ZKWatcher

@Private public interface Abortable
Interface to support the aborting of a given server or client.

This is used primarily for ZooKeeper usage when we could get an unexpected and fatal exception, requiring an abort.

Implemented by the Master, RegionServer, and TableServers (client).

  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    It just calls another abort method and the Throwable parameter is null.
    void
    Abort the server or client.
    boolean
    Check if the server or client was aborted.
  • Method Details

    • abort

      void abort(String why, Throwable e)
      Abort the server or client.
      Parameters:
      why - Why we're aborting.
      e - Throwable that caused abort. Can be null.
    • abort

      default void abort(String why)
      It just calls another abort method and the Throwable parameter is null.
      Parameters:
      why - Why we're aborting.
      See Also:
    • isAborted

      boolean isAborted()
      Check if the server or client was aborted.
      Returns:
      true if the server or client was aborted, false otherwise