Interface Abortable

All Known Subinterfaces:
Admin, ClusterConnection, Connection, Hbck, MasterServices, RegionServerServices, Server
All Known Implementing Classes:
BackupHFileCleaner, ConnectionImplementation, ConnectionUtils.MasterlessConnection, DumpReplicationQueues.WarnOnlyAbortable, HBaseAdmin, HBaseHbck, HBaseInterClusterReplicationEndpoint, HBaseReplicationEndpoint, HMaster, HMasterCommandLine.LocalHMaster, HRegionServer, LogRollBackupSubprocedurePool, RegionReplicaReplicationEndpoint, ReplicationSyncUp.DummyServer, ServerConnectionUtils.ShortCircuitingClusterConnection, 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