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, isInitialized
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initialize, isInitialized
public 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
ProviderFactoryBase
initialize
in interface StorageProviderFactory
initialize
in class ProviderFactoryBase
StorageException
public List<StorageAccount> getStorageAccounts()
getStorageAccounts
in interface StorageProviderFactory
public StorageProvider getStorageProvider() throws StorageException
getStorageProvider
in interface StorageProviderFactory
StorageException
public StorageProvider getStorageProvider(String storageAccountId) throws StorageException
getStorageProvider
in interface StorageProviderFactory
storageAccountId
- - the ID of the storage provider accountStorageException
public void expireStorageProvider(String storageAccountId)
expireStorageProvider
in interface StorageProviderFactory
storageAccountId
- - the ID of the storage provider accountCopyright © 2009–2014 DuraSpace. All rights reserved.