Record Class DevModeService.NodeTimingInfo

java.lang.Object
java.lang.Record
ai.nervemind.app.service.DevModeService.NodeTimingInfo
Record Components:
nodeId - the unique identifier of the node
nodeName - the display name of the node
nodeType - the type of the node
startTimeMs - start time in milliseconds
endTimeMs - end time in milliseconds
durationMs - execution duration in milliseconds
success - true if execution was successful
errorMessage - error message if failed
Enclosing class:
DevModeService

public static record DevModeService.NodeTimingInfo(String nodeId, String nodeName, String nodeType, long startTimeMs, long endTimeMs, long durationMs, boolean success, String errorMessage) extends Record
Represents timing information for a single node execution.
Since:
1.0.0
  • Constructor Details

    • NodeTimingInfo

      public NodeTimingInfo(String nodeId, String nodeName, String nodeType, long startTimeMs, long endTimeMs, long durationMs, boolean success, String errorMessage)
      Creates an instance of a NodeTimingInfo record class.
      Parameters:
      nodeId - the value for the nodeId record component
      nodeName - the value for the nodeName record component
      nodeType - the value for the nodeType record component
      startTimeMs - the value for the startTimeMs record component
      endTimeMs - the value for the endTimeMs record component
      durationMs - the value for the durationMs record component
      success - the value for the success record component
      errorMessage - the value for the errorMessage record component
  • Method Details

    • started

      public static DevModeService.NodeTimingInfo started(String nodeId, String nodeName, String nodeType)
      Create a started timing record.
      Parameters:
      nodeId - the node ID
      nodeName - the node name
      nodeType - the node type
      Returns:
      a new started NodeTimingInfo
    • completed

      public DevModeService.NodeTimingInfo completed(boolean success, String error)
      Create a completed timing record from a started record.
      Parameters:
      success - true if execution succeeded
      error - error message if failed
      Returns:
      a new completed NodeTimingInfo
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • nodeId

      public String nodeId()
      Returns the value of the nodeId record component.
      Returns:
      the value of the nodeId record component
    • nodeName

      public String nodeName()
      Returns the value of the nodeName record component.
      Returns:
      the value of the nodeName record component
    • nodeType

      public String nodeType()
      Returns the value of the nodeType record component.
      Returns:
      the value of the nodeType record component
    • startTimeMs

      public long startTimeMs()
      Returns the value of the startTimeMs record component.
      Returns:
      the value of the startTimeMs record component
    • endTimeMs

      public long endTimeMs()
      Returns the value of the endTimeMs record component.
      Returns:
      the value of the endTimeMs record component
    • durationMs

      public long durationMs()
      Returns the value of the durationMs record component.
      Returns:
      the value of the durationMs record component
    • success

      public boolean success()
      Returns the value of the success record component.
      Returns:
      the value of the success record component
    • errorMessage

      public String errorMessage()
      Returns the value of the errorMessage record component.
      Returns:
      the value of the errorMessage record component