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
  • Field Details

    • sessionId

      private final long sessionId
      The field for the sessionId record component.
    • nodeId

      private final String nodeId
      The field for the nodeId record component.
    • vertexName

      private final String vertexName
      The field for the vertexName record component.
    • actionName

      private final String actionName
      The field for the actionName record component.
    • level

      private final LogLevel level
      The field for the level record component.
    • message

      private final String message
      The field for the message record component.
    • exitCode

      private final Integer exitCode
      The field for the exitCode record component.
    • durationMs

      private final Long durationMs
      The field for the durationMs record 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 a InsertLog record class.
      Parameters:
      sessionId - the value for the sessionId record component
      nodeId - the value for the nodeId record component
      vertexName - the value for the vertexName record component
      actionName - the value for the actionName record component
      level - the value for the level record component
      message - the value for the message record component
      exitCode - the value for the exitCode record component
      durationMs - the value for the durationMs record component
  • Method Details

    • execute

      public void execute(Connection conn) throws SQLException
      Specified by:
      execute in interface H2LogStore.LogTask
      Throws:
      SQLException
    • 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.
    • sessionId

      public long sessionId()
      Returns the value of the sessionId record component.
      Returns:
      the value of the sessionId record component
    • nodeId

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

      public String vertexName()
      Returns the value of the vertexName record component.
      Returns:
      the value of the vertexName record component
    • actionName

      public String actionName()
      Returns the value of the actionName record component.
      Returns:
      the value of the actionName record component
    • level

      public LogLevel level()
      Returns the value of the level record component.
      Returns:
      the value of the level record component
    • message

      public String message()
      Returns the value of the message record component.
      Returns:
      the value of the message record component
    • exitCode

      public Integer exitCode()
      Returns the value of the exitCode record component.
      Returns:
      the value of the exitCode record component
    • durationMs

      public Long durationMs()
      Returns the value of the durationMs record component.
      Returns:
      the value of the durationMs record component