Class Options


  • public class Options
    extends Object
    Provides options to control the behavior of MDWorkbench Server and locations where data shall be stored on server side.

    Options can be set either using context parameters on the web container or Java System properties in the virtual machine.

    • Field Detail

      • OPTION_WORKSPACE_LOCATION

        public static final String OPTION_WORKSPACE_LOCATION
        Determines the directory in the server file system where data shall be stored. This information is used to compute locations provided by DiscoveryHelper.

        Though this setting is not mandatory, clients are strongly encouraged to explicitly define such location. If this setting is absent, the default workspace location is a sub directory of the user home:
        <user.home>/.eclipse/com.sodius.mdw.server

        Since:
        2.1.0
        See Also:
        DiscoveryHelper, Constant Field Values
      • OPTION_DEBUG

        public static final String OPTION_DEBUG
        Determines whether MDWorkbench Server is executed in debug mode, in which case additional information is logged.
        See Also:
        Constant Field Values
      • OPTION_SYSTEM_PROPERTIES_LOCATION

        @Deprecated
        public static final String OPTION_SYSTEM_PROPERTIES_LOCATION
        Deprecated.
        Clients are recommended to set options using context parameters instead of System properties.
        Determines the location in the server file system of a Java Properties file that contains key/value pairs to be loaded as System properties when the server is started.
        See Also:
        Constant Field Values
      • OPTION_ENCRYPTION_SECRET_KEY

        public static final String OPTION_ENCRYPTION_SECRET_KEY
        Determines the secret key to encrypt and decrypt information using the class EncryptionProvider.
        See Also:
        EncryptionProvider, Constant Field Values
      • OPTION_STORAGE_LOCATION

        @Deprecated
        public static final String OPTION_STORAGE_LOCATION
        Deprecated.
        Clients are recommended to rather set the workspace location.
        Determines the location in the server file system where storage data shall be written. If not set, storage data is written in the selected workspace location.
        See Also:
        OPTION_WORKSPACE_LOCATION, Constant Field Values
      • OPTION_STORAGE_EXPIRATION

        public static final String OPTION_STORAGE_EXPIRATION
        Determines the number of seconds after which a storage is considered expired. When expired, storage data is automatically and permanently deleted from server side and no longer accessible. Setting a negative value disables expiration, i.e. storages are never automatically deleted. Note that an explicit DELETE HTTP request can be used to delete a storage at any moment. Default value is 30 minutes.
        See Also:
        Constant Field Values
      • OPTION_LAUNCH_EXPIRATION

        public static final String OPTION_LAUNCH_EXPIRATION
        Determines the number of seconds after which a launch is considered expired. When expired, launch data is automatically and permanently deleted from server side and no longer accessible. Setting a negative value disables expiration, i.e. launch data is never automatically deleted. Note that an explicit DELETE HTTP request can be used to delete a launch at any moment. Default value is 30 minutes.
        See Also:
        Constant Field Values