Class UnorderedWorkAssigner
java.lang.Object
org.apache.accumulo.manager.replication.DistributedWorkQueueWorkAssigner
org.apache.accumulo.manager.replication.UnorderedWorkAssigner
- All Implemented Interfaces:
WorkAssigner
- Direct Known Subclasses:
UnorderedWorkAssigner
Deprecated.
Read work records from the replication table, create work entries for other nodes to complete.
Uses the DistributedWorkQueue to make the work available for any tserver. This approach does not consider the locality of the tabletserver performing the work in relation to the data being replicated (local HDFS blocks).
The implementation allows for multiple tservers to concurrently replicate data to peer(s),
however it is possible that data for a table is replayed on the peer in a different order than
the manager. The SequentialWorkAssigner
should be used if this must be guaranteed at the
cost of replication throughput.
-
Field Summary
Fields inherited from class org.apache.accumulo.manager.replication.DistributedWorkQueueWorkAssigner
client, conf, maxQueueSize, workQueue, zooCache
-
Constructor Summary
ConstructorDescriptionDeprecated.UnorderedWorkAssigner
(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.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.Distribute the work for the given path with filenameprotected void
removeQueuedWork
(ReplicationTarget target, String queueKey) Deprecated.Remove the given work from the internal stateprotected void
setQueuedWork
(Set<String> queuedWork) 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
-
UnorderedWorkAssigner
public UnorderedWorkAssigner()Deprecated. -
UnorderedWorkAssigner
Deprecated.
-
-
Method Details
-
getName
Deprecated. -
getQueuedWork
Deprecated. -
setQueuedWork
Deprecated. -
initializeQueuedWork
protected void initializeQueuedWork()Deprecated.Initialize the queuedWork set with the work already sent out- Specified by:
initializeQueuedWork
in classDistributedWorkQueueWorkAssigner
-
queueWork
Deprecated.Distribute the work for the given path with filename- Specified by:
queueWork
in classDistributedWorkQueueWorkAssigner
- Parameters:
path
- Path to the file being replicatedtarget
- Target for the file to be replicated to- Returns:
- True if the work was queued, false otherwise
-
cleanupFinishedWork
protected void cleanupFinishedWork()Deprecated.Iterate over the queued work to remove entries that have been completed.- Specified by:
cleanupFinishedWork
in classDistributedWorkQueueWorkAssigner
-
shouldQueueWork
Deprecated.- Specified by:
shouldQueueWork
in classDistributedWorkQueueWorkAssigner
- Returns:
- Can replication work for the given
ReplicationTarget
be submitted to be worked on.
-
getQueueSize
protected int getQueueSize()Deprecated.- Specified by:
getQueueSize
in classDistributedWorkQueueWorkAssigner
- Returns:
- the size of the queued work
-
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
-