public class DistributedWorkQueueWorkAssignerHelper extends Object
Modifier and Type | Field and Description |
---|---|
static String |
KEY_SEPARATOR |
Constructor and Description |
---|
DistributedWorkQueueWorkAssignerHelper() |
Modifier and Type | Method and Description |
---|---|
static Map.Entry<String,ReplicationTarget> |
fromQueueKey(String queueKey) |
static String |
getQueueKey(String filename,
ReplicationTarget replTarget)
Serialize a filename and a
ReplicationTarget into the expected key format for use with
the DistributedWorkQueue |
public static final String KEY_SEPARATOR
public DistributedWorkQueueWorkAssignerHelper()
public static String getQueueKey(String filename, ReplicationTarget replTarget)
ReplicationTarget
into the expected key format for use with
the DistributedWorkQueue
filename
- Filename for data to be replicatedreplTarget
- Information about replication peerpublic static Map.Entry<String,ReplicationTarget> fromQueueKey(String queueKey)
queueKey
- Key from the work queueCopyright © 2011–2019 The Apache Software Foundation. All rights reserved.