org.apache.hadoop.hbase
Interface Abortable

All Known Subinterfaces:
HConnection, Server, StatisticsHConnection
All Known Implementing Classes:
HBaseAdmin, HConnectionManager.HConnectionImplementation, ReplicationPeerZKImpl, ZooKeeperWatcher

@InterfaceAudience.LimitedPrivate(value={"Coprocesssor","Phoenix"})
@InterfaceStability.Evolving
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
 void abort(String why, Throwable e)
          Abort the server or client.
 boolean isAborted()
          Check if the server or client was aborted.
 

Method Detail

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.

isAborted

boolean isAborted()
Check if the server or client was aborted.

Returns:
true if the server or client was aborted, false otherwise


Copyright © 2007-2015 The Apache Software Foundation. All Rights Reserved.