public interface Driver extends VitamAutoCloseable
Modifier and Type | Method and Description |
---|---|
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.
|
Connection |
connect(String offerId)
Create a connection to the distant offer service based on given offer Id name.
|
int |
getMajorVersion()
Retrieves the driver's major version number.
|
int |
getMinorVersion()
Retrieves the driver's minor version number.
|
String |
getName()
The driver implementation MUST provide a constant name which SHOULD be
shared accross instances of the same driver implementation.
|
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)
|
close
Connection connect(String offerId) throws StorageDriverException
offerId
- the offerId nameStorageDriverException
- if any problem occurs during connectionboolean isStorageOfferAvailable(String offerId) throws StorageDriverException
offerId
- the offerId nameStorageDriverException
- if any problem occurs during requestboolean removeOffer(String offer)
offer
- boolean addOffer(StorageOffer offer, Properties parameters)
The parameters argument can also be used to pass arbitrary string tag/value pairs as connection arguments.
offer
- the storage offer configurationparameters
- other extra parametersboolean hasOffer(String offerId)
offerId
- String getName()
This name MAY be used in user interface to provide information on the driver.
int getMajorVersion()
This number MAY be used in user interface to provide information on the driver.
int getMinorVersion()
This number MAY be used in user interface to provide information on the driver.
Copyright © 2018 Vitam. All rights reserved.