DVInfraBackendCapabilities class final
What the built backend binary honours when a unit starts it.
The provisioner can only supervise what the binary can be told to be. The
generated backend (dartvelMain, read through DVProcessConfiguration)
honours all three, so they default to true. A flag set false describes a
backend generated before it did, and a manifest that needs it is refused
rather than rendered into units that would crash-loop on a taken port or
run each schedule once per instance.
The contract, when a flag is true:
- portFromEnvironment: the process binds
DARTVEL_PORT; - workerRole:
DARTVEL_ROLE=workerwithDARTVEL_QUEUEworks that queue and serves nothing; - cronRole:
DARTVEL_ROLE=cronticks the schedules and serves nothing,DARTVEL_ROLE=webserves and does not tick, and a process given no role serves and ticks.
Constructors
- DVInfraBackendCapabilities({bool portFromEnvironment = true, bool workerRole = true, bool cronRole = true})
-
const
Properties
- cronRole → bool
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- portFromEnvironment → bool
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- workerRole → bool
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited