Package biopb.tensor

Class ControlClient

java.lang.Object
biopb.tensor.ControlClient

public final class ControlClient extends Object
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 Details

    • system

      public static ControlClient system()
      A client for the control this process's environment and home point at.
    • of

      public static ControlClient of(Map<String,String> environment, Path home)
      A client for the control an explicit environment and home point at; for tests and embedding.
    • ensureAlgorithm

      public Map<String,Object> ensureAlgorithm(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. Waits under timeout: a row still installing or starting means ask again.
      Throws:
      NoSuchElementException - the name is unknown
      IllegalArgumentException - the control refused the request
      IllegalStateException - no control answered, or it failed