ServiceState enum
Where a service is in its life, as far as its own output has said so.
Deliberately derived from what the child prints rather than from a
side-channel: revali up starts the same revali dev a developer would
start by hand, and a status protocol between them would be one more thing
to keep in step with the thing it describes.
- Inheritance
- Available extensions
Values
- starting → const ServiceState
-
Spawned, and has not yet said anything that places it further along.
- generating → const ServiceState
-
A build or retrieve step is in flight.
- serving → const ServiceState
-
Announced an address it is listening on.
- failed → const ServiceState
-
The server inside
revali devis down, butrevali devitself is not.Distinct from crashed, and not a synonym for it:
revali devstays up on purpose when its server process dies so the developer can fix the cause and pressr. A port collision lands here — nothing has exited, so ServiceSession.markExited never fires, and without this the row keeps whatever it said before, which is generating.Recoverable, and the reason the distinction earns its keep: a reload from here reaches serving again.
- crashed → const ServiceState
-
Exited non-zero. Usually a compile error, and usually about to be fixed.
The
revali devprocess itself is gone. Unlike failed, nothing on this side will bring it back. - stopped → const ServiceState
-
Exited zero.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- isDead → bool
-
Available on ServiceState, provided by the ServiceStateLife extension
no setter - name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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
Constants
-
values
→ const List<
ServiceState> - A constant List of the values in this enum, in order of their declaration.