Class DefaultProcessDryRunConfiguration

    • Constructor Detail

      • DefaultProcessDryRunConfiguration

        public DefaultProcessDryRunConfiguration()
    • Method Detail

      • getCommandAndArgumentsSupplier

        public java.util.Optional<java.util.function.Consumer<java.util.Collection<java.lang.String>>> getCommandAndArgumentsSupplier()
        Description copied from interface: ProcessDryRunConfiguration
        Get command and arguments supplier. If command and arguments should be processed, e.g. printed on console
        Specified by:
        getCommandAndArgumentsSupplier in interface ProcessDryRunConfiguration
        Returns:
        Returns command and arguments supplier
      • setStartFailure

        public void setStartFailure​(boolean startFailure)
        Configure startup failure.
        Parameters:
        startFailure - true to fail process starting up, false otherwise
      • setExitCode

        public void setExitCode​(int exitCode)
        Specify process exit code.
        Parameters:
        exitCode - process exit code
      • setStreamSupplier

        public void setStreamSupplier​(java.util.function.Supplier<ProcessDryRunProcessStream> streamSupplier)
        Set process streams supplier.
        Parameters:
        streamSupplier - process streams supplier.
      • setCommandAndArgumentsConsumer

        public void setCommandAndArgumentsConsumer​(java.util.function.Consumer<java.util.Collection<java.lang.String>> caaConsumer)
        Set process command and arguments consumer. All arguments to passed consumer are masked (no raw arguments) Use this method when need to print command line and arguments which would be used.
        Parameters:
        caaConsumer - command and argument consumer.