Class StorageProviderFactory
- java.lang.Object
-
- org.duracloud.mill.common.storageprovider.StorageProviderFactory
-
public class StorageProviderFactory extends Object
The class knows how to create aStorageProviderbased on a set of credentials.- Author:
- Daniel Bernstein Date: Nov 6, 2013
-
-
Constructor Summary
Constructors Constructor Description StorageProviderFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.duracloud.storage.provider.StorageProvidercreate(StorageProviderCredentials credentials)Creates a StorageProviderorg.duracloud.storage.provider.StorageProvidercreateWithAudit(StorageProviderCredentials credentials, String accountSubdomain, org.duracloud.common.queue.TaskQueue auditQueue)Creates a StorageProvider which captures events and passes them to the audit queue.
-
-
-
Method Detail
-
createWithAudit
public org.duracloud.storage.provider.StorageProvider createWithAudit(StorageProviderCredentials credentials, String accountSubdomain, org.duracloud.common.queue.TaskQueue auditQueue)
Creates a StorageProvider which captures events and passes them to the audit queue.- Parameters:
credentials- needed to connect to storage provideraccountSubdomain- subdomain of the storage provider accountauditQueue- used to capture changes to stored content- Returns:
-
create
public org.duracloud.storage.provider.StorageProvider create(StorageProviderCredentials credentials)
Creates a StorageProvider- Parameters:
credentials-- Returns:
-
-