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
raw 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.
raw docstring

find-taskclj

(find-task catalog task-name)

get-countsclj

(get-counts replica job-infos)

job->min-peers-per-taskclj

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

job-allocation-countsclj

(job-allocation-counts replica job-info)

load-configclj

(load-config)
(load-config filename)

playback-logclj

(playback-log log replica ch timeout-ms)

shutdown-envclj

(shutdown-env env)

shutdown-peerclj

(shutdown-peer v-peer)

shutdown-peer-groupclj

(shutdown-peer-group peer-group)

try-start-envclj

(try-start-env env-config)

try-start-groupclj

(try-start-group peer-config)

try-start-peersclj

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

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.
raw docstring

with-componentscljmacro

(with-components bindings & body)

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.
raw docstring

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

× close