Record Class DevModeService.NodeTimingInfo
java.lang.Object
java.lang.Record
ai.nervemind.app.service.DevModeService.NodeTimingInfo
- Record Components:
nodeId- the unique identifier of the nodenodeName- the display name of the nodenodeType- the type of the nodestartTimeMs- start time in millisecondsendTimeMs- end time in millisecondsdurationMs- execution duration in millisecondssuccess- true if execution was successfulerrorMessage- error message if failed
- Enclosing class:
DevModeService
-
Constructor Summary
ConstructorsConstructorDescriptionNodeTimingInfo(String nodeId, String nodeName, String nodeType, long startTimeMs, long endTimeMs, long durationMs, boolean success, String errorMessage) Creates an instance of aNodeTimingInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionCreate a completed timing record from a started record.longReturns the value of thedurationMsrecord component.longReturns the value of theendTimeMsrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theerrorMessagerecord component.final inthashCode()Returns a hash code value for this object.nodeId()Returns the value of thenodeIdrecord component.nodeName()Returns the value of thenodeNamerecord component.nodeType()Returns the value of thenodeTyperecord component.Create a started timing record.longReturns the value of thestartTimeMsrecord component.booleansuccess()Returns the value of thesuccessrecord component.final StringtoString()Returns a string representation of this record class.
-
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 aNodeTimingInforecord class.- Parameters:
nodeId- the value for thenodeIdrecord componentnodeName- the value for thenodeNamerecord componentnodeType- the value for thenodeTyperecord componentstartTimeMs- the value for thestartTimeMsrecord componentendTimeMs- the value for theendTimeMsrecord componentdurationMs- the value for thedurationMsrecord componentsuccess- the value for thesuccessrecord componenterrorMessage- the value for theerrorMessagerecord component
-
-
Method Details
-
started
public static DevModeService.NodeTimingInfo started(String nodeId, String nodeName, String nodeType) Create a started timing record.- Parameters:
nodeId- the node IDnodeName- the node namenodeType- the node type- Returns:
- a new started NodeTimingInfo
-
completed
Create a completed timing record from a started record.- Parameters:
success- true if execution succeedederror- error message if failed- Returns:
- a new completed NodeTimingInfo
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
nodeId
-
nodeName
-
nodeType
-
startTimeMs
public long startTimeMs()Returns the value of thestartTimeMsrecord component.- Returns:
- the value of the
startTimeMsrecord component
-
endTimeMs
-
durationMs
public long durationMs()Returns the value of thedurationMsrecord component.- Returns:
- the value of the
durationMsrecord component
-
success
-
errorMessage
Returns the value of theerrorMessagerecord component.- Returns:
- the value of the
errorMessagerecord component
-