Liking cljdoc? Tell your friends :D

onyx.test-helper


add-test-env-peers!clj

(add-test-env-peers! {:keys [peer-group peers] :as component} n-peers)

Add peers to an OnyxTestEnv component

Add peers to an OnyxTestEnv component
sourceraw docstring

feedback-exception!clj

(feedback-exception! peer-client-config job-id)
(feedback-exception! peer-client-config job-id log)

Feeds an exception that killed a job back to a client. Blocks until the job is complete.

Feeds an exception that killed a job back to a client. 
Blocks until the job is complete.
sourceraw docstring

find-taskclj

(find-task catalog task-name)
source

get-countsclj

(get-counts replica job-infos)
source

job->min-peers-per-taskclj

(job->min-peers-per-task {:keys [catalog workflow] :as job})
source

job-allocation-countsclj

(job-allocation-counts replica job-info)
source

load-configclj

(load-config)
(load-config filename)
source

playback-logclj

(playback-log log replica ch timeout-ms)
source

shutdown-envclj

(shutdown-env env)
source

shutdown-peerclj

(shutdown-peer v-peer)
source

shutdown-peer-groupclj

(shutdown-peer-group peer-group)
source

try-start-envclj

(try-start-env env-config)
source

try-start-groupclj

(try-start-group peer-config)
source

try-start-peersclj

(try-start-peers n-peers peer-group)
source

validate-enough-peers!clj

(validate-enough-peers! test-env job)

Checks that the test environment will start enough peers to start the job. Do not use this validation function in production as it does not check for the number of peers running over a cluster, and the number of peers that has joined is subject to change as nodes come online and go offline.

Checks that the test environment will start enough peers to start the job.  Do
not use this validation function in production as it does not check for the
number of peers running over a cluster, and the number of peers that has joined
is subject to change as nodes come online and go offline.
sourceraw docstring

with-componentscljmacro

(with-components bindings & body)
source

with-test-envcljmacro

(with-test-env [symbol-name [n-peers env-config peer-config]] & body)

Start a test env in a way that shuts down after body is completed. Useful for running tests that can be killed, and re-run without bouncing the repl.

Start a test env in a way that shuts down after body is completed.
Useful for running tests that can be killed, and re-run without bouncing the repl.
sourceraw docstring

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

× close