Class DistributedWorkQueueWorkAssignerHelper
- java.lang.Object
-
- org.apache.accumulo.server.replication.DistributedWorkQueueWorkAssignerHelper
-
public class DistributedWorkQueueWorkAssignerHelper extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static String
KEY_SEPARATOR
-
Constructor Summary
Constructors Constructor Description DistributedWorkQueueWorkAssignerHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Map.Entry<String,ReplicationTarget>
fromQueueKey(String queueKey)
static String
getQueueKey(String filename, ReplicationTarget replTarget)
Serialize a filename and aReplicationTarget
into the expected key format for use with theDistributedWorkQueue
-
-
-
Field Detail
-
KEY_SEPARATOR
public static final String KEY_SEPARATOR
- See Also:
- Constant Field Values
-
-
Method Detail
-
getQueueKey
public static String getQueueKey(String filename, ReplicationTarget replTarget)
Serialize a filename and aReplicationTarget
into the expected key format for use with theDistributedWorkQueue
- Parameters:
filename
- Filename for data to be replicatedreplTarget
- Information about replication peer- Returns:
- Key for identifying work in queue
-
fromQueueKey
public static Map.Entry<String,ReplicationTarget> fromQueueKey(String queueKey)
- Parameters:
queueKey
- Key from the work queue- Returns:
- Components which created the queue key
-
-