WindowsJobBackend class final
The Windows backend: Job Object descriptor generation (execution needs FFI — Phase 4 follow-up).
- Implemented types
Constructors
- WindowsJobBackend()
-
Creates the Windows backend.
const
Properties
- enforces → bool
-
Whether this backend actually confines at the OS level.
falsemeans wrapCommand is a passthrough and kernel mode degrades to the Dart policy layers.no setteroverride - hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
describe(
) → String -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
wrapCommand(
String command, {required String profilePath, Map< String, String> env = const {}}) → String -
Wraps
commandso it runs inside the OS sandbox.profilePathnames the profile file staged for the current spec (.fah/cube-profiles/); implementations that confine by other means may ignore it.envcarries the caller's per-exec environment (ShellExecOptions.env): kernel wrapping must thread it into the clean child environment or session vars and secrets are silently dropped — entries override the backend's cube-bound vars. Implementations that change nothing may ignore it too.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
buildJobDescriptor(
CubeResourceLimits limits) → Map< String, Object?> -
Computes the Job Object limit descriptor for
limits:
Constants
- cpuRateFlag → const int
-
JOB_OBJECT_LIMIT_CPU_RATE— a CPU rate control. - killOnJobCloseFlag → const int
-
JOB_OBJECT_LIMIT_KILL_ON_JOB_CLOSE— stray children die with the job. - processMemoryFlag → const int
-
JOB_OBJECT_LIMIT_PROCESS_MEMORY— a per-process memory cap.