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 Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic Stringundertow connetction options Seehttp://undertow.io/undertow-docs/undertow-docs-2.0.0/index.html#common-listener-optionsstatic org.slf4j.Logger -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance of Configuration with defaults values. -
Method Summary
Modifier and TypeMethodDescriptionstatic int[]convertListToIntArray(List<Object> integers)booleandecides whether metrics are gathered at the given log level or notstatic MongoServiceConfigurationget()booleanlongintintintint[]intintintintlongintcom.mongodb.MongoClientURIlongintlongstatic MongoServiceConfigurationstatic MongoServiceConfigurationstatic MongoServiceConfigurationinitFromFile(Path confFile, boolean silent)booleanbooleantoString()
-
Field Details
-
CONNECTION_OPTIONS_KEY
undertow connetction options Seehttp://undertow.io/undertow-docs/undertow-docs-2.0.0/index.html#common-listener-options- See Also:
- Constant Field Values
-
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
-
initFromFile
-
convertListToIntArray
- Parameters:
integers-- Returns:
-
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
-
getEagerLinearSliceWidht
public int getEagerLinearSliceWidht()- Returns:
- the eagerLinearSliceWidht
-
getEagerLinearSliceDelta
public int getEagerLinearSliceDelta()- Returns:
- the eagerLinearSliceDelta
-
getEagerLinearSliceHeights
public int[] getEagerLinearSliceHeights()- Returns:
- the eagerLinearSliceHeights
-
getEagerRndSliceMinWidht
public int getEagerRndSliceMinWidht()- Returns:
- the eagerRndSliceMinWidht
-
getEagerRndMaxCursors
public int getEagerRndMaxCursors()- Returns:
- the eagerRndMaxCursors
-
getEagerPoolSize
public int getEagerPoolSize()- Returns:
- the eagerPoolSize
-
getMongoUri
public com.mongodb.MongoClientURI 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
- Returns:
-
gatheringAboveOrEqualToLevel
public boolean gatheringAboveOrEqualToLevel(MongoServiceConfiguration.METRICS_GATHERING_LEVEL level)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
-