
org.duracloud.sdscstorage.SDSCStorageProvider Maven / Gradle / Ivy
The 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.sdscstorage;
import org.duracloud.openstackstorage.OpenStackStorageProvider;
import org.duracloud.storage.domain.StorageProviderType;
import org.jclouds.openstack.swift.SwiftClient;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* Provides content storage backed by SDSC's Cloud Storage service.
*
* @author Andrew Woods
* Oct 04, 2011
*/
public class SDSCStorageProvider extends OpenStackStorageProvider {
private final Logger log =
LoggerFactory.getLogger(SDSCStorageProvider.class);
private static final String authUrl = "https://duracloud.auth.cloud.sdsc.edu/auth/v1.0";
public SDSCStorageProvider(String username, String apiAccessKey) {
super(username, apiAccessKey, authUrl);
log.debug("constructed SDSCStorageProvider: {}, {}", username, authUrl);
}
public SDSCStorageProvider(SwiftClient swiftClient) {
super(swiftClient);
}
@Override
public StorageProviderType getStorageProviderType() {
return StorageProviderType.SDSC;
}
@Override
public String getAuthUrl() {
return authUrl;
}
@Override
public String getProviderName() {
return "SDSC";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy