org.apache.flink.runtime.rest.messages.job.savepoints.SavepointStatusHeaders Java Examples
The following examples show how to use
org.apache.flink.runtime.rest.messages.job.savepoints.SavepointStatusHeaders.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: RestClusterClient.java From Flink-CEPplus with Apache License 2.0 | 5 votes |
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); }); }
Example #2
Source File: RestClusterClient.java From flink with Apache License 2.0 | 5 votes |
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); }); }
Example #3
Source File: RestClusterClient.java From flink with Apache License 2.0 | 5 votes |
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); }); }
Example #4
Source File: SavepointHandlers.java From Flink-CEPplus with Apache License 2.0 | 4 votes |
public SavepointStatusHandler( final GatewayRetriever<? extends RestfulGateway> leaderRetriever, final Time timeout, final Map<String, String> responseHeaders) { super(leaderRetriever, timeout, responseHeaders, SavepointStatusHeaders.getInstance()); }
Example #5
Source File: RestClusterClientSavepointTriggerTest.java From Flink-CEPplus with Apache License 2.0 | 4 votes |
TestSavepointHandler(final FunctionWithException<TriggerId, SavepointInfo, RestHandlerException> savepointHandlerLogic) { super(SavepointStatusHeaders.getInstance()); this.savepointHandlerLogic = savepointHandlerLogic; }
Example #6
Source File: SavepointHandlers.java From flink with Apache License 2.0 | 4 votes |
public SavepointStatusHandler( final GatewayRetriever<? extends RestfulGateway> leaderRetriever, final Time timeout, final Map<String, String> responseHeaders) { super(leaderRetriever, timeout, responseHeaders, SavepointStatusHeaders.getInstance()); }
Example #7
Source File: RestClusterClientSavepointTriggerTest.java From flink with Apache License 2.0 | 4 votes |
TestSavepointHandler(final FunctionWithException<TriggerId, SavepointInfo, RestHandlerException> savepointHandlerLogic) { super(SavepointStatusHeaders.getInstance()); this.savepointHandlerLogic = savepointHandlerLogic; }
Example #8
Source File: SavepointHandlers.java From flink with Apache License 2.0 | 4 votes |
public SavepointStatusHandler( final GatewayRetriever<? extends RestfulGateway> leaderRetriever, final Time timeout, final Map<String, String> responseHeaders) { super(leaderRetriever, timeout, responseHeaders, SavepointStatusHeaders.getInstance()); }
Example #9
Source File: RestClusterClientSavepointTriggerTest.java From flink with Apache License 2.0 | 4 votes |
TestSavepointHandler(final FunctionWithException<TriggerId, SavepointInfo, RestHandlerException> savepointHandlerLogic) { super(SavepointStatusHeaders.getInstance()); this.savepointHandlerLogic = savepointHandlerLogic; }