Search in sources :

Example 1 with SavepointStatusHeaders

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);
    });
}
Also used : SavepointStatusMessageParameters(org.apache.flink.runtime.rest.messages.job.savepoints.SavepointStatusMessageParameters) SavepointStatusHeaders(org.apache.flink.runtime.rest.messages.job.savepoints.SavepointStatusHeaders)

Aggregations

SavepointStatusHeaders (org.apache.flink.runtime.rest.messages.job.savepoints.SavepointStatusHeaders)1 SavepointStatusMessageParameters (org.apache.flink.runtime.rest.messages.job.savepoints.SavepointStatusMessageParameters)1