Package com.mongodb.embedded.client
Class MongoEmbeddedSettings
- java.lang.Object
-
- com.mongodb.embedded.client.MongoEmbeddedSettings
-
@Immutable public final class MongoEmbeddedSettings extends Object
Various settings to configure the underlying mongod library- Since:
- 3.8
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MongoEmbeddedSettings.Builder
A builder forMongoEmbeddedSettings
so thatMongoEmbeddedSettings
can be immutable, and to support easier construction through chaining.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MongoEmbeddedSettings.Builder
builder()
Convenience method to create a Builder.static MongoEmbeddedSettings.Builder
builder(MongoEmbeddedSettings settings)
Convenience method to create a from an existingMongoClientSettings
.String
getLibraryPath()
Gets the library path for the embedded mongodMongoEmbeddedLogLevel
getLogLevel()
Gets the logging level for the embedded mongodString
getYamlConfig()
Returns the yaml configuration for mongod.
-
-
-
Method Detail
-
builder
public static MongoEmbeddedSettings.Builder builder()
Convenience method to create a Builder.- Returns:
- a builder
-
builder
public static MongoEmbeddedSettings.Builder builder(MongoEmbeddedSettings settings)
Convenience method to create a from an existingMongoClientSettings
.- Parameters:
settings
- create a builder from existing settings- Returns:
- a builder
-
getLibraryPath
public String getLibraryPath()
Gets the library path for the embedded mongod- Returns:
- the library path if set or null
-
getYamlConfig
public String getYamlConfig()
Returns the yaml configuration for mongod.- Returns:
- the yaml configuration for mongod
- MongoDB documentation
- reference/configuration-options/
-
getLogLevel
public MongoEmbeddedLogLevel getLogLevel()
Gets the logging level for the embedded mongod- Returns:
- the logging level
-
-