public class FakeDriverImpl extends AbstractDriver
connectionFactories
Constructor and Description |
---|
FakeDriverImpl() |
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, removeOffer
protected VitamClientFactoryInterface addInternalOfferAsFactory(StorageOffer offer, Properties parameters)
AbstractDriver
addInternalOfferAsFactory
in class AbstractDriver
public Connection connect(String offerId) throws StorageDriverException
Driver
offerId
- the offerId nameStorageDriverException
- if any problem occurs during connectionpublic boolean isStorageOfferAvailable(String offerId) throws StorageDriverException
Driver
isStorageOfferAvailable
in interface Driver
isStorageOfferAvailable
in class AbstractDriver
offerId
- the offerId nameStorageDriverException
- if any problem occurs during requestpublic String getName()
Driver
This name MAY be used in user interface to provide information on the driver.
public int getMajorVersion()
Driver
This number MAY be used in user interface to provide information on the driver.
public int getMinorVersion()
Driver
This number MAY be used in user interface to provide information on the driver.
Copyright © 2018 Vitam. All rights reserved.