Class OContextConfiguration
java.lang.Object
com.orientechnologies.orient.core.config.OContextConfiguration
- All Implemented Interfaces:
OConfiguration,Serializable
Represents a context configuration where custom setting could be defined for the context only. If
not defined, globals will be taken.
- Author:
- Luca Garulli (l.garulli--(at)--orientdb.com)
- See Also:
-
Field Summary
Fields inherited from interface com.orientechnologies.orient.core.config.OConfiguration
global -
Constructor Summary
ConstructorsConstructorDescriptionEmpty constructor to create just a proxy for the OGlobalConfiguration.OContextConfiguration(Map<String, Object> iConfig) Initializes the context with custom parameters. -
Method Summary
Modifier and TypeMethodDescriptionintgetValue(OGlobalConfiguration iConfig) <T> TbooleangetValueAsBoolean(OGlobalConfiguration iConfig) <T extends Enum<T>>
TgetValueAsEnum(OGlobalConfiguration config, Class<T> enumType) floatgetValueAsFloat(OGlobalConfiguration iConfig) intgetValueAsInteger(OGlobalConfiguration iConfig) longgetValueAsLong(OGlobalConfiguration iConfig) getValueAsString(OGlobalConfiguration iConfig) getValueAsString(String iName, String iDefaultValue) voidmerge(OContextConfiguration contextConfiguration) setValue(OGlobalConfiguration iConfig, Object iValue) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.orientechnologies.orient.core.config.OConfiguration
autoCloseAfterDelay, autoCloseDelay, cacheLocalImpl, classMinimumClusters, clientChannelIdleClose, clientChannelIdleTimeout, clientChannelMaxPool, clientCiCiphertransform, clientCiKeyalgorithm, clientCiKeystoreFile, clientCiKeystorePassword, clientConnectionFetchHostList, clientConnectionStrategy, clientConnectPoolWaitTimeout, clientCredentialInterceptor, clientDbReleaseWaitTimeout, clientKrb5Ccname, clientKrb5Config, clientKrb5Ktname, clientSslKeystore, clientSslKeystorePassword, clientSslTruststore, clientSslTruststorePassword, clientUseSsl, commandTimeout, componentsLockCache, createDefaultUsers, dbCachedPoolCapacity, dbCachedPoolCleanUpTimeout, dbCustomSupport, dbDocumentSerializer, dbPoolAcquireTimeout, dbPoolMax, dbPoolMin, dbStringCacheSize, dbValidation, directMemoryOnlyAlignedAccess, directMemoryPoolLimit, directMemoryPreallocate, directMemoryTrackMode, diskCacheFreeSpaceLimit, diskCachePageSize, diskCacheSize, diskWriteCachePageFlushInterval, diskWriteCachePart, distributed, distributedAsynchResponsesTimeout, distributedAutoCreateClusters, distributedCheckHealthCanOfflineServer, distributedCheckHealthEvery, distributedConcurrentTxAutoretryDelay, distributedConcurrentTxMaxAutoretry, distributedCrudTaskSynchTimeout, distributedDatabaseOnlineGracePeriod, distributedDbWorkerthreads, distributedDeploydbTaskCompression, distributedDeploydbTaskSynchTimeout, distributedDumpStatsEvery, distributedHeartbeatTimeout, distributedMaxStartupDelay, distributedNodeName, distributedPublishNodeStatusEvery, distributedReplicationProtocolVersion, distributedRequestChannels, distributedResponseChannels, distributedTransactionSequenceSetSize, distributedTxExpireTimeout, documentBinaryMapping, enterpriseMetricsMax, environmentAllowJvmShutdown, environmentDumpCfgAtStartup, environmentLockManagerConcurrencyLevel, executorDebugTraceSource, executorPoolIoEnabled, executorPoolIoMaxSize, executorPoolMaxSize, fileDeleteDelay, fileDeleteRetry, fileLock, indexAllowManualIndexes, indexAllowManualIndexesWarning, indexCursorPrefetchSize, indexEmbeddedToSbtreebonsaiThreshold, indexIgnoreNullValuesDefault, indexSbtreebonsaiToEmbeddedThreshold, indexSynchronousAutoRebuild, initInServletContextListener, logSupportsAnsi, memoryLeftToContainer, memoryLeftToOs, memoryProfiling, memoryProfilingReportInterval, memoryUseUnsafe, networkBinaryAllowNoToken, networkBinaryDebug, networkBinaryDnsLoadbalancingEnabled, networkBinaryDnsLoadbalancingTimeout, networkBinaryMaxContentLength, networkBinaryMinProtocolVersion, networkHttpContentCharset, networkHttpInstallDefaultCommands, networkHttpJsonpEnabled, networkHttpJsonResponseError, networkHttpMaxContentLength, networkHttpServerInfo, networkHttpSessionCookieSameSite, networkHttpSessionExpireTimeout, networkHttpStreaming, networkHttpUseToken, networkLockTimeout, networkMaxConcurrentSessions, networkRequestTimeout, networkSocketBufferSize, networkSocketRetry, networkSocketRetryDelay, networkSocketTimeout, networkTokenEncryptionAlgorithm, networkTokenExpireTimeout, networkTokenSecretkey, oauth2Secretkey, openFilesLimit, paginatedStorageLowestFreelistBoundary, profilerAutodumpInterval, profilerAutodumpType, profilerEnabled, profilerMaxvalues, profilerMemorycheckInterval, queryLiveSupport, queryMaxHeapElementsAllowedPerOp, queryRemoteResultsetPageSize, queryRemoteSendExecutionPlan, recordDownsizingEnabled, ridBagEmbeddedDefaultSize, ridBagEmbeddedToSbtreebonsaiThreshold, ridBagSbtreebonsaiToEmbeddedThreshold, sbtreebonsaiBucketSize, sbtreeMaxDepth, sbtreeMaxEmbeddedValueSize, sbtreeMaxKeySize, scriptPool, securityUserPasswordDefaultAlgorithm, securityUserPasswordSaltCacheSize, securityUserPasswordSaltIterations, sequenceMaxRetry, sequenceRetryDelay, serverCacheFileStatic, serverChannelCleanDelay, serverDatabasePath, serverLogDumpClientExceptionFullstacktrace, serverLogDumpClientExceptionLevel, serverOpenAllDatabasesAtStartup, serverSecurityFile, spatialEnableDirectWktReader, statementCacheSize, storageAtomicOperationsTableCompactionLimit, storageCallFsync, storageChecksumMode, storageClusterVersion, storageCompressionMethod, storageDoubleWriteLogMaxSegSize, storageDoubleWriteLogMaxSegSizePercent, storageDoubleWriteLogMinSegSize, storageEncryptionKey, storageEncryptionMethod, storagePessimisticLocking, storagePrintWalPerformanceInterval, storagePrintWalPerformanceStatistics, storageUseDoubleWriteLog, walBufferSize, walCacheSize, walCommitTimeout, walFuzzyCheckpointInterval, walKeepSingleSegment, walLocation, walMaxSegmentSize, walMaxSegmentSizePercent, walMaxSize, walMinCompressedRecordSize, walMinSegSize, walReportAfterOperationsDuringRestore, walRestoreBatchSize, walSegmentsInterval, walShutdownTimeout, warningDefaultUsers
-
Constructor Details
-
OContextConfiguration
public OContextConfiguration()Empty constructor to create just a proxy for the OGlobalConfiguration. No values are setted. -
OContextConfiguration
Initializes the context with custom parameters.- Parameters:
iConfig- Map of parameters of type Mapinvalid input: '<'String, Object>.
-
OContextConfiguration
-
-
Method Details
-
setValue
-
setValue
-
getValue
- Specified by:
getValuein interfaceOConfiguration
-
getValueAsEnum
- Specified by:
getValueAsEnumin interfaceOConfiguration- Parameters:
config- Global configuration parameter.- Returns:
- Value of configuration parameter stored in this context as enumeration if such one
exists, otherwise value stored in passed in
OGlobalConfigurationinstance. - Throws:
ClassCastException- if stored value can not be casted and parsed from string to passed in enumeration class.IllegalArgumentException- if value associated with configuration parameter is a string bug can not be converted to instance of passed in enumeration class.
-
getValue
-
getValueAsBoolean
- Specified by:
getValueAsBooleanin interfaceOConfiguration
-
getValueAsString
-
getValueAsString
- Specified by:
getValueAsStringin interfaceOConfiguration
-
getValueAsInteger
- Specified by:
getValueAsIntegerin interfaceOConfiguration
-
getValueAsLong
- Specified by:
getValueAsLongin interfaceOConfiguration
-
getValueAsFloat
- Specified by:
getValueAsFloatin interfaceOConfiguration
-
getContextSize
public int getContextSize() -
getContextKeys
-
merge
-