DVProcessConfiguration class final

The resolved settings for one backend process.

Constructors

DVProcessConfiguration({required DVProcessRole role, required bool roleDeclared, required int port, List<String> queues = const <String>[], int? healthPort, bool scheduleLeaseWaived = false, int? maxJobs})
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
healthPort → int?
Where a worker or a cron process answers GET /healthz, from DARTVEL_HEALTH_PORT. Null serves no health endpoint, which is the default: a port nobody asked for is a port somebody has to firewall.
final
maxJobs → int?
For a worker, --max-jobs: stop once that many jobs have completed or a pass completes none, rather than working until stopped.
final
port → int
The port a web process binds: DARTVEL_PORT, else the generated one.
final
queues → List<String>
The queues a worker works, in order. Empty for any other role.
final
role → DVProcessRole
final
roleDeclared → bool
Whether DARTVEL_ROLE or --role said so, rather than the default.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scheduleLeaseWaived → bool
Whether DARTVEL_SCHEDULE_LEASE=none said this is the only process ticking the schedules, so no lease is claimed.
final
servesHttp → bool
Only the web role answers HTTP.
no setter
ticksSchedules → bool
Whether this process ticks the backend schedules.
no setter

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

Static Methods

resolve({required Map<String, String> environment, List<String> arguments = const <String>[], required int generatedPort}) → DVProcessConfiguration
Resolves a process from environment and arguments.