public class MockMasterServices extends MockNoopMasterServices
Modifier and Type | Class and Description |
---|---|
private static class |
MockMasterServices.MockRegionStateStore |
Modifier and Type | Field and Description |
---|---|
private org.apache.hadoop.hbase.master.assignment.AssignmentManager |
assignmentManager |
private org.apache.hadoop.hbase.master.LoadBalancer |
balancer |
private org.apache.hadoop.hbase.client.ClusterConnection |
connection |
static String |
DEFAULT_COLUMN_FAMILY_NAME |
private org.apache.hadoop.hbase.master.MasterFileSystem |
fileSystemManager |
private org.apache.hadoop.hbase.procedure2.ProcedureEvent<?> |
initialized |
private org.apache.hadoop.hbase.master.region.MasterRegion |
masterRegion |
static org.apache.hadoop.hbase.ServerName |
MOCK_MASTER_SERVERNAME |
private org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv |
procedureEnv |
private org.apache.hadoop.hbase.procedure2.ProcedureExecutor<org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv> |
procedureExecutor |
private org.apache.hadoop.hbase.procedure2.store.ProcedureStore |
procedureStore |
private org.apache.hadoop.hbase.master.ServerManager |
serverManager |
private org.apache.hadoop.hbase.master.SplitWALManager |
splitWALManager |
private org.apache.hadoop.hbase.master.TableStateManager |
tableStateManager |
private org.apache.hadoop.hbase.master.MasterWalManager |
walManager |
Constructor and Description |
---|
MockMasterServices(org.apache.hadoop.conf.Configuration conf,
NavigableMap<org.apache.hadoop.hbase.ServerName,SortedSet<byte[]>> regionsToRegionServers) |
Modifier and Type | Method and Description |
---|---|
private static org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.MultiResponse |
buildMultiResponse(org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.MultiRequest req) |
org.apache.hadoop.hbase.master.assignment.AssignmentManager |
getAssignmentManager() |
org.apache.hadoop.hbase.client.ClusterConnection |
getConnection() |
org.apache.hadoop.hbase.CoordinatedStateManager |
getCoordinatedStateManager() |
org.apache.hadoop.hbase.procedure2.ProcedureEvent<?> |
getInitializedEvent() |
org.apache.hadoop.hbase.master.LoadBalancer |
getLoadBalancer() |
org.apache.hadoop.hbase.master.MasterFileSystem |
getMasterFileSystem() |
org.apache.hadoop.hbase.procedure2.ProcedureExecutor<org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv> |
getMasterProcedureExecutor() |
org.apache.hadoop.hbase.master.MasterWalManager |
getMasterWalManager() |
org.apache.hadoop.hbase.master.ServerManager |
getServerManager() |
org.apache.hadoop.hbase.ServerName |
getServerName() |
org.apache.hadoop.hbase.master.SplitWALManager |
getSplitWALManager() |
org.apache.hadoop.hbase.TableDescriptors |
getTableDescriptors() |
org.apache.hadoop.hbase.master.TableStateManager |
getTableStateManager() |
boolean |
isInitialized() |
void |
restartRegionServer(org.apache.hadoop.hbase.ServerName serverName)
Call this restart method only after running MockMasterServices#start() The RSs can be
differentiated by the port number, see ServerName in MockMasterServices#start() method above.
|
void |
start(int numServes,
org.apache.hadoop.hbase.master.procedure.RSProcedureDispatcher remoteDispatcher) |
private void |
startProcedureExecutor(org.apache.hadoop.hbase.master.procedure.RSProcedureDispatcher remoteDispatcher) |
void |
stop(String why) |
private void |
stopProcedureExecutor() |
abort, abortProcedure, addColumn, addReplicationPeer, checkIfShouldMoveSystemRegionAsync, checkTableModifiable, createConnection, createSystemTable, createTable, deleteColumn, deleteTable, disableReplicationPeer, disableTable, enableReplicationPeer, enableTable, executeRegionPlansWithThrottling, flushMasterStore, getAccessChecker, getCatalogJanitor, getChoreService, getClientIdAuditPrefix, getClusterConnection, getClusterSchema, getConfiguration, getExecutorService, getFavoredNodesManager, getFileSystem, getLastMajorCompactionTimestamp, getLastMajorCompactionTimestampForRegion, getLockManager, getLocks, getMasterCoprocessorHost, getMasterMetrics, getMasterProcedureManagerHost, getMasterQuotaManager, getMetaLocationSyncer, getProcedures, getRegionNormalizerManager, getRegionServerVersion, getReplicationPeerConfig, getReplicationPeerManager, getSnapshotManager, getZKPermissionWatcher, getZooKeeper, isAborted, isActiveMaster, isClusterUp, isInMaintenanceMode, isSplitOrMergeEnabled, isStopped, isStopping, listReplicationPeers, listTableDescriptorsByNamespace, listTableNamesByNamespace, mergeRegions, modifyColumn, modifyColumnStoreFileTracker, modifyTable, modifyTableStoreFileTracker, normalizeRegions, registerService, removeReplicationPeer, runReplicationBarrierCleaner, skipRegionManagementAction, splitRegion, truncateTable, updateReplicationPeerConfig
private final org.apache.hadoop.hbase.master.MasterFileSystem fileSystemManager
private final org.apache.hadoop.hbase.master.MasterWalManager walManager
private final org.apache.hadoop.hbase.master.SplitWALManager splitWALManager
private final org.apache.hadoop.hbase.master.assignment.AssignmentManager assignmentManager
private final org.apache.hadoop.hbase.master.TableStateManager tableStateManager
private final org.apache.hadoop.hbase.master.region.MasterRegion masterRegion
private org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv procedureEnv
private org.apache.hadoop.hbase.procedure2.ProcedureExecutor<org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv> procedureExecutor
private org.apache.hadoop.hbase.procedure2.store.ProcedureStore procedureStore
private final org.apache.hadoop.hbase.client.ClusterConnection connection
private final org.apache.hadoop.hbase.master.LoadBalancer balancer
private final org.apache.hadoop.hbase.master.ServerManager serverManager
private final org.apache.hadoop.hbase.procedure2.ProcedureEvent<?> initialized
public static final String DEFAULT_COLUMN_FAMILY_NAME
public static final org.apache.hadoop.hbase.ServerName MOCK_MASTER_SERVERNAME
public MockMasterServices(org.apache.hadoop.conf.Configuration conf, NavigableMap<org.apache.hadoop.hbase.ServerName,SortedSet<byte[]>> regionsToRegionServers) throws IOException
IOException
public void start(int numServes, org.apache.hadoop.hbase.master.procedure.RSProcedureDispatcher remoteDispatcher) throws IOException, org.apache.zookeeper.KeeperException
IOException
org.apache.zookeeper.KeeperException
public void restartRegionServer(org.apache.hadoop.hbase.ServerName serverName) throws IOException
serverName
- Server name to be restartedIOException
public void stop(String why)
stop
in interface org.apache.hadoop.hbase.Stoppable
stop
in class MockNoopMasterServices
private void startProcedureExecutor(org.apache.hadoop.hbase.master.procedure.RSProcedureDispatcher remoteDispatcher) throws IOException
IOException
private void stopProcedureExecutor()
public boolean isInitialized()
isInitialized
in interface org.apache.hadoop.hbase.master.MasterServices
isInitialized
in class MockNoopMasterServices
public org.apache.hadoop.hbase.procedure2.ProcedureEvent<?> getInitializedEvent()
getInitializedEvent
in interface org.apache.hadoop.hbase.master.MasterServices
getInitializedEvent
in class MockNoopMasterServices
public org.apache.hadoop.hbase.master.MasterFileSystem getMasterFileSystem()
getMasterFileSystem
in interface org.apache.hadoop.hbase.master.MasterServices
getMasterFileSystem
in class MockNoopMasterServices
public org.apache.hadoop.hbase.master.MasterWalManager getMasterWalManager()
getMasterWalManager
in interface org.apache.hadoop.hbase.master.MasterServices
getMasterWalManager
in class MockNoopMasterServices
public org.apache.hadoop.hbase.procedure2.ProcedureExecutor<org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv> getMasterProcedureExecutor()
getMasterProcedureExecutor
in interface org.apache.hadoop.hbase.master.MasterServices
getMasterProcedureExecutor
in class MockNoopMasterServices
public org.apache.hadoop.hbase.master.LoadBalancer getLoadBalancer()
getLoadBalancer
in interface org.apache.hadoop.hbase.master.MasterServices
getLoadBalancer
in class MockNoopMasterServices
public org.apache.hadoop.hbase.master.ServerManager getServerManager()
getServerManager
in interface org.apache.hadoop.hbase.master.MasterServices
getServerManager
in class MockNoopMasterServices
public org.apache.hadoop.hbase.master.assignment.AssignmentManager getAssignmentManager()
getAssignmentManager
in interface org.apache.hadoop.hbase.master.MasterServices
getAssignmentManager
in class MockNoopMasterServices
public org.apache.hadoop.hbase.master.TableStateManager getTableStateManager()
getTableStateManager
in interface org.apache.hadoop.hbase.master.MasterServices
getTableStateManager
in class MockNoopMasterServices
public org.apache.hadoop.hbase.client.ClusterConnection getConnection()
getConnection
in interface org.apache.hadoop.hbase.Server
getConnection
in class MockNoopMasterServices
public org.apache.hadoop.hbase.ServerName getServerName()
getServerName
in interface org.apache.hadoop.hbase.Server
getServerName
in class MockNoopMasterServices
public org.apache.hadoop.hbase.CoordinatedStateManager getCoordinatedStateManager()
getCoordinatedStateManager
in interface org.apache.hadoop.hbase.Server
getCoordinatedStateManager
in class MockNoopMasterServices
public org.apache.hadoop.hbase.TableDescriptors getTableDescriptors()
getTableDescriptors
in interface org.apache.hadoop.hbase.master.MasterServices
getTableDescriptors
in class MockNoopMasterServices
private static org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.MultiResponse buildMultiResponse(org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.MultiRequest req)
public org.apache.hadoop.hbase.master.SplitWALManager getSplitWALManager()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.