Class DistributedWorkQueueWorkAssigner

    • Constructor Detail

      • DistributedWorkQueueWorkAssigner

        public DistributedWorkQueueWorkAssigner()
        Deprecated.
    • Method Detail

      • isWorkRequired

        protected boolean isWorkRequired​(Replication.Status status)
        Deprecated.
      • setClient

        protected void setClient​(AccumuloClient client)
        Deprecated.
      • setMaxQueueSize

        protected void setMaxQueueSize​(int maxQueueSize)
        Deprecated.
      • setZooCache

        protected void setZooCache​(ZooCache zooCache)
        Deprecated.
      • initializeWorkQueue

        protected void initializeWorkQueue​(AccumuloConfiguration conf)
        Deprecated.
        Initialize the DistributedWorkQueue using the proper ZK location
      • createWork

        protected void createWork()
        Deprecated.
        Scan over the ReplicationSchema.WorkSection of the replication table adding work for entries that have data to replicate and have not already been queued.
      • shouldQueueWork

        protected abstract boolean shouldQueueWork​(ReplicationTarget target)
        Deprecated.
        Returns:
        Can replication work for the given ReplicationTarget be submitted to be worked on.
      • getQueueSize

        protected abstract int getQueueSize()
        Deprecated.
        Returns:
        the size of the queued work
      • initializeQueuedWork

        protected abstract void initializeQueuedWork()
        Deprecated.
        Set up any internal state before using the WorkAssigner
      • queueWork

        protected abstract boolean queueWork​(org.apache.hadoop.fs.Path path,
                                             ReplicationTarget target)
        Deprecated.
        Queue the given work for the target
        Parameters:
        path - File to replicate
        target - Target for the work
        Returns:
        True if the work was queued, false otherwise
      • getQueuedWork

        protected abstract Set<String> getQueuedWork​(ReplicationTarget target)
        Deprecated.
        Parameters:
        target - Target for the work
        Returns:
        Queued work for the given target
      • removeQueuedWork

        protected abstract void removeQueuedWork​(ReplicationTarget target,
                                                 String queueKey)
        Deprecated.
        Remove the given work from the internal state
      • cleanupFinishedWork

        protected abstract void cleanupFinishedWork()
        Deprecated.
        Remove finished replication work from the internal state