use of org.apache.flink.runtime.rest.messages.job.savepoints.SavepointStatusHeaders in project flink by apache.
the class RestClusterClient method pollSavepointAsync.
private CompletableFuture<SavepointInfo> pollSavepointAsync(final JobID jobId, final TriggerId triggerID) {
return pollResourceAsync(() -> {
final SavepointStatusHeaders savepointStatusHeaders = SavepointStatusHeaders.getInstance();
final SavepointStatusMessageParameters savepointStatusMessageParameters = savepointStatusHeaders.getUnresolvedMessageParameters();
savepointStatusMessageParameters.jobIdPathParameter.resolve(jobId);
savepointStatusMessageParameters.triggerIdPathParameter.resolve(triggerID);
return sendRequest(savepointStatusHeaders, savepointStatusMessageParameters);
});
}
Aggregations