All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.wavefront.agent.channel.HealthCheckManager Maven / Gradle / Ivy

The newest version!
package com.wavefront.agent.channel;

import javax.annotation.Nonnull;

import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.http.FullHttpRequest;
import io.netty.handler.codec.http.HttpResponse;

import java.net.URISyntaxException;

/**
 * Centrally manages healthcheck statuses (for controlling load balancers).
 *
 * @author [email protected]
 */
public interface HealthCheckManager {
  HttpResponse getHealthCheckResponse(ChannelHandlerContext ctx,
                                      @Nonnull FullHttpRequest request) throws URISyntaxException;

  boolean isHealthy(int port);

  void setHealthy(int port);

  void setUnhealthy(int port);

  void setAllHealthy();

  void setAllUnhealthy();

  void enableHealthcheck(int port);
}






© 2015 - 2025 Weber Informatics LLC | Privacy Policy