Class CliFrontendParser


  • public class CliFrontendParser
    extends Object
    A simple command line parser (based on Apache Commons CLI) that extracts command line options.
    • Field Detail

      • PARALLELISM_OPTION

        public static final org.apache.commons.cli.Option PARALLELISM_OPTION
      • DETACHED_OPTION

        public static final org.apache.commons.cli.Option DETACHED_OPTION
      • SHUTDOWN_IF_ATTACHED_OPTION

        public static final org.apache.commons.cli.Option SHUTDOWN_IF_ATTACHED_OPTION
      • ARGS_OPTION

        public static final org.apache.commons.cli.Option ARGS_OPTION
      • ADDRESS_OPTION

        public static final org.apache.commons.cli.Option ADDRESS_OPTION
      • SAVEPOINT_PATH_OPTION

        public static final org.apache.commons.cli.Option SAVEPOINT_PATH_OPTION
      • SAVEPOINT_ALLOW_NON_RESTORED_OPTION

        public static final org.apache.commons.cli.Option SAVEPOINT_ALLOW_NON_RESTORED_OPTION
      • SAVEPOINT_CLAIM_MODE

        public static final org.apache.commons.cli.Option SAVEPOINT_CLAIM_MODE
      • SAVEPOINT_RESTORE_MODE

        @Deprecated
        public static final org.apache.commons.cli.Option SAVEPOINT_RESTORE_MODE
        Deprecated.
      • STOP_WITH_SAVEPOINT_PATH

        public static final org.apache.commons.cli.Option STOP_WITH_SAVEPOINT_PATH
      • STOP_AND_DRAIN

        public static final org.apache.commons.cli.Option STOP_AND_DRAIN
      • PY_OPTION

        public static final org.apache.commons.cli.Option PY_OPTION
      • PYFILES_OPTION

        public static final org.apache.commons.cli.Option PYFILES_OPTION
      • PYMODULE_OPTION

        public static final org.apache.commons.cli.Option PYMODULE_OPTION
      • PYREQUIREMENTS_OPTION

        public static final org.apache.commons.cli.Option PYREQUIREMENTS_OPTION
      • PYARCHIVE_OPTION

        public static final org.apache.commons.cli.Option PYARCHIVE_OPTION
      • PYEXEC_OPTION

        public static final org.apache.commons.cli.Option PYEXEC_OPTION
      • PYCLIENTEXEC_OPTION

        public static final org.apache.commons.cli.Option PYCLIENTEXEC_OPTION
      • PYTHON_PATH

        public static final org.apache.commons.cli.Option PYTHON_PATH
    • Constructor Detail

      • CliFrontendParser

        public CliFrontendParser()
    • Method Detail

      • getRunCommandOptions

        public static org.apache.commons.cli.Options getRunCommandOptions()
      • printHelpForInfo

        public static void printHelpForInfo()
      • createSavepointRestoreSettings

        public static SavepointRestoreSettings createSavepointRestoreSettings​(org.apache.commons.cli.CommandLine commandLine)
      • parse

        public static org.apache.commons.cli.CommandLine parse​(org.apache.commons.cli.Options options,
                                                               String[] args,
                                                               boolean stopAtNonOptions)
                                                        throws CliArgsException
        Throws:
        CliArgsException
      • mergeOptions

        public static org.apache.commons.cli.Options mergeOptions​(@Nullable
                                                                  org.apache.commons.cli.Options optionsA,
                                                                  @Nullable
                                                                  org.apache.commons.cli.Options optionsB)
        Merges the given Options into a new Options object.
        Parameters:
        optionsA - options to merge, can be null if none
        optionsB - options to merge, can be null if none
        Returns: