Class ServiceHttp

java.lang.Object
io.stargate.sdk.Service
io.stargate.sdk.http.ServiceHttp

public class ServiceHttp extends Service
The target service is an HTTP Endpoint. This services can be used for graphQL, rest, docs but not gRPC for instance.
  • Constructor Details

    • ServiceHttp

      public ServiceHttp(String id, String endpoint, String healthCheckEndpoint)
      Constructor.
      Parameters:
      id - identifier
      endpoint - endpoint
      healthCheckEndpoint - health check
  • Method Details

    • isAlive

      public boolean isAlive()
      Check that a service is alive.
      Specified by:
      isAlive in class Service
      Returns:
      validate that the current service is alive
    • toString

      public String toString()
      Overrides:
      toString in class Object