Java Code Examples for org.apache.flink.runtime.rest.handler.job.AsynchronousJobOperationKey#of()

The following examples show how to use org.apache.flink.runtime.rest.handler.job.AsynchronousJobOperationKey#of() . 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: RescalingHandlers.java    From Flink-CEPplus with Apache License 2.0 5 votes vote down vote up
@Override
protected AsynchronousJobOperationKey getOperationKey(HandlerRequest<EmptyRequestBody, RescalingStatusMessageParameters> request) {
	final JobID jobId = request.getPathParameter(JobIDPathParameter.class);
	final TriggerId triggerId = request.getPathParameter(TriggerIdPathParameter.class);

	return AsynchronousJobOperationKey.of(triggerId, jobId);
}
 
Example 2
Source File: SavepointHandlers.java    From Flink-CEPplus with Apache License 2.0 4 votes vote down vote up
@Override
protected AsynchronousJobOperationKey createOperationKey(HandlerRequest<SavepointTriggerRequestBody, SavepointTriggerMessageParameters> request) {
	final JobID jobId = request.getPathParameter(JobIDPathParameter.class);
	return AsynchronousJobOperationKey.of(new TriggerId(), jobId);
}
 
Example 3
Source File: SavepointHandlers.java    From Flink-CEPplus with Apache License 2.0 4 votes vote down vote up
@Override
protected AsynchronousJobOperationKey getOperationKey(HandlerRequest<EmptyRequestBody, SavepointStatusMessageParameters> request) {
	final TriggerId triggerId = request.getPathParameter(TriggerIdPathParameter.class);
	final JobID jobId = request.getPathParameter(JobIDPathParameter.class);
	return AsynchronousJobOperationKey.of(triggerId, jobId);
}
 
Example 4
Source File: RescalingHandlers.java    From Flink-CEPplus with Apache License 2.0 4 votes vote down vote up
@Override
protected AsynchronousJobOperationKey createOperationKey(HandlerRequest<EmptyRequestBody, RescalingTriggerMessageParameters> request) {
	final JobID jobId = request.getPathParameter(JobIDPathParameter.class);
	return AsynchronousJobOperationKey.of(new TriggerId(), jobId);
}
 
Example 5
Source File: SavepointHandlers.java    From flink with Apache License 2.0 4 votes vote down vote up
@Override
protected AsynchronousJobOperationKey createOperationKey(final HandlerRequest<T, SavepointTriggerMessageParameters> request) {
	final JobID jobId = request.getPathParameter(JobIDPathParameter.class);
	return AsynchronousJobOperationKey.of(new TriggerId(), jobId);
}
 
Example 6
Source File: SavepointHandlers.java    From flink with Apache License 2.0 4 votes vote down vote up
@Override
protected AsynchronousJobOperationKey getOperationKey(HandlerRequest<EmptyRequestBody, SavepointStatusMessageParameters> request) {
	final TriggerId triggerId = request.getPathParameter(TriggerIdPathParameter.class);
	final JobID jobId = request.getPathParameter(JobIDPathParameter.class);
	return AsynchronousJobOperationKey.of(triggerId, jobId);
}
 
Example 7
Source File: SavepointHandlers.java    From flink with Apache License 2.0 4 votes vote down vote up
@Override
protected AsynchronousJobOperationKey createOperationKey(final HandlerRequest<T, SavepointTriggerMessageParameters> request) {
	final JobID jobId = request.getPathParameter(JobIDPathParameter.class);
	return AsynchronousJobOperationKey.of(new TriggerId(), jobId);
}
 
Example 8
Source File: SavepointHandlers.java    From flink with Apache License 2.0 4 votes vote down vote up
@Override
protected AsynchronousJobOperationKey getOperationKey(HandlerRequest<EmptyRequestBody, SavepointStatusMessageParameters> request) {
	final TriggerId triggerId = request.getPathParameter(TriggerIdPathParameter.class);
	final JobID jobId = request.getPathParameter(JobIDPathParameter.class);
	return AsynchronousJobOperationKey.of(triggerId, jobId);
}