Package cs1302.tracer.batch
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 Summary
ConstructorsConstructorDescriptionBatchJobRequest(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.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 aBatchJobRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaccumulateBreakpointsrecord component.Returns the value of theallBreakpointsrecord component.Returns the value of thebreakpointsrecord component.final booleanIndicates whether some other object is "equal to" this one.format()Returns the value of theformatrecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.Returns the value of theinlineStringsrecord component.Returns the value of theinspectionrecord component.limits()Returns the value of thelimitsrecord component.Returns the value of themultithreadrecord component.Returns the value of theremoveMainArgsrecord component.Returns the value of theremoveMethodThisrecord component.Resolves the trace format, defaulting to PYTUTOR if not specified.Resolves the effective TraceLimits, defaulting to unlimited if omitted.Resolves the type style, defaulting to FQN if not specified.source()Returns the value of thesourcerecord component.stdin()Returns the value of thestdinrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetypeStylerecord component.
-
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 aBatchJobRequestrecord class.- Parameters:
id- the value for theidrecord componentsource- the value for thesourcerecord componentformat- the value for theformatrecord componentstdin- the value for thestdinrecord componentbreakpoints- the value for thebreakpointsrecord componentallBreakpoints- the value for theallBreakpointsrecord componentaccumulateBreakpoints- the value for theaccumulateBreakpointsrecord componentremoveMainArgs- the value for theremoveMainArgsrecord componentinlineStrings- the value for theinlineStringsrecord componentremoveMethodThis- the value for theremoveMethodThisrecord componenttypeStyle- the value for thetypeStylerecord componentlimits- the value for thelimitsrecord componentinspection- the value for theinspectionrecord componentmultithread- the value for themultithreadrecord component
-
-
Method Details
-
resolveFormat
Resolves the trace format, defaulting to PYTUTOR if not specified.- Returns:
- Resolved TraceFormat.
- Throws:
IllegalArgumentException- If format is unsupported.
-
resolveTypeStyle
Resolves the type style, defaulting to FQN if not specified.- Returns:
- Resolved TypeStyle.
- Throws:
IllegalArgumentException- If typeStyle is unsupported.
-
resolveLimits
Resolves the effective TraceLimits, defaulting to unlimited if omitted.- Returns:
- Resolved TraceLimits.
-
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. -
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. -
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. All components in this record class are compared withObjects::equals(Object,Object). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-
format
Returns the value of theformatrecord component.- Returns:
- the value of the
formatrecord component
-
stdin
Returns the value of thestdinrecord component.- Returns:
- the value of the
stdinrecord component
-
breakpoints
Returns the value of thebreakpointsrecord component.- Returns:
- the value of the
breakpointsrecord component
-
allBreakpoints
Returns the value of theallBreakpointsrecord component.- Returns:
- the value of the
allBreakpointsrecord component
-
accumulateBreakpoints
Returns the value of theaccumulateBreakpointsrecord component.- Returns:
- the value of the
accumulateBreakpointsrecord component
-
removeMainArgs
Returns the value of theremoveMainArgsrecord component.- Returns:
- the value of the
removeMainArgsrecord component
-
inlineStrings
Returns the value of theinlineStringsrecord component.- Returns:
- the value of the
inlineStringsrecord component
-
removeMethodThis
Returns the value of theremoveMethodThisrecord component.- Returns:
- the value of the
removeMethodThisrecord component
-
typeStyle
Returns the value of thetypeStylerecord component.- Returns:
- the value of the
typeStylerecord component
-
limits
Returns the value of thelimitsrecord component.- Returns:
- the value of the
limitsrecord component
-
inspection
Returns the value of theinspectionrecord component.- Returns:
- the value of the
inspectionrecord component
-
multithread
Returns the value of themultithreadrecord component.- Returns:
- the value of the
multithreadrecord component
-