Class FlowStatus.Builder

  • All Implemented Interfaces:
    org.apache.avro.data.RecordBuilder

    
    public class FlowStatus.Builder
    extends SpecificRecordBuilderBase<T> implements RecordBuilder<T>
                        

    RecordBuilder for FlowStatus instances.

    • Constructor Detail

    • Method Detail

      • getKey

         FlowKey getKey()

        Gets the value of the 'key' field. The unique ID for the status

      • getKeyBuilder

         FlowKey.Builder getKeyBuilder()

        Gets the Builder instance for the 'key' field and creates one if it doesn't exist yet. The unique ID for the status

      • getFlowId

         String getFlowId()

        Gets the value of the 'flowId' field. The unique flow ID

      • getFlowClassName

         String getFlowClassName()

        Gets the value of the 'flowClassName' field. The fully qualified class name of the flow

      • setFlowClassName

         FlowStatus.Builder setFlowClassName(String value)

        Sets the value of the 'flowClassName' field. The fully qualified class name of the flow

        Parameters:
        value - The value of 'flowClassName'.
      • getFlowStatus

         FlowStates getFlowStatus()

        Gets the value of the 'flowStatus' field. The current processing status of a flow

      • getResult

         String getResult()

        Gets the value of the 'result' field. Optional result, this contains the result from the flow will only be set if the flow status is 'COMPLETED'

      • setResult

         FlowStatus.Builder setResult(String value)

        Sets the value of the 'result' field. Optional result, this contains the result from the flow will only be set if the flow status is 'COMPLETED'

        Parameters:
        value - The value of 'result'.
      • getError

         ExceptionEnvelope getError()

        Gets the value of the 'error' field. Optional error message, this will be set if the flow status is 'FAILED'

      • setError

         FlowStatus.Builder setError(ExceptionEnvelope value)

        Sets the value of the 'error' field. Optional error message, this will be set if the flow status is 'FAILED'

        Parameters:
        value - The value of 'error'.
      • getErrorBuilder

         ExceptionEnvelope.Builder getErrorBuilder()

        Gets the Builder instance for the 'error' field and creates one if it doesn't exist yet. Optional error message, this will be set if the flow status is 'FAILED'

      • getProcessingTerminatedReason

         String getProcessingTerminatedReason()

        Gets the value of the 'processingTerminatedReason' field. Optional message indicating reasoning why processing a flow has been terminated.

      • setProcessingTerminatedReason

         FlowStatus.Builder setProcessingTerminatedReason(String value)

        Sets the value of the 'processingTerminatedReason' field. Optional message indicating reasoning why processing a flow has been terminated.

        Parameters:
        value - The value of 'processingTerminatedReason'.
      • getCreatedTimestamp

         Instant getCreatedTimestamp()

        Gets the value of the 'createdTimestamp' field. The date the flow was created.

      • getLastUpdateTimestamp

         Instant getLastUpdateTimestamp()

        Gets the value of the 'lastUpdateTimestamp' field. The date and time this status update was published.

      • setLastUpdateTimestamp

         FlowStatus.Builder setLastUpdateTimestamp(Instant value)

        Sets the value of the 'lastUpdateTimestamp' field. The date and time this status update was published.

        Parameters:
        value - The value of 'lastUpdateTimestamp'.
      • hasKey

         boolean hasKey()

        Checks whether the 'key' field has been set. The unique ID for the status

      • hasKeyBuilder

         boolean hasKeyBuilder()

        Checks whether the 'key' field has an active Builder instance The unique ID for the status

      • hasInitiatorType

         boolean hasInitiatorType()

        Checks whether the 'initiatorType' field has been set. The type of initiator that started the flow

      • hasFlowId

         boolean hasFlowId()

        Checks whether the 'flowId' field has been set. The unique flow ID

      • hasFlowClassName

         boolean hasFlowClassName()

        Checks whether the 'flowClassName' field has been set. The fully qualified class name of the flow

      • hasFlowStatus

         boolean hasFlowStatus()

        Checks whether the 'flowStatus' field has been set. The current processing status of a flow

      • hasResult

         boolean hasResult()

        Checks whether the 'result' field has been set. Optional result, this contains the result from the flow will only be set if the flow status is 'COMPLETED'

      • clearResult

         FlowStatus.Builder clearResult()

        Clears the value of the 'result' field. Optional result, this contains the result from the flow will only be set if the flow status is 'COMPLETED'

      • hasError

         boolean hasError()

        Checks whether the 'error' field has been set. Optional error message, this will be set if the flow status is 'FAILED'

      • hasErrorBuilder

         boolean hasErrorBuilder()

        Checks whether the 'error' field has an active Builder instance Optional error message, this will be set if the flow status is 'FAILED'

      • clearError

         FlowStatus.Builder clearError()

        Clears the value of the 'error' field. Optional error message, this will be set if the flow status is 'FAILED'

      • hasProcessingTerminatedReason

         boolean hasProcessingTerminatedReason()

        Checks whether the 'processingTerminatedReason' field has been set. Optional message indicating reasoning why processing a flow has been terminated.

      • hasCreatedTimestamp

         boolean hasCreatedTimestamp()

        Checks whether the 'createdTimestamp' field has been set. The date the flow was created.

      • hasLastUpdateTimestamp

         boolean hasLastUpdateTimestamp()

        Checks whether the 'lastUpdateTimestamp' field has been set. The date and time this status update was published.