Package com.atlassian.bamboo.process
Class ProcessServiceImpl
java.lang.Object
com.atlassian.bamboo.process.ProcessServiceImpl
- All Implemented Interfaces:
ProcessService
-
Field Summary
Fields inherited from interface com.atlassian.bamboo.process.ProcessService
CBD_BUILD_COMMANDLINE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NotNull com.atlassian.utils.process.ExternalProcess
createExternalProcess
(@NotNull ProcessContext processContext, @NotNull ExternalProcessBuilder processBuilder) Create a newExternalProcess
that logs to theBuildLogger
for the givenResultKey
Processes created with this method will be decorated by any applicableTaskProcessCommandDecorator
@NotNull com.atlassian.utils.process.ExternalProcess
createExternalProcess
(@NotNull CommonTaskContext taskContext, @NotNull ExternalProcessBuilder processBuilder) Create a newExternalProcess
that logs to theBuildLogger
for the givenResultKey
Processes created with this method will be decorated by any applicableTaskProcessCommandDecorator
@NotNull com.atlassian.utils.process.ExternalProcess
executeExternalProcess
(@NotNull ProcessContext processContext, @NotNull ExternalProcessBuilder processBuilder) Create and executeExternalProcess
that logs to theBuildLogger
for the givenResultKey
Processes created with this method will be decorated by any applicableTaskProcessCommandDecorator
@NotNull com.atlassian.utils.process.ExternalProcess
executeExternalProcess
(@NotNull CommonTaskContext taskContext, @NotNull ExternalProcessBuilder processBuilder) Create and executeExternalProcess
that logs to theBuildLogger
for the givenResultKey
Processes created with this method will be decorated by any applicableTaskProcessCommandDecorator
Returns the container used to handle the currently running background processes.static void
shutdown()
-
Constructor Details
-
ProcessServiceImpl
public ProcessServiceImpl()
-
-
Method Details
-
createExternalProcess
@NotNull public @NotNull com.atlassian.utils.process.ExternalProcess createExternalProcess(@NotNull @NotNull ProcessContext processContext, @NotNull @NotNull ExternalProcessBuilder processBuilder) Description copied from interface:ProcessService
Create a newExternalProcess
that logs to theBuildLogger
for the givenResultKey
Processes created with this method will be decorated by any applicableTaskProcessCommandDecorator
- Specified by:
createExternalProcess
in interfaceProcessService
- Returns:
- externalProcess
-
createExternalProcess
@NotNull public @NotNull com.atlassian.utils.process.ExternalProcess createExternalProcess(@NotNull @NotNull CommonTaskContext taskContext, @NotNull @NotNull ExternalProcessBuilder processBuilder) Description copied from interface:ProcessService
Create a newExternalProcess
that logs to theBuildLogger
for the givenResultKey
Processes created with this method will be decorated by any applicableTaskProcessCommandDecorator
- Specified by:
createExternalProcess
in interfaceProcessService
- Returns:
- externalProcess
-
executeExternalProcess
@NotNull public @NotNull com.atlassian.utils.process.ExternalProcess executeExternalProcess(@NotNull @NotNull ProcessContext processContext, @NotNull @NotNull ExternalProcessBuilder processBuilder) Description copied from interface:ProcessService
Create and executeExternalProcess
that logs to theBuildLogger
for the givenResultKey
Processes created with this method will be decorated by any applicableTaskProcessCommandDecorator
- Specified by:
executeExternalProcess
in interfaceProcessService
- Returns:
- externalProcess
-
executeExternalProcess
@NotNull public @NotNull com.atlassian.utils.process.ExternalProcess executeExternalProcess(@NotNull @NotNull CommonTaskContext taskContext, @NotNull @NotNull ExternalProcessBuilder processBuilder) Description copied from interface:ProcessService
Create and executeExternalProcess
that logs to theBuildLogger
for the givenResultKey
Processes created with this method will be decorated by any applicableTaskProcessCommandDecorator
- Specified by:
executeExternalProcess
in interfaceProcessService
- Returns:
- externalProcess
-
shutdown
public static void shutdown() -
getBackgroundProcesses
Description copied from interface:ProcessService
Returns the container used to handle the currently running background processes.- Specified by:
getBackgroundProcesses
in interfaceProcessService
-