All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.duracloud.client.task.SnapshotTaskClientManager Maven / Gradle / Ivy

There is a newer version: 8.1.0
Show newest version
/*
 * The contents of this file are subject to the license and copyright
 * detailed in the LICENSE and NOTICE files at the root of the source
 * tree and available online at
 *
 *     http://duracloud.org/license/
 */
package org.duracloud.client.task;

import org.duracloud.client.ContentStore;
import org.duracloud.client.ContentStoreManager;
import org.duracloud.error.ContentStoreException;

/**
 * @author Daniel Bernstein
 */
public class SnapshotTaskClientManager {
    private ContentStoreManager contentStoreManager;

    public SnapshotTaskClientManager(ContentStoreManager contentStoreManager) {
        this.contentStoreManager = contentStoreManager;
    }

    public SnapshotTaskClient get(String storeId) throws ContentStoreException {
        ContentStore contentStore = contentStoreManager.getContentStore(storeId);
        return new SnapshotTaskClientImpl(contentStore);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy