Record Class H2LogStore.LogTask.InsertLog
java.lang.Object
java.lang.Record
com.scivicslab.actoriac.log.H2LogStore.LogTask.InsertLog
- All Implemented Interfaces:
H2LogStore.LogTask
- Enclosing interface:
H2LogStore.LogTask
public static record H2LogStore.LogTask.InsertLog(long sessionId, String nodeId, String vertexName, String actionName, LogLevel level, String message, Integer exitCode, Long durationMs)
extends Record
implements H2LogStore.LogTask
- Author:
- devteam@scivics-lab.com
-
Nested Class Summary
Nested classes/interfaces inherited from interface H2LogStore.LogTask
H2LogStore.LogTask.InsertLog, H2LogStore.LogTask.UpdateNodeResult -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringThe field for theactionNamerecord component.private final LongThe field for thedurationMsrecord component.private final IntegerThe field for theexitCoderecord component.private final LogLevelThe field for thelevelrecord component.private final StringThe field for themessagerecord component.private final StringThe field for thenodeIdrecord component.private final longThe field for thesessionIdrecord component.private final StringThe field for thevertexNamerecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theactionNamerecord component.Returns the value of thedurationMsrecord component.final booleanIndicates whether some other object is "equal to" this one.voidexecute(Connection conn) exitCode()Returns the value of theexitCoderecord component.final inthashCode()Returns a hash code value for this object.level()Returns the value of thelevelrecord component.message()Returns the value of themessagerecord component.nodeId()Returns the value of thenodeIdrecord component.longReturns the value of thesessionIdrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thevertexNamerecord component.
-
Field Details
-
sessionId
The field for thesessionIdrecord component. -
nodeId
-
vertexName
The field for thevertexNamerecord component. -
actionName
The field for theactionNamerecord component. -
level
-
message
-
exitCode
-
durationMs
The field for thedurationMsrecord component.
-
-
Constructor Details
-
InsertLog
public InsertLog(long sessionId, String nodeId, String vertexName, String actionName, LogLevel level, String message, Integer exitCode, Long durationMs) Creates an instance of aInsertLogrecord class.- Parameters:
sessionId- the value for thesessionIdrecord componentnodeId- the value for thenodeIdrecord componentvertexName- the value for thevertexNamerecord componentactionName- the value for theactionNamerecord componentlevel- the value for thelevelrecord componentmessage- the value for themessagerecord componentexitCode- the value for theexitCoderecord componentdurationMs- the value for thedurationMsrecord component
-
-
Method Details
-
execute
- Specified by:
executein interfaceH2LogStore.LogTask- Throws:
SQLException
-
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. -
sessionId
Returns the value of thesessionIdrecord component.- Returns:
- the value of the
sessionIdrecord component
-
nodeId
-
vertexName
Returns the value of thevertexNamerecord component.- Returns:
- the value of the
vertexNamerecord component
-
actionName
Returns the value of theactionNamerecord component.- Returns:
- the value of the
actionNamerecord component
-
level
-
message
-
exitCode
-
durationMs
Returns the value of thedurationMsrecord component.- Returns:
- the value of the
durationMsrecord component
-