Package org.duracloud.durastore.util
Class ProviderFactoryBase
- java.lang.Object
-
- org.duracloud.durastore.util.ProviderFactoryBase
-
- Direct Known Subclasses:
StorageProviderFactoryImpl,TaskProviderFactoryImpl
public abstract class ProviderFactoryBase extends Object
-
-
Constructor Summary
Constructors Constructor Description ProviderFactoryBase(StorageAccountManager storageAccountManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StorageAccountManagergetAccountManager()protected DuraStoreInitConfiggetInitConfig()voidinitialize(DuraStoreInitConfig initConfig, String instanceHost, String instancePort, String accountId)Initializes DuraStore with account information necessary to connect to Storage Providers.booleanisInitialized()
-
-
-
Constructor Detail
-
ProviderFactoryBase
public ProviderFactoryBase(StorageAccountManager storageAccountManager)
-
-
Method Detail
-
initialize
public void initialize(DuraStoreInitConfig initConfig, String instanceHost, String instancePort, String accountId) throws StorageException
Initializes DuraStore with account information necessary to connect to Storage Providers.- Throws:
StorageException
-
getAccountManager
protected StorageAccountManager getAccountManager() throws StorageException
- Returns:
- the account manager
- Throws:
StorageException- if not initialized
-
getInitConfig
protected DuraStoreInitConfig getInitConfig() throws StorageException
- Returns:
- the DuraStore init config
- Throws:
StorageException- if not initialized
-
isInitialized
public boolean isInitialized()
-
-