
Package ca.uhn.fhir.system
Class HapiSystemProperties
java.lang.Object
ca.uhn.fhir.system.HapiSystemProperties
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voidstatic voidstatic voidstatic voidThis property is used by unit tests - do not rely on it in production code as it may change at any time.static voidThis property sets the status based reindexing to disabled when the system starts up.static voidThis property is used to suppress the logging of the HAPI FHIR version on startup.static voidWhen this property is primarily used to control application shutdown behaviorstatic voidThis property prevents stack traces from getting truncated and includes the full stack trace in failed search responses.static voidThis property is used to ensure unit test behaviour is deterministic.static longGet the validation resource cache expireAfterWrite timeout in milliseconds.static booleanstatic booleanstatic booleanThis property is used by unit tests - do not rely on it in production code as it may change at any time.static booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic voidsetStackFilterPattern(String thePattern) This property gets used in the logback.xml file.static voidsetValidationResourceCacheTimeoutMillis(long theMillis) Set the validation resource cache expireAfterWrite timeout in milliseconds
-
Method Details
-
enableHapiClientKeepResponses
This property is used by unit tests - do not rely on it in production code as it may change at any time. If you want to capture responses in a reliable way in your own code, just use client interceptors -
disableHapiClientKeepResponses
-
isHapiClientKeepResponsesEnabled
This property is used by unit tests - do not rely on it in production code as it may change at any time. If you want to capture responses in a reliable way in your own code, just use client interceptors -
setStackFilterPattern
This property gets used in the logback.xml file. It causes logged stack traces to skip a number of packages that are just noise. -
setValidationResourceCacheTimeoutMillis
Set the validation resource cache expireAfterWrite timeout in milliseconds- Parameters:
theMillis- the timeout value to set (in milliseconds)
-
getValidationResourceCacheTimeoutMillis
Get the validation resource cache expireAfterWrite timeout in milliseconds. If it has not been set, the default value is 10 seconds. -
enableTestMode
When this property is primarily used to control application shutdown behavior -
isTestModeEnabled
-
enableUnitTestMode
This property is used to ensure unit test behaviour is deterministic. -
disableUnitTestMode
-
isUnitTestModeEnabled
-
enableUnitTestCaptureStack
This property prevents stack traces from getting truncated and includes the full stack trace in failed search responses. -
disableUnitTestCaptureStack
-
isUnitTestCaptureStackEnabled
-
isDisableStatusBasedReindex
-
disableStatusBasedReindex
-
enableStatusBasedReindex
This property sets the status based reindexing to disabled when the system starts up. -
enableSuppressHapiFhirVersionLog
This property is used to suppress the logging of the HAPI FHIR version on startup. -
isSuppressHapiFhirVersionLogEnabled
-
isPreventInvalidatingConditionalMatchCriteria
-
isDisableDatabasePartitionModeSchemaCheck
-