|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.duracloud.durastore.util.ProviderFactoryBase
org.duracloud.durastore.util.StorageProviderFactory
public class StorageProviderFactory
Provides access to StorageProvider implementations
Constructor Summary | |
---|---|
StorageProviderFactory()
|
Method Summary | |
---|---|
static java.lang.String |
getPrimaryStorageProviderAccountId()
Retrieves the id for the primary storage provider account |
StatelessStorageProvider |
getStatelessProvider()
|
static StorageProvider |
getStorageProvider()
Retrieves the primary storage provider for a given customer. |
static StorageProvider |
getStorageProvider(java.lang.String storageAccountId)
Retrieves a particular storage provider based on the storage account ID. |
static java.util.Iterator<java.lang.String> |
getStorageProviderAccountIds()
Retrieves the ids for all available storage provider accounts |
static StorageProviderType |
getStorageProviderType(java.lang.String storageAccountId)
Returns the type of the storage provider with the given account ID. |
static void |
setStatelessProvider(StatelessStorageProvider statelessProvider)
|
Methods inherited from class org.duracloud.durastore.util.ProviderFactoryBase |
---|
getAccountManager, initialize |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StorageProviderFactory()
Method Detail |
---|
public static java.util.Iterator<java.lang.String> getStorageProviderAccountIds() throws StorageException
StorageException
public static java.lang.String getPrimaryStorageProviderAccountId() throws StorageException
StorageException
public static StorageProvider getStorageProvider() throws StorageException
StorageException
public static StorageProvider getStorageProvider(java.lang.String storageAccountId) throws StorageException
storageAccountId
- - the ID of the storage provider account
StorageException
public static StorageProviderType getStorageProviderType(java.lang.String storageAccountId) throws StorageException
storageAccountId
-
StorageException
public StatelessStorageProvider getStatelessProvider()
public static void setStatelessProvider(StatelessStorageProvider statelessProvider)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |