Record Class BatchJobRequest

java.lang.Object
java.lang.Record
cs1302.tracer.batch.BatchJobRequest
Record Components:
id - Unique job correlation identifier.
source - Java source code (single or multi-file delimited).
format - Output format (pytutor or modern).
stdin - Optional guest standard input string.
breakpoints - Optional list of breakpoint strings.
allBreakpoints - True to trace all breakpoints chronologically.
accumulateBreakpoints - True to retain all hits per breakpoint.
removeMainArgs - True to omit main method args.
inlineStrings - True to inline String fields.
removeMethodThis - True to omit this reference in methods.
typeStyle - Type styling (fqn or compact).
limits - Optional resource limits.
inspection - Optional inspection policy.
multithread - Enable chronological platform-thread capture in modern format.

public record BatchJobRequest(String id, String source, String format, String stdin, List<String> breakpoints, Boolean allBreakpoints, Boolean accumulateBreakpoints, Boolean removeMainArgs, Boolean inlineStrings, Boolean removeMethodThis, String typeStyle, TraceLimits limits, InspectionPolicy inspection, Boolean multithread) extends Record
Represents a single batch tracing job request parsed from an NDJSON line.
  • Constructor Details

    • BatchJobRequest

      public BatchJobRequest(String id, String source, String format, String stdin, List<String> breakpoints, Boolean allBreakpoints, Boolean accumulateBreakpoints, Boolean removeMainArgs, Boolean inlineStrings, Boolean removeMethodThis, String typeStyle, TraceLimits limits, InspectionPolicy inspection)
      Constructs a request using the original single-stack contract.
      Parameters:
      id - Correlation ID.
      source - Source text.
      format - Trace format.
      stdin - Standard input.
      breakpoints - Breakpoint specifications.
      allBreakpoints - Chronological capture.
      accumulateBreakpoints - Retain breakpoint hits.
      removeMainArgs - Omit main arguments.
      inlineStrings - Inline strings.
      removeMethodThis - Omit this references.
      typeStyle - Type styling.
      limits - Job limits.
      inspection - Inspection policy.
    • BatchJobRequest

      public BatchJobRequest(String id, String source, String format, String stdin, List<String> breakpoints, Boolean allBreakpoints, Boolean accumulateBreakpoints, Boolean removeMainArgs, Boolean inlineStrings, Boolean removeMethodThis, String typeStyle, TraceLimits limits, InspectionPolicy inspection, Boolean multithread)
      Creates an instance of a BatchJobRequest record class.
      Parameters:
      id - the value for the id record component
      source - the value for the source record component
      format - the value for the format record component
      stdin - the value for the stdin record component
      breakpoints - the value for the breakpoints record component
      allBreakpoints - the value for the allBreakpoints record component
      accumulateBreakpoints - the value for the accumulateBreakpoints record component
      removeMainArgs - the value for the removeMainArgs record component
      inlineStrings - the value for the inlineStrings record component
      removeMethodThis - the value for the removeMethodThis record component
      typeStyle - the value for the typeStyle record component
      limits - the value for the limits record component
      inspection - the value for the inspection record component
      multithread - the value for the multithread record component
  • Method Details

    • resolveFormat

      public TraceFormat resolveFormat()
      Resolves the trace format, defaulting to PYTUTOR if not specified.
      Returns:
      Resolved TraceFormat.
      Throws:
      IllegalArgumentException - If format is unsupported.
    • resolveTypeStyle

      public TypeStyle resolveTypeStyle()
      Resolves the type style, defaulting to FQN if not specified.
      Returns:
      Resolved TypeStyle.
      Throws:
      IllegalArgumentException - If typeStyle is unsupported.
    • resolveLimits

      public TraceLimits resolveLimits()
      Resolves the effective TraceLimits, defaulting to unlimited if omitted.
      Returns:
      Resolved TraceLimits.
    • 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.
    • id

      public String id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • source

      public String source()
      Returns the value of the source record component.
      Returns:
      the value of the source record component
    • format

      public String format()
      Returns the value of the format record component.
      Returns:
      the value of the format record component
    • stdin

      public String stdin()
      Returns the value of the stdin record component.
      Returns:
      the value of the stdin record component
    • breakpoints

      public List<String> breakpoints()
      Returns the value of the breakpoints record component.
      Returns:
      the value of the breakpoints record component
    • allBreakpoints

      public Boolean allBreakpoints()
      Returns the value of the allBreakpoints record component.
      Returns:
      the value of the allBreakpoints record component
    • accumulateBreakpoints

      public Boolean accumulateBreakpoints()
      Returns the value of the accumulateBreakpoints record component.
      Returns:
      the value of the accumulateBreakpoints record component
    • removeMainArgs

      public Boolean removeMainArgs()
      Returns the value of the removeMainArgs record component.
      Returns:
      the value of the removeMainArgs record component
    • inlineStrings

      public Boolean inlineStrings()
      Returns the value of the inlineStrings record component.
      Returns:
      the value of the inlineStrings record component
    • removeMethodThis

      public Boolean removeMethodThis()
      Returns the value of the removeMethodThis record component.
      Returns:
      the value of the removeMethodThis record component
    • typeStyle

      public String typeStyle()
      Returns the value of the typeStyle record component.
      Returns:
      the value of the typeStyle record component
    • limits

      public TraceLimits limits()
      Returns the value of the limits record component.
      Returns:
      the value of the limits record component
    • inspection

      public InspectionPolicy inspection()
      Returns the value of the inspection record component.
      Returns:
      the value of the inspection record component
    • multithread

      public Boolean multithread()
      Returns the value of the multithread record component.
      Returns:
      the value of the multithread record component