public class HandlerRedirectUtils extends Object
This is necessary at the moment, because many execution graph structures are not serializable. The proper solution here is to have these serializable and transparently work with the leading job manager instead of redirecting.
Constructor and Description |
---|
HandlerRedirectUtils() |
Modifier and Type | Method and Description |
---|---|
static org.apache.flink.shaded.netty4.io.netty.handler.codec.http.HttpResponse |
getErrorResponse(Throwable throwable) |
static org.apache.flink.shaded.netty4.io.netty.handler.codec.http.HttpResponse |
getErrorResponse(Throwable throwable,
org.apache.flink.shaded.netty4.io.netty.handler.codec.http.HttpResponseStatus status) |
static CompletableFuture<Optional<String>> |
getRedirectAddress(String localRestAddress,
RestfulGateway restfulGateway,
Time timeout) |
static org.apache.flink.shaded.netty4.io.netty.handler.codec.http.HttpResponse |
getRedirectResponse(String redirectAddress,
String path) |
static org.apache.flink.shaded.netty4.io.netty.handler.codec.http.HttpResponse |
getRedirectResponse(String redirectAddress,
String path,
org.apache.flink.shaded.netty4.io.netty.handler.codec.http.HttpResponseStatus code) |
static org.apache.flink.shaded.netty4.io.netty.handler.codec.http.HttpResponse |
getResponse(org.apache.flink.shaded.netty4.io.netty.handler.codec.http.HttpResponseStatus status,
String message) |
static org.apache.flink.shaded.netty4.io.netty.handler.codec.http.HttpResponse |
getUnavailableResponse() |
public static final Charset ENCODING
public static CompletableFuture<Optional<String>> getRedirectAddress(String localRestAddress, RestfulGateway restfulGateway, Time timeout)
public static org.apache.flink.shaded.netty4.io.netty.handler.codec.http.HttpResponse getRedirectResponse(String redirectAddress, String path)
public static org.apache.flink.shaded.netty4.io.netty.handler.codec.http.HttpResponse getRedirectResponse(String redirectAddress, String path, org.apache.flink.shaded.netty4.io.netty.handler.codec.http.HttpResponseStatus code)
public static org.apache.flink.shaded.netty4.io.netty.handler.codec.http.HttpResponse getUnavailableResponse()
public static org.apache.flink.shaded.netty4.io.netty.handler.codec.http.HttpResponse getResponse(org.apache.flink.shaded.netty4.io.netty.handler.codec.http.HttpResponseStatus status, @Nullable String message)
public static org.apache.flink.shaded.netty4.io.netty.handler.codec.http.HttpResponse getErrorResponse(Throwable throwable)
public static org.apache.flink.shaded.netty4.io.netty.handler.codec.http.HttpResponse getErrorResponse(Throwable throwable, org.apache.flink.shaded.netty4.io.netty.handler.codec.http.HttpResponseStatus status)
Copyright © 2014–2019 The Apache Software Foundation. All rights reserved.