Record Class TraceService.McpTraceIndexRecord

java.lang.Object
java.lang.Record
com.shaft.mcp.TraceService.McpTraceIndexRecord
Record Components:
testId - safe test identifier
generatedAt - trace generation timestamp
tracePath - path to pass to trace_read, trace_summarize, or doctor_analyze_trace
indexPath - persisted index path
archivePath - persisted ZIP path
entries - artifact entries recorded by the index
Enclosing class:
TraceService

public static record TraceService.McpTraceIndexRecord(String testId, String generatedAt, String tracePath, String indexPath, String archivePath, Map<String,String> entries) extends Record
One persisted SHAFT trace index.
  • Constructor Details

  • Method Details

    • 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • testId

      public String testId()
      Returns the value of the testId record component.
      Returns:
      the value of the testId record component
    • generatedAt

      public String generatedAt()
      Returns the value of the generatedAt record component.
      Returns:
      the value of the generatedAt record component
    • tracePath

      public String tracePath()
      Returns the value of the tracePath record component.
      Returns:
      the value of the tracePath record component
    • indexPath

      public String indexPath()
      Returns the value of the indexPath record component.
      Returns:
      the value of the indexPath record component
    • archivePath

      public String archivePath()
      Returns the value of the archivePath record component.
      Returns:
      the value of the archivePath record component
    • entries

      public Map<String,String> entries()
      Returns the value of the entries record component.
      Returns:
      the value of the entries record component