private static final class SplitWALManager.SplitWorkerAssigner extends Object implements ServerListener
Modifier and Type | Field and Description |
---|---|
private Map<ServerName,Integer> |
currentWorkers |
private ProcedureEvent<?> |
event |
private MasterServices |
master |
private int |
maxSplitTasks |
Constructor and Description |
---|
SplitWorkerAssigner(MasterServices master,
int maxSplitTasks) |
Modifier and Type | Method and Description |
---|---|
Optional<ServerName> |
acquire() |
void |
addUsedWorker(ServerName worker) |
void |
release(ServerName serverName) |
void |
serverAdded(ServerName worker)
The server has joined the cluster.
|
void |
suspend(Procedure<?> proc) |
void |
wake(MasterProcedureScheduler scheduler) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
serverRemoved, waiting
private int maxSplitTasks
private final ProcedureEvent<?> event
private Map<ServerName,Integer> currentWorkers
private MasterServices master
public SplitWorkerAssigner(MasterServices master, int maxSplitTasks)
public Optional<ServerName> acquire()
public void release(ServerName serverName)
public void wake(MasterProcedureScheduler scheduler)
public void serverAdded(ServerName worker)
ServerListener
serverAdded
in interface ServerListener
worker
- The remote servers name.public void addUsedWorker(ServerName worker)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.