@InternalApi(value="For internal usage only") public class BigtableAdmin extends AbstractBigtableAdmin
AbstractBigtableAdmin
. Most methods in this class
unsupported
For internal use only - public for technical reasons.
Admin.MasterSwitchType
bigtableInstanceName, connection, LOG, tableAdapter, tableAdminClientWrapper
Constructor and Description |
---|
BigtableAdmin(CommonConnection connection) |
abort, addColumn, addColumn, assign, balancer, cloneSnapshot, cloneSnapshot, cloneSnapshot, close, closeRegion, closeRegion, closeRegion, closeRegionWithEncodedRegionName, compact, compact, compactRegion, compactRegion, compactRegionServer, convertToTableExistsException, coprocessorService, coprocessorService, createNamespace, createSplitKeys, createTable, createTable, createTable, createTable, createTableAsync, createTableAsync, deleteColumn, deleteColumn, deleteColumn, deleteNamespace, deleteRowRangeByPrefix, deleteSnapshot, deleteSnapshot, deleteSnapshots, deleteSnapshots, deleteTable, deleteTables, deleteTables, deleteTableSnapshots, deleteTableSnapshots, disableTable, disableTable, disableTables, disableTables, enableCatalogJanitor, enableTable, enableTable, enableTables, enableTables, execProcedure, execProcedureWithRet, flush, flushRegion, getAlterStatus, getAlterStatus, getAlterStatus, getBackupClusterName, getClusterName, getClusterStatus, getConfiguration, getConnection, getMasterCoprocessors, getMasterInfoPort, getNamespaceDescriptor, getOnlineRegions, getOperationTimeout, getTableDescriptor, getTableDescriptors, getTableDescriptorsByTableName, getTableNames, getTableRegions, isAborted, isCatalogJanitorEnabled, isProcedureFinished, isTableAvailable, isTableAvailable, isTableDisabled, isTableDisabled, isTableEnabled, isTableEnabled, listNamespaceDescriptors, listTableDescriptorsByNamespace, listTableNames, listTableNames, listTableNames, listTableNames, listTableNames, listTableNamesByNamespace, listTables, listTables, listTables, listTables, listTables, majorCompact, majorCompact, majorCompactRegion, majorCompactRegion, mergeRegions, modifyColumn, modifyColumns, modifyColumns, modifyNamespace, modifyTable, move, offline, restoreSnapshot, restoreSnapshot, restoreSnapshot, restoreSnapshot, rollWALWriter, runCatalogScan, setBalancerRunning, shutdown, snapshot, snapshot, snapshot, snapshotTable, split, split, splitRegion, splitRegion, stopMaster, stopRegionServer, tableExists, tableExists, toString, truncateTable, unassign, updateConfiguration, updateConfiguration
public BigtableAdmin(CommonConnection connection) throws IOException
IOException
public org.apache.hadoop.hbase.protobuf.generated.MasterProtos.SnapshotResponse takeSnapshotAsync(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription snapshot) throws IOException, SnapshotCreationException
IOException
SnapshotCreationException
public void disableTableAsync(TableName tableName) throws IOException
IOException
public void enableTableAsync(TableName tableName) throws IOException
IOException
public org.apache.hadoop.hbase.protobuf.generated.AdminProtos.GetRegionInfoResponse.CompactionState getCompactionState(TableName tableName) throws IOException
IOException
public org.apache.hadoop.hbase.protobuf.generated.AdminProtos.GetRegionInfoResponse.CompactionState getCompactionStateForRegion(byte[] bytes) throws IOException
IOException
public void snapshot(String snapshotId, TableName tableName, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription.Type type) throws IOException, SnapshotCreationException, IllegalArgumentException
The snapshot will be created with the ttl configured by BigtableOptionsFactory.BIGTABLE_SNAPSHOT_DEFAULT_TTL_SECS_KEY
key in the configuration. If not configured, the ttl will be set to serverside default.
public void snapshot(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription snapshot) throws IOException, SnapshotCreationException, IllegalArgumentException
public boolean isSnapshotFinished(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription snapshot) throws IOException, HBaseSnapshotException, UnknownSnapshotException
public void restoreSnapshot(String s, boolean b, boolean b1) throws IOException, RestoreSnapshotException
IOException
RestoreSnapshotException
public void cloneSnapshot(String s, TableName tableName, boolean b) throws IOException, TableExistsException, RestoreSnapshotException
public List<org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription> listSnapshots() throws IOException
IOException
public List<org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription> listSnapshots(String regex) throws IOException
IOException
public List<org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription> listSnapshots(Pattern pattern) throws IOException
IOException
public List<org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription> listTableSnapshots(String tableNameRegex, String snapshotNameRegex) throws IOException
IOException
public List<org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription> listTableSnapshots(Pattern tableNamePattern, Pattern snapshotNamePattern) throws IOException
IOException
public boolean isBalancerEnabled() throws IOException
IOException
public long getLastMajorCompactionTimestamp(TableName tableName) throws IOException
IOException
public long getLastMajorCompactionTimestampForRegion(byte[] regionName) throws IOException
IOException
public void setQuota(QuotaSettings quota) throws IOException
IOException
public QuotaRetriever getQuotaRetriever(QuotaFilter filter) throws IOException
IOException
public boolean normalize() throws IOException
IOException
public boolean isNormalizerEnabled() throws IOException
IOException
public boolean setNormalizerRunning(boolean on) throws IOException
IOException
public boolean setCleanerChoreRunning(boolean b) throws IOException
IOException
public boolean runCleanerChore() throws IOException
IOException
public boolean isCleanerChoreEnabled() throws IOException
IOException
public boolean isMasterInMaintenanceMode() throws IOException
IOException
public boolean abortProcedure(long procId, boolean mayInterruptIfRunning) throws IOException
IOException
public ProcedureInfo[] listProcedures() throws IOException
IOException
public Future<Boolean> abortProcedureAsync(long procId, boolean mayInterruptIfRunning) throws IOException
IOException
public List<SecurityCapability> getSecurityCapabilities() throws IOException
IOException
public boolean balancer(boolean arg0) throws IOException
IOException
public boolean isSplitOrMergeEnabled(Admin.MasterSwitchType arg0) throws IOException
IOException
public List<ServerName> listDeadServers() throws IOException
IOException
public List<ServerName> clearDeadServers(List<ServerName> list) throws IOException
IOException
public boolean[] setSplitOrMergeEnabled(boolean arg0, boolean arg1, Admin.MasterSwitchType... arg2) throws IOException
IOException