public class StorageProviderFactoryImpl extends ProviderFactoryBase implements StorageProviderFactory
| Constructor and Description |
|---|
StorageProviderFactoryImpl(StorageAccountManager storageAccountManager,
StatelessStorageProvider statelessStorageProvider) |
StorageProviderFactoryImpl(StorageAccountManager storageAccountManager,
StatelessStorageProvider statelessStorageProvider,
boolean cacheStorageProvidersOnInit) |
| Modifier and Type | Method and Description |
|---|---|
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(InputStream accountXml)
Initializes DuraStore with account information
necessary to connect to Storage Providers.
|
getAccountManager, isInitializedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisInitializedpublic StorageProviderFactoryImpl(StorageAccountManager storageAccountManager, StatelessStorageProvider statelessStorageProvider)
public StorageProviderFactoryImpl(StorageAccountManager storageAccountManager, StatelessStorageProvider statelessStorageProvider, boolean cacheStorageProvidersOnInit)
public void initialize(InputStream accountXml) throws StorageException
ProviderFactoryBaseinitialize in interface StorageProviderFactoryinitialize in class ProviderFactoryBaseaccountXml - A stream containing account information in XML formatStorageExceptionpublic 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 accountStorageExceptionCopyright © 2009-2013 DuraSpace. All Rights Reserved.