public class SequentialWorkAssigner extends DistributedWorkQueueWorkAssigner
filename.serialized_ReplicationTarget => filename, but replicates files in the order in which they were created.
The intent is to ensure that WALs are replayed in the same order on the peer in which they were applied on the primary.
conf, conn, maxQueueSize, workQueue, zooCache| Constructor and Description |
|---|
SequentialWorkAssigner() |
SequentialWorkAssigner(AccumuloConfiguration conf,
Connector conn) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
cleanupFinishedWork()
Iterate over the queued work to remove entries that have been completed.
|
String |
getName() |
protected Map<String,Map<String,String>> |
getQueuedWork() |
protected Set<String> |
getQueuedWork(ReplicationTarget target) |
protected int |
getQueueSize() |
protected void |
initializeQueuedWork()
Initialize the queuedWork set with the work already sent out
|
protected boolean |
queueWork(org.apache.hadoop.fs.Path path,
ReplicationTarget target)
Queue the given work for the target
|
protected void |
removeQueuedWork(ReplicationTarget target,
String queueKey)
Remove the given work from the internal state
|
protected void |
setQueuedWork(Map<String,Map<String,String>> queuedWork) |
protected boolean |
shouldQueueWork(ReplicationTarget target) |
assignWork, configure, createWork, getConf, getConnector, getMaxQueueSize, getWorkQueue, getZooCache, initializeWorkQueue, isWorkRequired, setConf, setConnector, setMaxQueueSize, setWorkQueue, setZooCachepublic SequentialWorkAssigner()
public SequentialWorkAssigner(AccumuloConfiguration conf, Connector conn)
public String getName()
protected void initializeQueuedWork()
initializeQueuedWork in class DistributedWorkQueueWorkAssignerprotected void cleanupFinishedWork()
cleanupFinishedWork in class DistributedWorkQueueWorkAssignerprotected int getQueueSize()
getQueueSize in class DistributedWorkQueueWorkAssignerprotected boolean shouldQueueWork(ReplicationTarget target)
shouldQueueWork in class DistributedWorkQueueWorkAssignerReplicationTarget be submitted to be worked on.protected boolean queueWork(org.apache.hadoop.fs.Path path,
ReplicationTarget target)
DistributedWorkQueueWorkAssignerqueueWork in class DistributedWorkQueueWorkAssignerpath - File to replicatetarget - Target for the workprotected Set<String> getQueuedWork(ReplicationTarget target)
getQueuedWork in class DistributedWorkQueueWorkAssignertarget - Target for the workprotected void removeQueuedWork(ReplicationTarget target, String queueKey)
DistributedWorkQueueWorkAssignerremoveQueuedWork in class DistributedWorkQueueWorkAssignerCopyright © 2011–2018 The Apache Software Foundation. All rights reserved.