Interface InternalPhasedActionConnection
-
- All Superinterfaces:
InternalProtocolInterface
public interface InternalPhasedActionConnection extends InternalProtocolInterface
Mixed into a provider connection, to allow tooling models in different phases of the build to be requested by the user.DO NOT CHANGE THIS INTERFACE - it is part of the cross-version protocol.
Consumer compatibility: This interface is used by all consumer versions from 4.8.
Provider compatibility: This interface is implemented by all provider versions from 4.8.
- Since:
- 4.8
- See Also:
ConnectionVersion4
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BuildResult<?>
run(InternalPhasedAction internalPhasedAction, PhasedActionResultListener listener, InternalCancellationToken cancellationToken, BuildParameters operationParameters)
Performs some action against a build and returns the result.
-
-
-
Method Detail
-
run
BuildResult<?> run(InternalPhasedAction internalPhasedAction, PhasedActionResultListener listener, InternalCancellationToken cancellationToken, BuildParameters operationParameters) throws BuildExceptionVersion1, InternalUnsupportedBuildArgumentException, InternalBuildActionFailureException, InternalBuildCancelledException, java.lang.IllegalStateException
Performs some action against a build and returns the result.Consumer compatibility: This method is used by all consumer versions from 4.8.
Provider compatibility: This method is implemented by all provider versions from 4.8.
- Returns:
- The result of the entire build. A
Void
type is expected as result. Results for individual actions are supplied to their respective handlers. - Throws:
BuildExceptionVersion1
- On build failure.InternalUnsupportedBuildArgumentException
- When the specified command-line options are not supported.InternalBuildActionFailureException
- When one of the actions fails with an exception.InternalBuildCancelledException
- When the operation was cancelled before it could complete.java.lang.IllegalStateException
- When this connection has been stopped.
-
-