// Path: src/main/java/com/tango/BucketSyncer/KeyJobs/KeyJob.java
// public abstract class KeyJob implements Runnable {
//     protected final ObjectSummary summary;
//     protected final Object notifyLock;
//     protected final MirrorContext context;
// 
// 
//     public KeyJob(ObjectSummary summary,
//                   Object notifyLock,
//                   MirrorContext context) {
//         this.summary = summary;
//         this.notifyLock = notifyLock;
//         this.context = context;
//     }
// 
//     @Override
//     public String toString() {
//         return summary.toString();
//     }
// 
// 
// }
// 
// Path: src/main/java/com/tango/BucketSyncer/KeyListers/KeyLister.java
// @Slf4j
// public abstract class KeyLister implements Runnable {
//     protected MirrorContext context;
//     protected Integer maxQueueCapacity;
//     protected String bucket;
//     protected String prefix;
// 
//     protected final AtomicBoolean done = new AtomicBoolean(false);
// 
//     public boolean isDone() {
//         return done.get();
//     }
// 
//     public KeyLister(String bucket,
//                      String prefix,
//                      MirrorContext context,
//                      Integer maxQueueCapacity) {
//         this.bucket = bucket;
//         this.prefix = prefix;
//         this.context = context;
//         this.maxQueueCapacity = maxQueueCapacity;
//     }
// 
//     public abstract List<ObjectSummary> getNextBatch();
// 
// }
// 
// Path: src/main/java/com/tango/BucketSyncer/ObjectSummaries/ObjectSummary.java
// public interface ObjectSummary {
//     public String getKey();
// 
//     public long getSize();
// 
//     public Date getLastModified();
// 
//     public String getETag();
// }


import com.tango.BucketSyncer.KeyJobs.KeyJob;
import com.tango.BucketSyncer.KeyListers.KeyLister;
import com.tango.BucketSyncer.ObjectSummaries.ObjectSummary;
import lombok.extern.slf4j.Slf4j;
import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.ThreadPoolExecutor;
/**
 *  Copyright 2013 Jonathan Cobb
 *  Copyright 2014 TangoMe Inc.
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */
package com.tango.BucketSyncer;



@Slf4j
public class DeleteMaster extends KeyMaster {

    public DeleteMaster(Object sourceClient, Object destClient, MirrorContext context, BlockingQueue<Runnable> workQueue, ThreadPoolExecutor executorService) {
        super(sourceClient, destClient, context, workQueue, executorService);
    }

    protected String getPrefix(MirrorOptions options) {
        return options.hasDestPrefix() ? options.getDestPrefix() : options.getPrefix();
    }

    protected String getBucket(MirrorOptions options) {
        return options.getDestinationBucket();
    }


// Path: src/main/java/com/tango/BucketSyncer/KeyJobs/KeyJob.java
// public abstract class KeyJob implements Runnable {
//     protected final ObjectSummary summary;
//     protected final Object notifyLock;
//     protected final MirrorContext context;
// 
// 
//     public KeyJob(ObjectSummary summary,
//                   Object notifyLock,
//                   MirrorContext context) {
//         this.summary = summary;
//         this.notifyLock = notifyLock;
//         this.context = context;
//     }
// 
//     @Override
//     public String toString() {
//         return summary.toString();
//     }
// 
// 
// }
// 
// Path: src/main/java/com/tango/BucketSyncer/KeyListers/KeyLister.java
// @Slf4j
// public abstract class KeyLister implements Runnable {
//     protected MirrorContext context;
//     protected Integer maxQueueCapacity;
//     protected String bucket;
//     protected String prefix;
// 
//     protected final AtomicBoolean done = new AtomicBoolean(false);
// 
//     public boolean isDone() {
//         return done.get();
//     }
// 
//     public KeyLister(String bucket,
//                      String prefix,
//                      MirrorContext context,
//                      Integer maxQueueCapacity) {
//         this.bucket = bucket;
//         this.prefix = prefix;
//         this.context = context;
//         this.maxQueueCapacity = maxQueueCapacity;
//     }
// 
//     public abstract List<ObjectSummary> getNextBatch();
// 
// }
// 
// Path: src/main/java/com/tango/BucketSyncer/ObjectSummaries/ObjectSummary.java
// public interface ObjectSummary {
//     public String getKey();
// 
//     public long getSize();
// 
//     public Date getLastModified();
// 
//     public String getETag();
// }


// Path: src/main/java/com/tango/BucketSyncer/DeleteMaster.java
import com.tango.BucketSyncer.KeyJobs.KeyJob;
import com.tango.BucketSyncer.KeyListers.KeyLister;
import com.tango.BucketSyncer.ObjectSummaries.ObjectSummary;
import lombok.extern.slf4j.Slf4j;
import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.ThreadPoolExecutor;

/**
 *  Copyright 2013 Jonathan Cobb
 *  Copyright 2014 TangoMe Inc.
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */
package com.tango.BucketSyncer;



@Slf4j
public class DeleteMaster extends KeyMaster {

    public DeleteMaster(Object sourceClient, Object destClient, MirrorContext context, BlockingQueue<Runnable> workQueue, ThreadPoolExecutor executorService) {
        super(sourceClient, destClient, context, workQueue, executorService);
    }

    protected String getPrefix(MirrorOptions options) {
        return options.hasDestPrefix() ? options.getDestPrefix() : options.getPrefix();
    }

    protected String getBucket(MirrorOptions options) {
        return options.getDestinationBucket();
    }


    protected KeyLister getKeyLister(MirrorOptions options) {