public class StorageProviderFactoryImpl extends ProviderFactoryBase implements org.duracloud.storage.util.StorageProviderFactory
| Constructor and Description |
|---|
StorageProviderFactoryImpl(org.duracloud.storage.domain.StorageAccountManager storageAccountManager,
org.duracloud.storage.provider.StatelessStorageProvider statelessStorageProvider,
org.duracloud.common.util.UserUtil userUtil) |
StorageProviderFactoryImpl(org.duracloud.storage.domain.StorageAccountManager storageAccountManager,
org.duracloud.storage.provider.StatelessStorageProvider statelessStorageProvider,
org.duracloud.common.util.UserUtil userUtil,
boolean cacheStorageProvidersOnInit) |
| Modifier and Type | Method and Description |
|---|---|
void |
expireStorageProvider(String storageAccountId)
Removes a particular storage provider from the cache, which will
require that the connection be recreated on the next call.
|
List<org.duracloud.storage.domain.StorageAccount> |
getStorageAccounts()
This method returns all of the registered storage accounts.
|
org.duracloud.storage.provider.StorageProvider |
getStorageProvider()
Retrieves the primary storage provider for a given customer.
|
org.duracloud.storage.provider.StorageProvider |
getStorageProvider(String storageAccountId)
Retrieves a particular storage provider based on the storage account ID.
|
void |
initialize(org.duracloud.storage.domain.DuraStoreInitConfig initConfig,
String instanceHost,
String instancePort)
Initializes DuraStore with account information
necessary to connect to Storage Providers.
|
getAccountManager, getInitConfig, initialize, isInitializedpublic StorageProviderFactoryImpl(org.duracloud.storage.domain.StorageAccountManager storageAccountManager,
org.duracloud.storage.provider.StatelessStorageProvider statelessStorageProvider,
org.duracloud.common.util.UserUtil userUtil)
public StorageProviderFactoryImpl(org.duracloud.storage.domain.StorageAccountManager storageAccountManager,
org.duracloud.storage.provider.StatelessStorageProvider statelessStorageProvider,
org.duracloud.common.util.UserUtil userUtil,
boolean cacheStorageProvidersOnInit)
public void initialize(org.duracloud.storage.domain.DuraStoreInitConfig initConfig,
String instanceHost,
String instancePort)
throws org.duracloud.storage.error.StorageException
ProviderFactoryBaseinitialize in interface org.duracloud.storage.util.StorageProviderFactoryinitialize in class ProviderFactoryBaseorg.duracloud.storage.error.StorageExceptionpublic List<org.duracloud.storage.domain.StorageAccount> getStorageAccounts()
getStorageAccounts in interface org.duracloud.storage.util.StorageProviderFactorypublic org.duracloud.storage.provider.StorageProvider getStorageProvider()
throws org.duracloud.storage.error.StorageException
getStorageProvider in interface org.duracloud.storage.util.StorageProviderFactoryorg.duracloud.storage.error.StorageExceptionpublic org.duracloud.storage.provider.StorageProvider getStorageProvider(String storageAccountId) throws org.duracloud.storage.error.StorageException
getStorageProvider in interface org.duracloud.storage.util.StorageProviderFactorystorageAccountId - - the ID of the storage provider accountorg.duracloud.storage.error.StorageExceptionpublic void expireStorageProvider(String storageAccountId)
expireStorageProvider in interface org.duracloud.storage.util.StorageProviderFactorystorageAccountId - - the ID of the storage provider accountCopyright © 2009–2015 DuraSpace. All rights reserved.