public class MockNoopMasterServices extends Object implements MasterServices
| Constructor and Description |
|---|
MockNoopMasterServices() |
MockNoopMasterServices(org.apache.hadoop.conf.Configuration conf) |
public MockNoopMasterServices()
public MockNoopMasterServices(org.apache.hadoop.conf.Configuration conf)
public void checkTableModifiable(TableName tableName) throws IOException
checkTableModifiable in interface MasterServicesIOExceptionpublic long createTable(TableDescriptor desc, byte[][] splitKeys, long nonceGroup, long nonce) throws IOException
createTable in interface MasterServicesIOExceptionpublic long createSystemTable(TableDescriptor tableDescriptor) throws IOException
createSystemTable in interface MasterServicesIOExceptionpublic org.apache.hadoop.hbase.master.assignment.AssignmentManager getAssignmentManager()
getAssignmentManager in interface MasterServicespublic org.apache.hadoop.hbase.executor.ExecutorService getExecutorService()
getExecutorService in interface MasterServicespublic ChoreService getChoreService()
getChoreService in interface Serverpublic org.apache.hadoop.hbase.master.normalizer.RegionNormalizer getRegionNormalizer()
getRegionNormalizer in interface MasterServicespublic CatalogJanitor getCatalogJanitor()
getCatalogJanitor in interface MasterServicespublic MasterFileSystem getMasterFileSystem()
getMasterFileSystem in interface MasterServicespublic MasterWalManager getMasterWalManager()
getMasterWalManager in interface MasterServicespublic MasterCoprocessorHost getMasterCoprocessorHost()
getMasterCoprocessorHost in interface MasterServicespublic MasterQuotaManager getMasterQuotaManager()
getMasterQuotaManager in interface MasterServicespublic org.apache.hadoop.hbase.procedure2.ProcedureExecutor<org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv> getMasterProcedureExecutor()
getMasterProcedureExecutor in interface MasterServicespublic MetricsMaster getMasterMetrics()
getMasterMetrics in interface MasterServicespublic ServerManager getServerManager()
getServerManager in interface MasterServicespublic ZKWatcher getZooKeeper()
getZooKeeper in interface Serverpublic CoordinatedStateManager getCoordinatedStateManager()
getCoordinatedStateManager in interface Serverpublic MetaTableLocator getMetaTableLocator()
getMetaTableLocator in interface Serverpublic ClusterConnection getConnection()
getConnection in interface Serverpublic org.apache.hadoop.conf.Configuration getConfiguration()
getConfiguration in interface Serverpublic ServerName getServerName()
getServerName in interface Serverpublic boolean isStopping()
isStopping in interface Serverpublic TableDescriptors getTableDescriptors()
getTableDescriptors in interface MasterServicespublic boolean registerService(Service instance)
registerService in interface MasterServicespublic boolean abortProcedure(long procId, boolean mayInterruptIfRunning) throws IOException
abortProcedure in interface MasterServicesIOExceptionpublic List<org.apache.hadoop.hbase.procedure2.Procedure<?>> getProcedures() throws IOException
getProcedures in interface MasterServicesIOExceptionpublic List<org.apache.hadoop.hbase.procedure2.LockedResource> getLocks() throws IOException
getLocks in interface MasterServicesIOExceptionpublic List<TableDescriptor> listTableDescriptorsByNamespace(String name) throws IOException
listTableDescriptorsByNamespace in interface MasterServicesIOExceptionpublic List<TableName> listTableNamesByNamespace(String name) throws IOException
listTableNamesByNamespace in interface MasterServicesIOExceptionpublic long deleteTable(TableName tableName, long nonceGroup, long nonce) throws IOException
deleteTable in interface MasterServicesIOExceptionpublic long truncateTable(TableName tableName, boolean preserveSplits, long nonceGroup, long nonce) throws IOException
truncateTable in interface MasterServicesIOExceptionpublic long modifyTable(TableName tableName, TableDescriptor descriptor, long nonceGroup, long nonce) throws IOException
modifyTable in interface MasterServicesIOExceptionpublic long enableTable(TableName tableName, long nonceGroup, long nonce) throws IOException
enableTable in interface MasterServicesIOExceptionpublic long disableTable(TableName tableName, long nonceGroup, long nonce) throws IOException
disableTable in interface MasterServicesIOExceptionpublic long addColumn(TableName tableName, ColumnFamilyDescriptor columnDescriptor, long nonceGroup, long nonce) throws IOException
addColumn in interface MasterServicesIOExceptionpublic long modifyColumn(TableName tableName, ColumnFamilyDescriptor descriptor, long nonceGroup, long nonce) throws IOException
modifyColumn in interface MasterServicesIOExceptionpublic long deleteColumn(TableName tableName, byte[] columnName, long nonceGroup, long nonce) throws IOException
deleteColumn in interface MasterServicesIOExceptionpublic long mergeRegions(RegionInfo[] regionsToMerge, boolean forcible, long nonceGroup, long nonce) throws IOException
mergeRegions in interface MasterServicesIOExceptionpublic long splitRegion(RegionInfo regionInfo, byte[] splitRow, long nonceGroup, long nonce) throws IOException
splitRegion in interface MasterServicesIOExceptionpublic TableStateManager getTableStateManager()
getTableStateManager in interface MasterServicespublic boolean isActiveMaster()
isActiveMaster in interface MasterServicespublic boolean isInitialized()
isInitialized in interface MasterServicespublic boolean isInMaintenanceMode()
isInMaintenanceMode in interface MasterServicespublic long getLastMajorCompactionTimestamp(TableName table) throws IOException
getLastMajorCompactionTimestamp in interface MasterServicesIOExceptionpublic long getLastMajorCompactionTimestampForRegion(byte[] regionName) throws IOException
getLastMajorCompactionTimestampForRegion in interface MasterServicesIOExceptionpublic ClusterSchema getClusterSchema()
getClusterSchema in interface MasterServicespublic ClusterConnection getClusterConnection()
getClusterConnection in interface Serverpublic LoadBalancer getLoadBalancer()
getLoadBalancer in interface MasterServicespublic FavoredNodesManager getFavoredNodesManager()
getFavoredNodesManager in interface MasterServicespublic org.apache.hadoop.hbase.master.snapshot.SnapshotManager getSnapshotManager()
getSnapshotManager in interface MasterServicespublic org.apache.hadoop.hbase.procedure.MasterProcedureManagerHost getMasterProcedureManagerHost()
getMasterProcedureManagerHost in interface MasterServicespublic boolean isSplitOrMergeEnabled(MasterSwitchType switchType)
isSplitOrMergeEnabled in interface MasterServicespublic long addReplicationPeer(String peerId, ReplicationPeerConfig peerConfig, boolean enabled) throws ReplicationException
addReplicationPeer in interface MasterServicesReplicationExceptionpublic long removeReplicationPeer(String peerId) throws ReplicationException
removeReplicationPeer in interface MasterServicesReplicationExceptionpublic long enableReplicationPeer(String peerId) throws ReplicationException, IOException
enableReplicationPeer in interface MasterServicesReplicationExceptionIOExceptionpublic long disableReplicationPeer(String peerId) throws ReplicationException, IOException
disableReplicationPeer in interface MasterServicesReplicationExceptionIOExceptionpublic ReplicationPeerConfig getReplicationPeerConfig(String peerId) throws ReplicationException, IOException
getReplicationPeerConfig in interface MasterServicesReplicationExceptionIOExceptionpublic long updateReplicationPeerConfig(String peerId, ReplicationPeerConfig peerConfig) throws ReplicationException, IOException
updateReplicationPeerConfig in interface MasterServicesReplicationExceptionIOExceptionpublic List<ReplicationPeerDescription> listReplicationPeers(String regex) throws ReplicationException, IOException
listReplicationPeers in interface MasterServicesReplicationExceptionIOExceptionpublic org.apache.hadoop.hbase.master.locking.LockManager getLockManager()
getLockManager in interface MasterServicespublic String getRegionServerVersion(ServerName sn)
getRegionServerVersion in interface MasterServicespublic void checkIfShouldMoveSystemRegionAsync()
checkIfShouldMoveSystemRegionAsync in interface MasterServicespublic String getClientIdAuditPrefix()
getClientIdAuditPrefix in interface MasterServicespublic org.apache.hadoop.hbase.procedure2.ProcedureEvent<?> getInitializedEvent()
getInitializedEvent in interface MasterServicespublic org.apache.hadoop.fs.FileSystem getFileSystem()
getFileSystem in interface Serverpublic Connection createConnection(org.apache.hadoop.conf.Configuration conf) throws IOException
createConnection in interface ServerIOExceptionpublic org.apache.hadoop.hbase.master.replication.ReplicationPeerManager getReplicationPeerManager()
getReplicationPeerManager in interface MasterServicespublic boolean isClusterUp()
isClusterUp in interface MasterServicesCopyright © 2007–2019 Cloudera. All rights reserved.