public abstract class AbstractDriver extends Object implements Driver
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,VitamClientFactoryInterface<? extends AbstractConnection>> |
connectionFactories |
| Constructor and Description |
|---|
AbstractDriver() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract VitamClientFactoryInterface<AbstractConnection> |
addInternalOfferAsFactory(StorageOffer offer,
Properties parameters)
This method must be implemented in the final Driver Implementation to add the ClientFactory to the driver
|
boolean |
addOffer(StorageOffer offer,
Properties parameters)
Add one offer to the Driver (from DriverManager)
The driver MUST provide a way to check the availability of the storage
offer based on storage offer and configuration parameters.
|
void |
close() |
boolean |
hasOffer(String offerId)
Return true if offer exists for the driver, false else
|
boolean |
isStorageOfferAvailable(String offerId)
The driver MUST provide a way to check the availability of the storage
offer Id name.
|
boolean |
removeOffer(String offer)
Remove one offer from the Driver (from DriverManager)
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconnect, getMajorVersion, getMinorVersion, getNameprotected final Map<String,VitamClientFactoryInterface<? extends AbstractConnection>> connectionFactories
public boolean isStorageOfferAvailable(String offerId) throws StorageDriverException
DriverisStorageOfferAvailable in interface DriverofferId - the offerId nameStorageDriverException - if any problem occurs during requestpublic final boolean addOffer(StorageOffer offer, Properties parameters)
DriverThe parameters argument can also be used to pass arbitrary string tag/value pairs as connection arguments.
protected abstract VitamClientFactoryInterface<AbstractConnection> addInternalOfferAsFactory(StorageOffer offer, Properties parameters)
offer - parameters - public final boolean removeOffer(String offer)
DriverremoveOffer in interface Driverpublic final boolean hasOffer(String offerId)
Driverpublic void close()
close in interface VitamAutoCloseableclose in interface AutoCloseableCopyright © 2018 Vitam. All rights reserved.