Can the store reach the services it settles through?
A telnet by hand answers this once, for one person, and leaves nothing
behind. probe answers it as a value: which endpoint, which outcome, how
long it took.
Can the store reach the services it settles through? A telnet by hand answers this once, for one person, and leaves nothing behind. `probe` answers it as a value: which endpoint, which outcome, how long it took.
(blocked? outcome)True when outcome is a path that never answered, as opposed to a service
that answered by refusing.
True when `outcome` is a path that never answered, as opposed to a service that answered by refusing.
(classify failure)The Reachability variant failure means. Nil failure is :reach/open.
The Reachability variant `failure` means. Nil failure is `:reach/open`.
(endpoint-of-url label url)The endpoint url names, or nil when it names none.
A URL with no explicit port takes its scheme's default. A JDBC URL is read through the driver scheme it wraps.
The endpoint `url` names, or nil when it names none. A URL with no explicit port takes its scheme's default. A JDBC URL is read through the driver scheme it wraps.
(fake-probe outcomes)IEndpointProbe over a map of [host port] -> Throwable-or-nil.
IEndpointProbe over a map of [host port] -> Throwable-or-nil.
(attempt this host port timeout-ms)Open a TCP connection and close it. Returns nil on success, or the Throwable that stopped it.
Open a TCP connection and close it. Returns nil on success, or the Throwable that stopped it.
(open? report)True when report says the endpoint accepted a connection.
True when `report` says the endpoint accepted a connection.
(probe prober {:endpoint/keys [host port label] :as _endpoint} timeout-ms)Reach endpoint through prober and report what happened.
endpoint is {:endpoint/host :endpoint/port :endpoint/label}. Never throws:
an unreachable service is a value, because the caller's job is to report it.
Reach `endpoint` through `prober` and report what happened.
`endpoint` is {:endpoint/host :endpoint/port :endpoint/label}. Never throws:
an unreachable service is a value, because the caller's job is to report it.(report prober endpoints timeout-ms)Probe every endpoint and say whether this deployment can reach what it settles through.
:reach/ok? is vacuously true for an empty list — a deployment that reaches
nothing over the network has nothing to fail. :reach/checked is how a
caller tells that apart from a healthy round.
Probe every endpoint and say whether this deployment can reach what it settles through. `:reach/ok?` is vacuously true for an empty list — a deployment that reaches nothing over the network has nothing to fail. `:reach/checked` is how a caller tells that apart from a healthy round.
(socket-probe)IEndpointProbe over a real TCP connect.
IEndpointProbe over a real TCP connect.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |