Constructor and Description |
---|
DbServiceFactory() |
Modifier and Type | Method and Description |
---|---|
DbService |
createDbService(String dbUrl,
StorageCredentials creds,
SSLConfiguration sslConf)
|
public DbService createDbService(String dbUrl, StorageCredentials creds, SSLConfiguration sslConf) throws StorageException
DbService
instance which can be
used to establish a connection with Storage
. Note that the actual
StorageProvider
which will be used for the connection is looked
up based on registered StorageProvider OSGi services and URLs they are
able to handle. If a DbService
instance is already registered as
a service, users are encouraged to use that instance for disconnecting
from storage.dbUrl
- The URL to the storage endpoint. For example
mongodb://127.0.0.1:27518
or
https://storage.example.com/storage
.creds
- The credentials to use for the connection.sslConf
- The TLS configuration to use for the connection.DbService
instance which can be used for
establishing new storage connections.StorageException
- If no matching StorageProvider
could be found for the
given dbUrl.Copyright © 2017. All rights reserved.