Class DistributedWorkQueueWorkAssignerHelper


  • public class DistributedWorkQueueWorkAssignerHelper
    extends Object
    • Constructor Detail

      • DistributedWorkQueueWorkAssignerHelper

        public DistributedWorkQueueWorkAssignerHelper()
    • Method Detail

      • getQueueKey

        public static String getQueueKey​(String filename,
                                         ReplicationTarget replTarget)
        Serialize a filename and a ReplicationTarget into the expected key format for use with the DistributedWorkQueue
        Parameters:
        filename - Filename for data to be replicated
        replTarget - 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