Class GlobalDatasDb
- java.lang.Object
-
- fr.gouv.vitam.common.database.builder.request.configuration.GlobalDatas
-
- fr.gouv.vitam.common.database.parser.request.GlobalDatasParser
-
- fr.gouv.vitam.metadata.core.database.configuration.GlobalDatasDb
-
public class GlobalDatasDb extends GlobalDatasParser
Default configuration for DB support
-
-
Field Summary
Fields Modifier and Type Field Description static booleanBLOCKINGShall new entries insertion in the ElasticSearch index be in blocking modestatic intDEFAULT_LIMIT_SCROLLdefault limit scroll sizestatic java.lang.StringINDEXNAMEDefault Index name for ElasticSearchstatic intLIMIT_ES_NEW_INDEXlimit before flushing ES with Bulkstatic intLIMIT_MDB_NEW_INDEXlimit before flushing MongoDB with Bulkstatic longlimitESlimit before using ES in 1 level only (set to -1 means use ES at all time)static java.lang.StringlocalNetworkAddressDefault local address to be used by the client (null means no specific address)static intMAXLRUDefault LRU Sizestatic booleanSAVERESULTShall we save ResultCachestatic java.lang.StringSCROLL_ACTIVATE_KEYWORDKEYWORD to activate scrollstatic intTTLDefault TTL in s : 1Hstatic intTTLMSDefault TTL in ms : 1Hstatic booleanUSE_FILTERShould we use filter to select from graph parents, or within request (filtering seems better)static booleanUSE_FILTERED_REQUESTShall we use FilteredRequest or postFilter for queriesstatic booleanUSE_NEW_NODEDefault behavior of ElasticSearch connection (False tends to minimize the number of concurrent connections)static booleanUSELRUCACHEShall we use SynchronizedLruCache for cache of resultsstatic booleanUSEREDISShall we use Redis for cache of results-
Fields inherited from class fr.gouv.vitam.common.database.parser.request.GlobalDatasParser
DEFAULT_LIMIT_REQUEST, DEFAULT_SCROLL_TIMEOUT, limitRequest, NB_ACTIONS
-
Fields inherited from class fr.gouv.vitam.common.database.builder.request.configuration.GlobalDatas
LIMIT_LOAD, MAXDEPTH, NB_FACETS, NB_FILTERS, NB_PROJECTIONS, NB_ROOTS
-
-
Constructor Summary
Constructors Constructor Description GlobalDatasDb()
-
Method Summary
-
Methods inherited from class fr.gouv.vitam.common.database.parser.request.GlobalDatasParser
getArray, getJsonNodedepth, getValue, sanityRequestCheck
-
Methods inherited from class fr.gouv.vitam.common.database.builder.request.configuration.GlobalDatas
getDate, getLimitParameter, getLimitValue, getValueJsonNode, sanityCheck, sanityParameterCheck, sanityParametersCheck, sanityValueCheck, sanityValueCheck, sanityVariableNameCheck, setArrayValueFromList, setLimitParameter, setLimitValue
-
-
-
-
Field Detail
-
USE_FILTER
public static final boolean USE_FILTER
Should we use filter to select from graph parents, or within request (filtering seems better)- See Also:
- Constant Field Values
-
USE_FILTERED_REQUEST
public static final boolean USE_FILTERED_REQUEST
Shall we use FilteredRequest or postFilter for queries- See Also:
- Constant Field Values
-
USE_NEW_NODE
public static final boolean USE_NEW_NODE
Default behavior of ElasticSearch connection (False tends to minimize the number of concurrent connections)- See Also:
- Constant Field Values
-
INDEXNAME
public static final java.lang.String INDEXNAME
Default Index name for ElasticSearch- See Also:
- Constant Field Values
-
localNetworkAddress
public static java.lang.String localNetworkAddress
Default local address to be used by the client (null means no specific address)
-
limitES
public static long limitES
limit before using ES in 1 level only (set to -1 means use ES at all time)
-
LIMIT_ES_NEW_INDEX
public static final int LIMIT_ES_NEW_INDEX
limit before flushing ES with Bulk- See Also:
- Constant Field Values
-
LIMIT_MDB_NEW_INDEX
public static final int LIMIT_MDB_NEW_INDEX
limit before flushing MongoDB with Bulk- See Also:
- Constant Field Values
-
BLOCKING
public static final boolean BLOCKING
Shall new entries insertion in the ElasticSearch index be in blocking mode- See Also:
- Constant Field Values
-
SAVERESULT
public static final boolean SAVERESULT
Shall we save ResultCache- See Also:
- Constant Field Values
-
USELRUCACHE
public static final boolean USELRUCACHE
Shall we use SynchronizedLruCache for cache of results- See Also:
- Constant Field Values
-
TTLMS
public static final int TTLMS
Default TTL in ms : 1H- See Also:
- Constant Field Values
-
TTL
public static final int TTL
Default TTL in s : 1H- See Also:
- Constant Field Values
-
MAXLRU
public static final int MAXLRU
Default LRU Size- See Also:
- Constant Field Values
-
USEREDIS
public static final boolean USEREDIS
Shall we use Redis for cache of results- See Also:
- Constant Field Values
-
SCROLL_ACTIVATE_KEYWORD
public static final java.lang.String SCROLL_ACTIVATE_KEYWORD
KEYWORD to activate scroll- See Also:
- Constant Field Values
-
DEFAULT_LIMIT_SCROLL
public static final int DEFAULT_LIMIT_SCROLL
default limit scroll size- See Also:
- Constant Field Values
-
-