public class RestClient extends Object implements org.apache.flink.util.AutoCloseableAsync
RestServerEndpoint.| Modifier and Type | Field and Description |
|---|---|
static String |
VERSION_PLACEHOLDER |
| Constructor and Description |
|---|
RestClient(org.apache.flink.configuration.Configuration configuration,
Executor executor) |
RestClient(org.apache.flink.configuration.Configuration configuration,
Executor executor,
String host,
int port) |
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Void> |
closeAsync() |
static RestClient |
forUrl(org.apache.flink.configuration.Configuration configuration,
Executor executor,
URL rootUrl)
Creates a new RestClient for the provided root URL.
|
<M extends MessageHeaders<EmptyRequestBody,P,EmptyMessageParameters>,P extends ResponseBody> |
sendRequest(String targetAddress,
int targetPort,
M messageHeaders) |
<M extends MessageHeaders<R,P,U>,U extends MessageParameters,R extends RequestBody,P extends ResponseBody> |
sendRequest(String targetAddress,
int targetPort,
M messageHeaders,
U messageParameters,
R request) |
<M extends MessageHeaders<R,P,U>,U extends MessageParameters,R extends RequestBody,P extends ResponseBody> |
sendRequest(String targetAddress,
int targetPort,
M messageHeaders,
U messageParameters,
R request,
Collection<FileUpload> fileUploads) |
<M extends MessageHeaders<R,P,U>,U extends MessageParameters,R extends RequestBody,P extends ResponseBody> |
sendRequest(String targetAddress,
int targetPort,
M messageHeaders,
U messageParameters,
R request,
Collection<FileUpload> fileUploads,
RestAPIVersion<? extends RestAPIVersion<?>> apiVersion) |
void |
shutdown(org.apache.flink.api.common.time.Time timeout) |
public static final String VERSION_PLACEHOLDER
public RestClient(org.apache.flink.configuration.Configuration configuration,
Executor executor)
throws org.apache.flink.util.ConfigurationException
org.apache.flink.util.ConfigurationExceptionpublic static RestClient forUrl(org.apache.flink.configuration.Configuration configuration, Executor executor, URL rootUrl) throws org.apache.flink.util.ConfigurationException
org.apache.flink.util.ConfigurationExceptionpublic CompletableFuture<Void> closeAsync()
closeAsync in interface org.apache.flink.util.AutoCloseableAsyncpublic void shutdown(org.apache.flink.api.common.time.Time timeout)
public <M extends MessageHeaders<EmptyRequestBody,P,EmptyMessageParameters>,P extends ResponseBody> CompletableFuture<P> sendRequest(String targetAddress, int targetPort, M messageHeaders) throws IOException
IOExceptionpublic <M extends MessageHeaders<R,P,U>,U extends MessageParameters,R extends RequestBody,P extends ResponseBody> CompletableFuture<P> sendRequest(String targetAddress, int targetPort, M messageHeaders, U messageParameters, R request) throws IOException
IOExceptionpublic <M extends MessageHeaders<R,P,U>,U extends MessageParameters,R extends RequestBody,P extends ResponseBody> CompletableFuture<P> sendRequest(String targetAddress, int targetPort, M messageHeaders, U messageParameters, R request, Collection<FileUpload> fileUploads) throws IOException
IOExceptionpublic <M extends MessageHeaders<R,P,U>,U extends MessageParameters,R extends RequestBody,P extends ResponseBody> CompletableFuture<P> sendRequest(String targetAddress, int targetPort, M messageHeaders, U messageParameters, R request, Collection<FileUpload> fileUploads, RestAPIVersion<? extends RestAPIVersion<?>> apiVersion) throws IOException
IOExceptionCopyright © 2014–2025 The Apache Software Foundation. All rights reserved.