@InterfaceAudience.Private public class HBaseHbck extends Object implements Hbck
ClusterConnection.getHbck()
to obtain an instance of Hbck
instead of
constructing
an HBaseHbck directly. This will be mostly used by hbck tool.
Connection should be an unmanaged connection obtained via
ConnectionFactory.createConnection(Configuration)
.
An instance of this class is lightweight and not-thread safe. A new instance should be created by each thread. Pooling or caching of the instance is not recommended.
ConnectionFactory
,
ClusterConnection
,
Hbck
Modifier and Type | Method and Description |
---|---|
void |
abort(String why,
Throwable e)
Abort the server or client.
|
void |
close() |
boolean |
isAborted()
Check if the server or client was aborted.
|
TableState |
setTableStateInMeta(TableState state)
NOTE: This is a dangerous action, as existing running procedures for the table or regions
which belong to the table may get confused.
|
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
public void abort(String why, Throwable e)
Abortable
public boolean isAborted()
Abortable
public TableState setTableStateInMeta(TableState state) throws IOException
setTableStateInMeta
in interface Hbck
state
- table stateIOException
Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.