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 theBuildFailureResult
interface.
-
-
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 long
getEndTime()
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.long
getStartTime()
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:OperationResult
Returns the time when the operation started its execution.- Specified by:
getStartTime
in interfaceOperationResult
- Returns:
- The start time, in milliseconds since the epoch.
-
getEndTime
public long getEndTime()
Description copied from interface:OperationResult
Returns the time when the operation finished its execution.- Specified by:
getEndTime
in interfaceOperationResult
- Returns:
- The end time, in milliseconds since the epoch.
-
getFailures
public java.util.List<? extends Failure> getFailures()
Description copied from interface:FailureResult
Returns the failures that occurred while running the operation, if any.- Specified by:
getFailures
in interfaceFailureResult
- Returns:
- the failures, empty if the operation failed without any specific failure information.
-
-