Record Class PluginTaskResults
java.lang.Object
java.lang.Record
com.xebialabs.xlrelease.domain.tasks.plugin.PluginTaskResults
- Record Components:
outputProperties- values the extension set, by declared property nameexecutionId- the task execution this belongs to; used to discard results from an execution that was already abortedstatusLine- the task's status line, ornullto leave it aloneresumeDelaySeconds- re-enter after this many seconds;nullunless the extension returnedsuspendForawaitSignal- the extension returnedawaitSignal: stay in progress with no timer queuedcomments- markdown comments the extension added viaaddComment, in the order they were added; applied whichever of the three outcomes this execution ends in, so a comment buffered before a failure or a suspend is never lost
- All Implemented Interfaces:
Serializable
public record PluginTaskResults(Map<String,Object> outputProperties, String executionId, String statusLine, Integer resumeDelaySeconds, boolean awaitSignal, List<String> comments, String executionLog)
extends Record
implements Serializable
What one execution of a plugin task produced, on its way from the worker back to the release
actor.
Deliberately unrelated to DefaultScriptService.BaseScriptTaskResults: a plugin task has
no script, and it travels on its own actor messages (FinishPluginTask,
FailPluginTask, SavePluginTaskResults) to be applied by
PluginTaskResultsService. Serializable for the same reason the script results are -
it crosses an actor boundary.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theawaitSignalrecord component.comments()Returns the value of thecommentsrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexecutionIdrecord component.Returns the value of theexecutionLogrecord component.final inthashCode()Returns a hash code value for this object.booleanTrue when this execution asked to be re-entered, by either flavour.Returns the value of theoutputPropertiesrecord component.Returns the value of theresumeDelaySecondsrecord component.Returns the value of thestatusLinerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PluginTaskResults
public PluginTaskResults(Map<String, Object> outputProperties, String executionId, String statusLine, Integer resumeDelaySeconds, boolean awaitSignal, List<String> comments, String executionLog) Creates an instance of aPluginTaskResultsrecord class.- Parameters:
outputProperties- the value for theoutputPropertiesrecord componentexecutionId- the value for theexecutionIdrecord componentstatusLine- the value for thestatusLinerecord componentresumeDelaySeconds- the value for theresumeDelaySecondsrecord componentawaitSignal- the value for theawaitSignalrecord componentcomments- the value for thecommentsrecord componentexecutionLog- the value for theexecutionLogrecord component
-
-
Method Details
-
isSuspending
public boolean isSuspending()True when this execution asked to be re-entered, by either flavour. -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
outputProperties
Returns the value of theoutputPropertiesrecord component.- Returns:
- the value of the
outputPropertiesrecord component
-
executionId
Returns the value of theexecutionIdrecord component.- Returns:
- the value of the
executionIdrecord component
-
statusLine
Returns the value of thestatusLinerecord component.- Returns:
- the value of the
statusLinerecord component
-
resumeDelaySeconds
Returns the value of theresumeDelaySecondsrecord component.- Returns:
- the value of the
resumeDelaySecondsrecord component
-
awaitSignal
public boolean awaitSignal()Returns the value of theawaitSignalrecord component.- Returns:
- the value of the
awaitSignalrecord component
-
comments
Returns the value of thecommentsrecord component.- Returns:
- the value of the
commentsrecord component
-
executionLog
Returns the value of theexecutionLogrecord component.- Returns:
- the value of the
executionLogrecord component
-