type

HxRuntime

const mixin HxRuntime : HxStdServices

HxRuntime is the top level coordinator of a Haxall server.

methods

db

Folio database for this runtime

dir

Runtime project directory.

dis

Display name of the runtime.

isRunning

Running flag.

isSteadyState

Has the runtime has reached steady state.

lib

Lookup a library by name.

libs

Library managment APIs

meta

Runtime level meta data stored in the projMeta database record

name

Programatic name of the runtime.

ns

Namespace of definitions

platform

Platform hosting the runtime

services

Service registry

sync

Block until currently queued background processing completes

version

Runtime version

Slot Details

db

abstract Folio db()

Folio database for this runtime

dir

abstract File dir()

Runtime project directory. It the root directory of all project oriented operational files. The folio database is stored under this directory in a sub-directory named db/.

dis

abstract Str dis()

Display name of the runtime.

isRunning

abstract Bool isRunning()

Running flag. On startup this flag transitions to true before calling ready and start on all the libraries. On shutdown this flag transitions to false before calling unready and stop on all the libraries.

isSteadyState

abstract Bool isSteadyState()

Has the runtime has reached steady state. Steady state is reached after a configurable wait period elapses after the runtime is fully loaded. This gives internal services time to spin up before interacting with external systems. See Runtime.

lib

abstract HxLib? lib(Str name, Bool checked := true)

Lookup a library by name. Convenience for libs.get.

libs

abstract HxRuntimeLibs libs()

Library managment APIs

meta

abstract Dict meta()

Runtime level meta data stored in the projMeta database record

name

abstract Str name()

Programatic name of the runtime. This string is always a valid tag name.

ns

abstract Namespace ns()

Namespace of definitions

platform

abstract HxPlatform platform()

Platform hosting the runtime

services

abstract HxServiceRegistry services()

Service registry

sync

abstract This sync(Duration? timeout := 30sec)

Block until currently queued background processing completes

version

abstract Version version()

Runtime version