Interface CoreTarget

All Superinterfaces:
AutoCloseable

public interface CoreTarget extends AutoCloseable
A target of the core conformance category that is not the service client: a fake for unit tests of the runner, or an adapter for a client whose core methods differ. CoreOps accepts a CoreTarget or the service client.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Releases the target; idempotent.
    Checks liveness; never throws for an unhealthy service.
    Performs an authenticated round trip.
    Returns the server version.
  • Method Details

    • health

      HealthStatus health()
      Checks liveness; never throws for an unhealthy service.
      Returns:
      the health status
    • ping

      Duration ping()
      Performs an authenticated round trip.
      Returns:
      the latency
    • serverVersion

      String serverVersion()
      Returns the server version.
      Returns:
      the version text
    • close

      void close()
      Releases the target; idempotent.
      Specified by:
      close in interface AutoCloseable