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, wait
connect, getMajorVersion, getMinorVersion, getName
protected final Map<String,VitamClientFactoryInterface<? extends AbstractConnection>> connectionFactories
public boolean isStorageOfferAvailable(String offerId) throws StorageDriverException
Driver
isStorageOfferAvailable
in interface Driver
offerId
- the offerId nameStorageDriverException
- if any problem occurs during requestpublic final boolean addOffer(StorageOffer offer, Properties parameters)
Driver
The 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)
Driver
removeOffer
in interface Driver
public final boolean hasOffer(String offerId)
Driver
public void close()
close
in interface VitamAutoCloseable
close
in interface AutoCloseable
Copyright © 2018 Vitam. All rights reserved.