Class Options

java.lang.Object
com.sodius.mdw.server.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 Details

    • 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:
    • OPTION_SYSTEM_PROPERTIES_LOCATION

      @Deprecated(forRemoval=false) 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:
    • 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:
    • OPTION_STORAGE_LOCATION

      @Deprecated(forRemoval=false) 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_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:
    • 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: