Class DefaultOperationFailureResult
- java.lang.Object
-
- org.gradle.tooling.events.internal.DefaultOperationFailureResult
-
- All Implemented Interfaces:
FailureResult,OperationResult
- Direct Known Subclasses:
DefaultProjectConfigurationFailureResult,DefaultTaskFailureResult,DefaultTestFailureResult,DefaultTransformFailureResult,DefaultWorkItemFailureResult
public class DefaultOperationFailureResult extends java.lang.Object implements FailureResult
Implementation of theBuildFailureResultinterface.
-
-
Constructor Summary
Constructors Constructor Description DefaultOperationFailureResult(long startTime, long endTime, java.util.List<? extends Failure> failures)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetEndTime()Returns the time when the operation finished its execution.java.util.List<? extends Failure>getFailures()Returns the failures that occurred while running the operation, if any.longgetStartTime()Returns the time when the operation started its execution.
-
-
-
Constructor Detail
-
DefaultOperationFailureResult
public DefaultOperationFailureResult(long startTime, long endTime, java.util.List<? extends Failure> failures)
-
-
Method Detail
-
getStartTime
public long getStartTime()
Description copied from interface:OperationResultReturns the time when the operation started its execution.- Specified by:
getStartTimein interfaceOperationResult- Returns:
- The start time, in milliseconds since the epoch.
-
getEndTime
public long getEndTime()
Description copied from interface:OperationResultReturns the time when the operation finished its execution.- Specified by:
getEndTimein interfaceOperationResult- Returns:
- The end time, in milliseconds since the epoch.
-
getFailures
public java.util.List<? extends Failure> getFailures()
Description copied from interface:FailureResultReturns the failures that occurred while running the operation, if any.- Specified by:
getFailuresin interfaceFailureResult- Returns:
- the failures, empty if the operation failed without any specific failure information.
-
-