Package com.tonic.analysis.query.ast
Class RunSpec
- java.lang.Object
-
- com.tonic.analysis.query.ast.RunSpec
-
public final class RunSpec extends Object
Execution budget and tracing configuration for queries that require running code.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRunSpec.BuilderMutable builder for RunSpec instances.static classRunSpec.TraceModeHow much execution trace to retain: none, a bounded ring, or the full trace.
-
Constructor Summary
Constructors Constructor Description RunSpec(int seeds, int maxInstructions, int maxDepth, RunSpec.TraceMode traceMode, int timeBudgetMs)Creates a run specification.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RunSpec.Builderbuilder()Creates a builder initialized with the default settings.booleanequals(Object o)inthashCode()intmaxDepth()intmaxInstructions()intseeds()inttimeBudgetMs()StringtoString()RunSpec.TraceModetraceMode()
-
-
-
Field Detail
-
DEFAULT
public static final RunSpec DEFAULT
-
-
Constructor Detail
-
RunSpec
public RunSpec(int seeds, int maxInstructions, int maxDepth, RunSpec.TraceMode traceMode, int timeBudgetMs)Creates a run specification.- Parameters:
seeds- the number of seed inputs per entry pointmaxInstructions- the instruction execution capmaxDepth- the maximum call depthtraceMode- how much execution trace to retaintimeBudgetMs- the wall-clock budget in milliseconds
-
-
Method Detail
-
seeds
public int seeds()
- Returns:
- the number of seed inputs per entry point
-
maxInstructions
public int maxInstructions()
- Returns:
- the instruction execution cap
-
maxDepth
public int maxDepth()
- Returns:
- the maximum call depth
-
traceMode
public RunSpec.TraceMode traceMode()
- Returns:
- the trace retention mode
-
timeBudgetMs
public int timeBudgetMs()
- Returns:
- the wall-clock budget in milliseconds
-
builder
public static RunSpec.Builder builder()
Creates a builder initialized with the default settings.- Returns:
- a new builder
-
-