Interface ProcessService

  • All Known Implementing Classes:
    ProcessServiceImpl

    @PublicApi
    public interface ProcessService
    Provides support for executing ExternalProcesss
    Since:
    3.1
    • Method Detail

      • createExternalProcess

        @NotNull
        @NotNull com.atlassian.utils.process.ExternalProcess createExternalProcess​(@NotNull
                                                                                   @NotNull ProcessContext processContext,
                                                                                   @NotNull
                                                                                   @NotNull ExternalProcessBuilder processBuilder)
        Create a new ExternalProcess that logs to the BuildLogger for the given ResultKey Processes created with this method will be decorated by any applicable TaskProcessCommandDecorator
        Parameters:
        processContext -
        processBuilder -
        Returns:
        externalProcess
      • createExternalProcess

        @NotNull
        @NotNull com.atlassian.utils.process.ExternalProcess createExternalProcess​(@NotNull
                                                                                   @NotNull CommonTaskContext taskContext,
                                                                                   @NotNull
                                                                                   @NotNull ExternalProcessBuilder processBuilder)
        Create a new ExternalProcess that logs to the BuildLogger for the given ResultKey Processes created with this method will be decorated by any applicable TaskProcessCommandDecorator
        Parameters:
        taskContext -
        processBuilder -
        Returns:
        externalProcess
      • executeExternalProcess

        @NotNull
        @NotNull com.atlassian.utils.process.ExternalProcess executeExternalProcess​(@NotNull
                                                                                    @NotNull CommonTaskContext taskContext,
                                                                                    @NotNull
                                                                                    @NotNull ExternalProcessBuilder processBuilder)
        Create and execute ExternalProcess that logs to the BuildLogger for the given ResultKey Processes created with this method will be decorated by any applicable TaskProcessCommandDecorator
        Parameters:
        taskContext -
        processBuilder -
        Returns:
        externalProcess
      • executeExternalProcess

        @NotNull
        @NotNull com.atlassian.utils.process.ExternalProcess executeExternalProcess​(@NotNull
                                                                                    @NotNull ProcessContext processContext,
                                                                                    @NotNull
                                                                                    @NotNull ExternalProcessBuilder processBuilder)
        Create and execute ExternalProcess that logs to the BuildLogger for the given ResultKey Processes created with this method will be decorated by any applicable TaskProcessCommandDecorator
        Parameters:
        processContext -
        processBuilder -
        Returns:
        externalProcess
      • getBackgroundProcesses

        BackgroundTaskProcesses getBackgroundProcesses()
        Returns the container used to handle the currently running background processes.