Class SequentialWorkAssigner
java.lang.Object
org.apache.accumulo.manager.replication.DistributedWorkQueueWorkAssigner
org.apache.accumulo.manager.replication.SequentialWorkAssigner
- All Implemented Interfaces:
WorkAssigner
Deprecated.
Creates work in ZK which is
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.
-
Field Summary
Fields inherited from class org.apache.accumulo.manager.replication.DistributedWorkQueueWorkAssigner
client, conf, maxQueueSize, workQueue, zooCache
-
Constructor Summary
ConstructorDescriptionDeprecated.SequentialWorkAssigner
(AccumuloConfiguration conf, AccumuloClient client) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Deprecated.Iterate over the queued work to remove entries that have been completed.getName()
Deprecated.getQueuedWork
(ReplicationTarget target) Deprecated.protected int
Deprecated.protected void
Deprecated.Initialize the queuedWork set with the work already sent outprotected boolean
queueWork
(org.apache.hadoop.fs.Path path, ReplicationTarget target) Deprecated.Queue the given work for the targetprotected void
removeQueuedWork
(ReplicationTarget target, String queueKey) Deprecated.Remove the given work from the internal stateprotected void
Deprecated.protected boolean
shouldQueueWork
(ReplicationTarget target) Deprecated.Methods inherited from class org.apache.accumulo.manager.replication.DistributedWorkQueueWorkAssigner
assignWork, configure, createWork, initializeWorkQueue, isWorkRequired, setClient, setMaxQueueSize, setWorkQueue, setZooCache
-
Constructor Details
-
SequentialWorkAssigner
public SequentialWorkAssigner()Deprecated. -
SequentialWorkAssigner
Deprecated.
-
-
Method Details
-
getName
Deprecated. -
setQueuedWork
Deprecated. -
initializeQueuedWork
protected void initializeQueuedWork()Deprecated.Initialize the queuedWork set with the work already sent out- Specified by:
initializeQueuedWork
in classDistributedWorkQueueWorkAssigner
-
cleanupFinishedWork
protected void cleanupFinishedWork()Deprecated.Iterate over the queued work to remove entries that have been completed.- Specified by:
cleanupFinishedWork
in classDistributedWorkQueueWorkAssigner
-
getQueueSize
protected int getQueueSize()Deprecated.- Specified by:
getQueueSize
in classDistributedWorkQueueWorkAssigner
- Returns:
- the size of the queued work
-
shouldQueueWork
Deprecated.- Specified by:
shouldQueueWork
in classDistributedWorkQueueWorkAssigner
- Returns:
- Can replication work for the given
ReplicationTarget
be submitted to be worked on.
-
queueWork
Deprecated.Description copied from class:DistributedWorkQueueWorkAssigner
Queue the given work for the target- Specified by:
queueWork
in classDistributedWorkQueueWorkAssigner
- Parameters:
path
- File to replicatetarget
- Target for the work- Returns:
- True if the work was queued, false otherwise
-
getQueuedWork
Deprecated.- Specified by:
getQueuedWork
in classDistributedWorkQueueWorkAssigner
- Parameters:
target
- Target for the work- Returns:
- Queued work for the given target
-
removeQueuedWork
Deprecated.Description copied from class:DistributedWorkQueueWorkAssigner
Remove the given work from the internal state- Specified by:
removeQueuedWork
in classDistributedWorkQueueWorkAssigner
-