Package org.nuxeo.runtime.mongodb
Class MongoDBConnectionConfig
- java.lang.Object
-
- org.nuxeo.runtime.mongodb.MongoDBConnectionConfig
-
- All Implemented Interfaces:
Descriptor
public class MongoDBConnectionConfig extends Object implements Descriptor
Descriptor to retrieve connection information to MongoDB.- Since:
- 9.1
-
-
Field Summary
Fields Modifier and Type Field Description String
dbname
String
id
String
keyStorePassword
String
keyStorePath
String
keyStoreType
Duration
maxTime
Map<String,String>
properties
String
server
Boolean
ssl
String
trustStorePassword
String
trustStorePath
String
trustStoreType
-
Fields inherited from interface org.nuxeo.runtime.model.Descriptor
UNIQUE_DESCRIPTOR_ID
-
-
Constructor Summary
Constructors Constructor Description MongoDBConnectionConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getId()
The descriptor id, descriptors with same id are merged.MongoDBConnectionConfig
merge(Descriptor o)
Returns a descriptor representingother
merged intothis
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.nuxeo.runtime.model.Descriptor
doesRemove
-
-
-
-
Field Detail
-
id
public String id
-
server
public String server
-
ssl
public Boolean ssl
- Since:
- 10.3
-
trustStorePath
public String trustStorePath
- Since:
- 10.3
-
trustStorePassword
public String trustStorePassword
- Since:
- 10.3
-
trustStoreType
public String trustStoreType
- Since:
- 10.3
-
keyStorePath
public String keyStorePath
- Since:
- 10.3
-
keyStorePassword
public String keyStorePassword
- Since:
- 10.3
-
keyStoreType
public String keyStoreType
- Since:
- 10.3
-
dbname
public String dbname
-
maxTime
public Duration maxTime
- Since:
- 11.1 maxTime when outside of a transaction
-
-
Method Detail
-
getId
public String getId()
Description copied from interface:Descriptor
The descriptor id, descriptors with same id are merged.To forbid multiple descriptors use UNIQUE_DESCRIPTOR_ID.
To forbid merge use a unique value, non-overriden
toString()
for exemple.- Specified by:
getId
in interfaceDescriptor
-
merge
public MongoDBConnectionConfig merge(Descriptor o)
Description copied from interface:Descriptor
Returns a descriptor representingother
merged intothis
Default implementation returns
other
.- Specified by:
merge
in interfaceDescriptor
- Returns:
- the merged descriptor
-
-