Class GrpcHealthRegistry

java.lang.Object
org.mockserver.grpc.GrpcHealthRegistry

public class GrpcHealthRegistry extends Object
  • Method Details

    • getInstance

      public static GrpcHealthRegistry getInstance()
    • setStatus

      public void setStatus(String serviceName, ServingStatus status)
      Set the status for a specific service name (empty string = default for all).
    • getStatus

      public ServingStatus getStatus(String serviceName)
      Get the status for a service name; falls back to default.
    • entries

      public Map<String,ServingStatus> entries()
      Returns all non-default service to status entries plus the default status.
    • removeStatus

      public void removeStatus(String serviceName)
      Remove the override for a specific service so it reverts to the default. An empty service name resets the default status itself back to SERVING.
    • reset

      public void reset()