public class StorageProviderFactoryImpl extends ProviderFactoryBase implements StorageProviderFactory
| Constructor and Description |
|---|
StorageProviderFactoryImpl(StorageAccountManager storageAccountManager,
StatelessStorageProvider statelessStorageProvider,
UserUtil userUtil,
DuraCloudRequestContextUtil contextUtil,
AccountChangeNotifier notifier) |
StorageProviderFactoryImpl(StorageAccountManager storageAccountManager,
StatelessStorageProvider statelessStorageProvider,
UserUtil userUtil,
DuraCloudRequestContextUtil contextUtil,
AccountChangeNotifier notifier,
AuditConfig auditConfig) |
StorageProviderFactoryImpl(StorageAccountManager storageAccountManager,
StatelessStorageProvider statelessStorageProvider,
UserUtil userUtil,
DuraCloudRequestContextUtil contextUtil,
AccountChangeNotifier notifier,
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.
|
TaskQueue |
getAuditQueue() |
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,
String accountId)
Initializes DuraStore with account information
necessary to connect to Storage Providers.
|
getAccountManager, getInitConfig, isInitializedpublic StorageProviderFactoryImpl(StorageAccountManager storageAccountManager, StatelessStorageProvider statelessStorageProvider, UserUtil userUtil, DuraCloudRequestContextUtil contextUtil, AccountChangeNotifier notifier)
public StorageProviderFactoryImpl(StorageAccountManager storageAccountManager, StatelessStorageProvider statelessStorageProvider, UserUtil userUtil, DuraCloudRequestContextUtil contextUtil, AccountChangeNotifier notifier, boolean cacheStorageProvidersOnInit)
public StorageProviderFactoryImpl(StorageAccountManager storageAccountManager, StatelessStorageProvider statelessStorageProvider, UserUtil userUtil, DuraCloudRequestContextUtil contextUtil, AccountChangeNotifier notifier, AuditConfig auditConfig)
public void initialize(DuraStoreInitConfig initConfig, String instanceHost, String instancePort, String accountId) throws StorageException
ProviderFactoryBaseinitialize in interface StorageProviderFactoryinitialize in class ProviderFactoryBaseStorageExceptionpublic TaskQueue getAuditQueue()
getAuditQueue in interface StorageProviderFactorypublic 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–2016 DuraSpace. All rights reserved.