Liking cljdoc? Tell your friends :D
Clojure only.

strojure.fitter.system

Defines system of dependent components to start/stop them.

Defines system of dependent components to start/stop them.
raw docstring

initclj

(init)
(init {:keys [registry parallel] :as options})

Returns SystemState implementation. The state is instance of java.io.Closeable and can be used in with-open to stop system automatically.

registry The optional initial registry of components to use in subsequent start/stop calls.

parallel If true then subsequent start/stop calls execute components by default in parallel.

Returns [[SystemState]] implementation. The state is instance of
`java.io.Closeable` and can be used in `with-open` to stop system
automatically.

**`registry`** The optional initial registry of components to use in
subsequent start/stop calls.

**`parallel`** If `true` then subsequent start/stop calls execute components
by default in parallel.
sourceraw docstring

SystemStatecljprotocol

Stateful container of running system components.

Stateful container of running system components.

inspectclj

(inspect state)

Returns arbitrary data about system state internals.

Returns arbitrary data about system state internals.

start!clj

(start! state)
(start! state {:keys [registry filter-keys parallel]})

Starts not running system components and returns map of running instances.

registry The optional new registry of system components to start and to use in subsequent start/stop calls. If registry differs from the previous one then removed keys stop.

filter-keys The optional predicate function to filter starting keys. If not specified then all keys from the registry are starting.

parallel If true then components starts (possibly) in parallel.

Starts not running system components and returns map of running instances.

**`registry`** The optional new registry of system components to start and
to use in subsequent start/stop calls. If registry differs from the previous
one then removed keys stop.

**`filter-keys`** The optional predicate function to filter starting keys.
If not specified then all keys from the registry are starting.

**`parallel`** If `true` then components starts (possibly) in parallel.

stop!clj

(stop! state)
(stop! state {:keys [filter-keys suspend parallel]})

Stops started system components, all keys in the registry or selected by optional predicate function filter-keys. Suspends suspendable components if suspend is true. Returns result map of running instances.

filter-keys The optional predicate function to filter stopping keys. If not specified then all keys from the registry are stopping.

suspend If true then suspendable components not stopped but suspended. Suspended instances resume in next [[start!]] when they are required.

parallel If true then components stops in parallel.

Stops started system components, all keys in the registry or selected by optional
predicate function `filter-keys`. Suspends suspendable components if
`suspend` is true. Returns result map of running instances.

**`filter-keys`** The optional predicate function to filter stopping keys.
If not specified then all keys from the registry are stopping.

**`suspend`** If true then suspendable components not stopped but suspended.
Suspended instances resume in next [[start!]] when they are required.

**`parallel`** If `true` then components stops in parallel.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close