Package org.restheart.mongodb
Class MongoServiceConfiguration
java.lang.Object
org.restheart.mongodb.MongoServiceConfiguration
Utility class to help dealing with the restheart configuration file.
- Author:
- Andrea Di Cesare <andrea@softinstigate.com>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDeprecated.will be removed in RH v8.0 -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringundertow connection options Seehttp://undertow.io/undertow-docs/undertow-docs-2.0.0/index.html#common-listener-optionsstatic final org.slf4j.Logger -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance of Configuration with defaults values. -
Method Summary
Modifier and TypeMethodDescriptionbooleanDeprecated.will be removed in RH v8.0 decides whether metrics are gathered at the given log level or notstatic MongoServiceConfigurationget()booleanlongintintintintintlongintDeprecated.will be removed in RH v8.0com.mongodb.ConnectionStringlongintlongstatic MongoServiceConfigurationstatic MongoServiceConfigurationbooleanbooleantoString()
-
Field Details
-
CONNECTION_OPTIONS_KEY
undertow connection options Seehttp://undertow.io/undertow-docs/undertow-docs-2.0.0/index.html#common-listener-options- See Also:
-
LOGGER
public static final org.slf4j.Logger LOGGER
-
-
Constructor Details
-
MongoServiceConfiguration
public MongoServiceConfiguration()Creates a new instance of Configuration with defaults values.
-
-
Method Details
-
get
-
init
-
init
-
toString
-
getMongoMounts
- Returns:
- the mongoMounts
-
isLocalCacheEnabled
public boolean isLocalCacheEnabled()- Returns:
- the localCacheEnabled
-
getLocalCacheTtl
public long getLocalCacheTtl()- Returns:
- the localCacheTtl
-
getRequestsLimit
public int getRequestsLimit()- Returns:
- the requestsLimit
-
getQueryTimeLimit
public long getQueryTimeLimit()- Returns:
- the queryTimeLimit
-
getAggregationTimeLimit
public long getAggregationTimeLimit()- Returns:
- the aggregationTimeLimit
-
getAggregationCheckOperators
public boolean getAggregationCheckOperators()- Returns:
- the aggregationCheckOperators
-
getGetCollectionCacheSize
public int getGetCollectionCacheSize()- Returns:
- the getCollectionCacheSize
-
getGetCollectionCacheTTL
public int getGetCollectionCacheTTL()- Returns:
- the getCollectionCacheTTL
-
getGetCollectionCacheDocs
public int getGetCollectionCacheDocs()- Returns:
- the getCollectionCacheDocs
-
getMongoUri
public com.mongodb.ConnectionString getMongoUri()- Returns:
- the mongoUri
-
getPluginsArgs
- Returns:
- the pluginsArgs
-
isSchemaCacheEnabled
public boolean isSchemaCacheEnabled()- Returns:
- the schemaCacheEnabled
-
getSchemaCacheTtl
public long getSchemaCacheTtl()- Returns:
- the schemaCacheTtl
-
getDbEtagCheckPolicy
- Returns:
- the dbEtagCheckPolicy
-
getCollEtagCheckPolicy
- Returns:
- the collEtagCheckPolicy
-
getDocEtagCheckPolicy
- Returns:
- the docEtagCheckPolicy
-
getConnectionOptions
- Returns:
- the connectionOptions
-
getInstanceBaseURL
- Returns:
- the instanceBaseURL
-
getDefaultRepresentationFormat
- Returns:
- the defaultRepresentationFromat
-
getConfigurationFileMap
- Returns:
- the configurationFileMap
-
getCursorBatchSize
public int getCursorBatchSize()- Returns:
- the cursorBatchSize
-
getMaxPagesize
public int getMaxPagesize()- Returns:
- the maxPagesize
-
getDefaultPagesize
public int getDefaultPagesize()- Returns:
- the defaultPagesize
-
getMetricsGatheringLevel
Deprecated.will be removed in RH v8.0 -
gatheringAboveOrEqualToLevel
@Deprecated public boolean gatheringAboveOrEqualToLevel(MongoServiceConfiguration.METRICS_GATHERING_LEVEL level) Deprecated.will be removed in RH v8.0 decides whether metrics are gathered at the given log level or not- Parameters:
level- Metrics Gathering Level- Returns:
- true if gathering Above Or Equal To Level
-