ServerMode uses ConstantsTrait
Server modes reported by the ArangoDB availability endpoint (`GET /_admin/server/availability`).
The endpoint returns one of these values in the mode field of its
JSON response when the server is up. A 503 status code is used instead
to signal that the server is shutting down or in maintenance mode —
that branch is surfaced by ArangoClient::availability()
as a boolean false rather than a ServerMode value.
Tags
Table of Contents
Constants
- DEFAULT : string = 'default'
- Server is up and accepts both reads and writes.
- READONLY : string = 'readonly'
- Server is up but rejects writes (failover member, manual switch, …).
Constants
DEFAULT
Server is up and accepts both reads and writes.
public
string
DEFAULT
= 'default'
READONLY
Server is up but rejects writes (failover member, manual switch, …).
public
string
READONLY
= 'readonly'