Package biopb.tensor
Class ControlClient
java.lang.Object
biopb.tensor.ControlClient
The control's algorithm-plane calls, for the SDK's own algorithm client.
Where the control listens is the discovery contract's (
docs/discovery-contract.md); this asks it to bring a registry entry up. It
is the one control call biopb.image.OpsClient.connect needs when it is
given a name instead of a URL, public only because that client lives in
another package. The supported ways to reach the control are Connection
and the biopb CLI.
-
Method Summary
Modifier and TypeMethodDescriptionensureAlgorithm(String name, Duration timeout) Bring a script entry up, installing it first if its file changed, and answer its row (name, kind, url, state, error, token, ...); a url entry is probed.static ControlClientA client for the control an explicit environment and home point at; for tests and embedding.static ControlClientsystem()A client for the control this process's environment and home point at.
-
Method Details
-
system
A client for the control this process's environment and home point at. -
of
A client for the control an explicit environment and home point at; for tests and embedding. -
ensureAlgorithm
Bring a script entry up, installing it first if its file changed, and answer its row (name, kind, url, state, error, token, ...); a url entry is probed. Waits undertimeout: a row stillinstallingorstartingmeans ask again.- Throws:
NoSuchElementException- the name is unknownIllegalArgumentException- the control refused the requestIllegalStateException- no control answered, or it failed
-