Liking cljdoc? Tell your friends :D

jepsen.client

Applies operations to a database.

Applies operations to a database.
raw docstring

Clientcljprotocol

close!clj

(close! client test)

Close the client connection when work is completed or an invocation crashes the client. Close should not affect the logical state of the test.

Close the client connection when work is completed or an invocation
 crashes the client. Close should not affect the logical state of the
test.

invoke!clj

(invoke! client test operation)

Apply an operation to the client, returning an operation to be appended to the history. For multi-stage operations, the client may reach into the test and conj onto the history atom directly.

Apply an operation to the client, returning an operation to be
appended to the history. For multi-stage operations, the client may
reach into the test and conj onto the history atom directly.

open!clj

(open! client test node)

Set up the client to work with a particular node. Returns a client which is ready to accept operations via invoke! Open should not affect the logical state of the test; it should not, for instance, modify tables or insert records.

Set up the client to work with a particular node. Returns a client
which is ready to accept operations via invoke! Open *should not*
affect the logical state of the test; it should not, for instance,
modify tables or insert records.

setup!clj

(setup! client test)
(setup! client test node)

Called once to set up database state for testing. 3 arity form is deprecated and will be removed in a future jepsen version.

Called once to set up database state for testing. 3 arity form is
deprecated and will be removed in a future jepsen version.

teardown!clj

(teardown! client test)

Tear down the client when work is complete.

Tear down the client when work is complete.

closable?clj

(closable? client)

Returns true if the given client implements method close!.

Returns true if the given client implements method `close!`.
raw docstring

close-compat!clj

(close-compat! client test)

Inspects the client for close! method and calls teardown! then close!. If close! is not implemented, we assume a legacy implementation of teardown!.

Inspects the client for `close!` method and calls `teardown!` then `close!`.
If `close!` is not implemented, we assume a legacy implementation of `teardown!`.
raw docstring

noopclj

Does nothing.

Does nothing.
raw docstring

open-compat!clj

(open-compat! client test node)

Attempts to call open! on the given client. If open! does not exist, we assume a legacy implementation of setup!.

Attempts to call `open!` on the given client. If `open!` does not
exist, we assume a legacy implementation of `setup!`.
raw docstring

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

× close