public class StorageProviderFactoryImpl extends ProviderFactoryBase implements StorageProviderFactory
| Constructor and Description |
|---|
StorageProviderFactoryImpl(StorageAccountManager storageAccountManager,
StatelessStorageProvider statelessStorageProvider,
UserUtil userUtil) |
StorageProviderFactoryImpl(StorageAccountManager storageAccountManager,
StatelessStorageProvider statelessStorageProvider,
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<StorageAccount> |
getStorageAccounts()
This method returns all of the registered storage accounts.
|
StorageProvider |
getStorageProvider()
Retrieves the primary storage provider for a given customer.
|
StorageProvider |
getStorageProvider(String storageAccountId)
Retrieves a particular storage provider based on the storage account ID.
|
void |
initialize(DuraStoreInitConfig initConfig,
String instanceHost,
String instancePort)
Initializes DuraStore with account information
necessary to connect to Storage Providers.
|
getAccountManager, getInitConfig, initialize, isInitializedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitialize, isInitializedpublic StorageProviderFactoryImpl(StorageAccountManager storageAccountManager, StatelessStorageProvider statelessStorageProvider, UserUtil userUtil)
public StorageProviderFactoryImpl(StorageAccountManager storageAccountManager, StatelessStorageProvider statelessStorageProvider, UserUtil userUtil, boolean cacheStorageProvidersOnInit)
public void initialize(DuraStoreInitConfig initConfig, String instanceHost, String instancePort) throws StorageException
ProviderFactoryBaseinitialize in interface StorageProviderFactoryinitialize in class ProviderFactoryBaseStorageExceptionpublic List<StorageAccount> getStorageAccounts()
getStorageAccounts in interface StorageProviderFactorypublic StorageProvider getStorageProvider() throws StorageException
getStorageProvider in interface StorageProviderFactoryStorageExceptionpublic StorageProvider getStorageProvider(String storageAccountId) throws StorageException
getStorageProvider in interface StorageProviderFactorystorageAccountId - - the ID of the storage provider accountStorageExceptionpublic void expireStorageProvider(String storageAccountId)
expireStorageProvider in interface StorageProviderFactorystorageAccountId - - the ID of the storage provider accountCopyright © 2009–2014 DuraSpace. All rights reserved.