Package com.mendix.core.conf
Interface Configuration
public interface Configuration
Provides the interface for various runtime configuration settings.
- 
Nested Class SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic enumDefines the options to control which scheduled events get executed.
- 
Field SummaryFields
- 
Method SummaryModifier and TypeMethodDescriptionvoidSet default values for uninitialized fields if no custom configuration options were supplied, and feed them back again to updateConfiguration.default booleanDeprecated.since Mendix 9.Returns the name of the admin user.Returns the name of the admin role.Returns the server address that the run-time can be reached at.Returns the location on the local file system of the project deployment (i.e.Returns all configured CA certificates.Returns the password for all configured client certificates.Returns all configured client certificates.Returns the timeout in seconds for most of the database queries which are executed to load data into client widgets, like data grids.longReturns the interval (in milliseconds) used for performing all cluster manager actions.intReturns the cluster manager query timeout (in seconds).getConstantValue(String key) Returns the value for the constant with the specified name.longReturns the batch size for CSV exports.booleanReturns whether guest logins are enabled.Returns the file path separator, which is hardcoded to "/", so that forms can be exported on Windows and used on Linux.Returns the role name for guest users.Returns the document domain name.Returns the location in the local file system for images.Returns the relative URL path for images.Returns the password of the Java keystore.Returns the location on the local file system of the project file.Returns the location of the client files on the local filesystem.Returns the (qualified) names of the scheduled events from the project.Returns the line separation character(s).Returns the names of all publicly defined constants.Returns the root location in the local file system for the public web server.Returns the path to the resources folder; the default is model/resources.Returns the location on the local file system of the runtime bundles.Returns which scheduled events should be executed (all, specified, none).Returns the name of the HTTP header field for session cookies.longReturns the interval (in milliseconds) used for performing keep alive updates on sessions.intReturns after how much time a session becomes invalid (in milliseconds).intReturns the interval (in milliseconds) after which cached sessions need to be revalidated in the runtime server.Returns the name of the storage service module that is used.Returns the path to the temporary files folder; the default is data/tmp.getXASId()Returns the identifier of this runtime server instance.booleanReturns whether the microflow constants contain the specified name.booleanReturns whether file document caching is enabled.booleanReturns whether this runtime server is running in development mode, which is determined from the DTAPMode custom runtime setting.booleanReturns whether the web client sends a keep alive request to prevent a session timeout.booleanReturns whether cleaning orphan files on the local file system is enabled.booleanReturns whether change hashes are verified in a strict mode.booleanReturns whether to update the web service user's LastLogin field on each login.voidupdateConfiguration(Map<String, Object> config, boolean overwrite) Updates the current configuration with the specified configuration settings.
- 
Field Details- 
RUNTIME_VERSIONDeprecated.since 9.24. UseCore.getRuntimeVersion()instead.Contains the version of the runtime server.
 
- 
- 
Method Details- 
updateConfigurationUpdates the current configuration with the specified configuration settings.- Parameters:
- config- the configuration settings to update
- overwrite- true if existing settings should be overwritten; false otherwise
 
- 
checkConfigSet default values for uninitialized fields if no custom configuration options were supplied, and feed them back again to updateConfiguration.- Throws:
- AdminException
 
- 
getXASIdString getXASId()Returns the identifier of this runtime server instance.
- 
getBasePathFile getBasePath()Returns the location on the local file system of the project deployment (i.e. the deployment directory).
- 
getFileSeparatorString getFileSeparator()Returns the file path separator, which is hardcoded to "/", so that forms can be exported on Windows and used on Linux.
- 
getNewLineString getNewLine()Returns the line separation character(s).
- 
getPublicWebrootPathFile getPublicWebrootPath()Returns the root location in the local file system for the public web server.
- 
getImagePathFile getImagePath()Returns the location in the local file system for images.
- 
getResourcesPathFile getResourcesPath()Returns the path to the resources folder; the default is model/resources.
- 
getImageUrlString getImageUrl()Returns the relative URL path for images.
- 
getTempPathFile getTempPath()Returns the path to the temporary files folder; the default is data/tmp.
- 
getSessionKeepAliveUpdatesIntervallong getSessionKeepAliveUpdatesInterval()Returns the interval (in milliseconds) used for performing keep alive updates on sessions.
- 
getClusterManagerActionIntervallong getClusterManagerActionInterval()Returns the interval (in milliseconds) used for performing all cluster manager actions.
- 
getSessionTimeoutint getSessionTimeout()Returns after how much time a session becomes invalid (in milliseconds).
- 
getSessionValidationTimeoutint getSessionValidationTimeout()Returns the interval (in milliseconds) after which cached sessions need to be revalidated in the runtime server.
- 
isKeepAliveEnabledboolean isKeepAliveEnabled()Returns whether the web client sends a keep alive request to prevent a session timeout.
- 
isFileDocumentCachingEnabledboolean isFileDocumentCachingEnabled()Returns whether file document caching is enabled.
- 
isStrictChangeHashVerificationEnabledboolean isStrictChangeHashVerificationEnabled()Returns whether change hashes are verified in a strict mode.
- 
getApplicationRootUrlString getApplicationRootUrl()Returns the server address that the run-time can be reached at. This is used to generate WSDLs.
- 
getIFrameUploadDomainString getIFrameUploadDomain()Returns the document domain name.
- 
getModelerFileFile getModelerFile()Returns the location on the local file system of the project file.
- 
isInDevelopmentboolean isInDevelopment()Returns whether this runtime server is running in development mode, which is determined from the DTAPMode custom runtime setting.- Returns:
- true if the DTAPMode is development or testing, false otherwise
 
- 
getRuntimePathFile getRuntimePath()Returns the location on the local file system of the runtime bundles.
- 
getClientQueryTimeoutInteger getClientQueryTimeout()Returns the timeout in seconds for most of the database queries which are executed to load data into client widgets, like data grids.
- 
getConstantValueReturns the value for the constant with the specified name.- Parameters:
- key- the name of the constant
- Returns:
- the value of the constant if it exists
- Throws:
- MendixRuntimeException- if the constant does not exist
 
- 
getPublicConstantsReturns the names of all publicly defined constants.- Returns:
- the names of the constants
 
- 
getScheduledEventExecutionConfiguration.ScheduledEventExecution getScheduledEventExecution()Returns which scheduled events should be executed (all, specified, none).
- 
getMyScheduledEventsReturns the (qualified) names of the scheduled events from the project.
- 
hasMicroflowConstantConfigReturns whether the microflow constants contain the specified name.- Parameters:
- key- the name of the microflow constant
 
- 
getAdminUserRoleNameString getAdminUserRoleName()Returns the name of the admin role.
- 
getAdminUserNameString getAdminUserName()Returns the name of the admin user.
- 
getEnableGuestLoginboolean getEnableGuestLogin()Returns whether guest logins are enabled.
- 
getGuestUserRoleNameString getGuestUserRoleName()Returns the role name for guest users.
- 
enablePersistentSessionsDeprecated.since Mendix 9. Support for non-persistent sessions is removed. This method should not be used any more.This method always returns false.
- 
getMxClientSystemPathFile getMxClientSystemPath()Returns the location of the client files on the local filesystem.
- 
getJavaKeyStorePasswordString getJavaKeyStorePassword()Returns the password of the Java keystore.
- 
getCACertificatesReturns all configured CA certificates.- Throws:
- IOException
 
- 
getClientCertificatesReturns all configured client certificates.- Throws:
- IOException
 
- 
getClientCertificatePasswordsReturns the password for all configured client certificates.
- 
getCSVExportBatchSizelong getCSVExportBatchSize()Returns the batch size for CSV exports.
- 
shouldTrackWebServiceUserLastLoginboolean shouldTrackWebServiceUserLastLogin()Returns whether to update the web service user's LastLogin field on each login.
- 
getSessionIdCookieNameString getSessionIdCookieName()Returns the name of the HTTP header field for session cookies.
- 
getClusterManagerQueryTimeoutint getClusterManagerQueryTimeout()Returns the cluster manager query timeout (in seconds).- Returns:
- the timeout in seconds
 
- 
isLocalFileSystemCleaningEnabledboolean isLocalFileSystemCleaningEnabled()Returns whether cleaning orphan files on the local file system is enabled.
- 
getStorageServiceString getStorageService()Returns the name of the storage service module that is used.
 
-