com.wavefront.agent.channel.HealthCheckManager Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of proxy-test Show documentation
Show all versions of proxy-test Show documentation
Service for batching and relaying metric traffic to Wavefront
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);
}