public class MockDriverImpl extends AbstractDriver
connectionFactories| Constructor and Description |
|---|
MockDriverImpl() |
| 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 offerId)
The driver MUST provide a way to check the availability of the storage
offer Id name.
|
addOffer, close, hasOffer, removeOfferprotected VitamClientFactoryInterface addInternalOfferAsFactory(StorageOffer offer, Properties parameters)
AbstractDriveraddInternalOfferAsFactory in class AbstractDriverpublic Connection connect(String offerId) throws StorageDriverException
DriverofferId - the offerId nameStorageDriverException - if any problem occurs during connectionpublic boolean isStorageOfferAvailable(String offerId) throws StorageDriverException
DriverisStorageOfferAvailable in interface DriverisStorageOfferAvailable in class AbstractDriverofferId - the offerId nameStorageDriverException - if any problem occurs during requestpublic 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.
Copyright © 2018 Vitam. All rights reserved.