public class TheDriver extends AbstractDriver
connectionFactories| Constructor and Description |
|---|
TheDriver() |
| Modifier and Type | Method and Description |
|---|---|
protected VitamClientFactoryInterface |
addInternalOfferAsFactory(StorageOffer offer,
Properties parameters)
This method must be implemented in the final Driver Implementation to add the ClientFactory to the driver
|
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 |
isStorageOfferAvailable(String s,
Properties properties)
Is Storage Offer Available
|
addOffer, close, hasOffer, isStorageOfferAvailable, removeOfferpublic boolean isStorageOfferAvailable(String s, Properties properties) throws StorageDriverException
s - properties - StorageDriverExceptionpublic String getName()
DriverThis name MAY be used in user interface to provide information on the driver.
public int getMajorVersion()
DriverThis number MAY be used in user interface to provide information on the driver.
public int getMinorVersion()
DriverThis number MAY be used in user interface to provide information on the driver.
public Connection connect(String offerId) throws StorageDriverException
DriverofferId - the offerId nameStorageDriverException - if any problem occurs during connectionprotected VitamClientFactoryInterface addInternalOfferAsFactory(StorageOffer offer, Properties parameters)
AbstractDriveraddInternalOfferAsFactory in class AbstractDriverCopyright © 2018 Vitam. All rights reserved.