Interface StorageStrategyProvider
-
public interface StorageStrategyProvider
This interface aims at providing a set of method that are common with no concerns of the strategy configuration implementation (ie: implementation could be Filesystem, Database...)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StorageOffer
getStorageOffer(java.lang.String idOffer)
java.util.Map<java.lang.String,StorageStrategy>
getStorageStrategies()
Retrieve all the available storage strategiesStorageStrategy
getStorageStrategy(java.lang.String idStrategy)
Retrieve a storage strategy by its id
-
-
-
Method Detail
-
getStorageStrategy
StorageStrategy getStorageStrategy(java.lang.String idStrategy) throws StorageTechnicalException
Retrieve a storage strategy by its id- Parameters:
idStrategy
- the id of the storage strategy to retrieve- Returns:
- an object representation of a storage strategy
- Throws:
StorageTechnicalException
- if any unwanted technical issue happens
-
getStorageStrategies
java.util.Map<java.lang.String,StorageStrategy> getStorageStrategies() throws StorageTechnicalException
Retrieve all the available storage strategies- Returns:
- all storage strategies by id
- Throws:
StorageTechnicalException
- if any unwanted technical issue happens
-
getStorageOffer
StorageOffer getStorageOffer(java.lang.String idOffer) throws StorageException
- Throws:
StorageException
-
-