@InterfaceAudience.Private public class RSProcedureDispatcher extends RemoteProcedureDispatcher<MasterProcedureEnv,ServerName> implements ServerListener
| 限定符和类型 | 类和说明 |
|---|---|
protected class |
RSProcedureDispatcher.AbstractRSRemoteCall
Base remote call
|
protected class |
RSProcedureDispatcher.ExecuteProceduresRemoteCall |
static class |
RSProcedureDispatcher.RegionCloseOperation |
static class |
RSProcedureDispatcher.RegionOpenOperation |
static class |
RSProcedureDispatcher.RegionOperation |
static class |
RSProcedureDispatcher.ServerOperation |
RemoteProcedureDispatcher.BufferNode, RemoteProcedureDispatcher.RemoteNode<TEnv,TRemote>, RemoteProcedureDispatcher.RemoteOperation, RemoteProcedureDispatcher.RemoteProcedure<TEnv,TRemote>| 限定符和类型 | 字段和说明 |
|---|---|
protected MasterServices |
master |
static String |
RS_RPC_STARTUP_WAIT_TIME_CONF_KEY |
DISPATCH_DELAY_CONF_KEY, DISPATCH_MAX_QUEUE_SIZE_CONF_KEY, THREAD_POOL_SIZE_CONF_KEY| 构造器和说明 |
|---|
RSProcedureDispatcher(MasterServices master) |
addNode, addOperationToNode, buildAndGroupRequestByType, fetchType, getUncaughtExceptionHandler, join, removeNode, submitTask, submitTaskclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitwaitingpublic static final String RS_RPC_STARTUP_WAIT_TIME_CONF_KEY
protected final MasterServices master
public RSProcedureDispatcher(MasterServices master)
public boolean start()
public boolean stop()
protected void remoteDispatch(ServerName serverName, Set<RemoteProcedureDispatcher.RemoteProcedure> remoteProcedures)
protected void abortPendingOperations(ServerName serverName, Set<RemoteProcedureDispatcher.RemoteProcedure> operations)
public void serverAdded(ServerName serverName)
ServerListenerserverAdded 在接口中 ServerListenerserverName - The remote servers name.public void serverRemoved(ServerName serverName)
ServerListenerserverRemoved 在接口中 ServerListenerserverName - The remote servers name.public void splitAndResolveOperation(ServerName serverName, Set<RemoteProcedureDispatcher.RemoteProcedure> operations, org.apache.hadoop.hbase.master.procedure.RSProcedureDispatcher.RemoteProcedureResolver resolver)
RemoteProcedureDispatcher.RemoteOperations
from the given remoteProcedures and groups them by class of the returned operation.
Then resolver is used to dispatch RSProcedureDispatcher.RegionOpenOperations and
RSProcedureDispatcher.RegionCloseOperations.serverName - RegionServer to which the remote operations are sentoperations - Remote procedures which are dispatched to the given serverresolver - Used to dispatch remote procedures to given server.protected static org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.OpenRegionRequest buildOpenRegionRequest(MasterProcedureEnv env, ServerName serverName, List<RSProcedureDispatcher.RegionOpenOperation> operations)
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.