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, isInitialized
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isInitialized
public StorageProviderFactoryImpl(StorageAccountManager storageAccountManager, StatelessStorageProvider statelessStorageProvider)
public StorageProviderFactoryImpl(StorageAccountManager storageAccountManager, StatelessStorageProvider statelessStorageProvider, boolean cacheStorageProvidersOnInit)
public void initialize(InputStream accountXml) throws StorageException
ProviderFactoryBase
initialize
in interface StorageProviderFactory
initialize
in class ProviderFactoryBase
accountXml
- A stream containing account information in XML formatStorageException
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
Copyright © 2009-2013 DuraSpace. All Rights Reserved.