Java Code Examples for org.apache.flink.runtime.rest.messages.EmptyMessageParameters#getInstance()
The following examples show how to use
org.apache.flink.runtime.rest.messages.EmptyMessageParameters#getInstance() .
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: AbstractMetricsHeadersTest.java From flink with Apache License 2.0 | 6 votes |
@Before public void setUp() throws Exception { metricsHandlerHeaders = new AbstractMetricsHeaders<EmptyMessageParameters>() { @Override public EmptyMessageParameters getUnresolvedMessageParameters() { return EmptyMessageParameters.getInstance(); } @Override public String getTargetRestEndpointURL() { return "/"; } @Override public String getDescription() { return ""; } }; }
Example 2
Source File: AbstractMetricsHeadersTest.java From Flink-CEPplus with Apache License 2.0 | 6 votes |
@Before public void setUp() throws Exception { metricsHandlerHeaders = new AbstractMetricsHeaders<EmptyMessageParameters>() { @Override public EmptyMessageParameters getUnresolvedMessageParameters() { return EmptyMessageParameters.getInstance(); } @Override public String getTargetRestEndpointURL() { return "/"; } @Override public String getDescription() { return ""; } }; }
Example 3
Source File: JarSubmissionITCase.java From Flink-CEPplus with Apache License 2.0 | 5 votes |
private static String uploadJar(JarUploadHandler handler, Path jar, RestfulGateway restfulGateway) throws Exception { HandlerRequest<EmptyRequestBody, EmptyMessageParameters> uploadRequest = new HandlerRequest<>( EmptyRequestBody.getInstance(), EmptyMessageParameters.getInstance(), Collections.emptyMap(), Collections.emptyMap(), Collections.singletonList(jar.toFile())); final JarUploadResponseBody uploadResponse = handler.handleRequest(uploadRequest, restfulGateway) .get(); return uploadResponse.getFilename(); }
Example 4
Source File: JarSubmissionITCase.java From Flink-CEPplus with Apache License 2.0 | 5 votes |
private static JarListInfo listJars(JarListHandler handler, RestfulGateway restfulGateway) throws Exception { HandlerRequest<EmptyRequestBody, EmptyMessageParameters> listRequest = new HandlerRequest<>( EmptyRequestBody.getInstance(), EmptyMessageParameters.getInstance()); return handler.handleRequest(listRequest, restfulGateway) .get(); }
Example 5
Source File: JarUploadHandlerTest.java From Flink-CEPplus with Apache License 2.0 | 5 votes |
private static HandlerRequest<EmptyRequestBody, EmptyMessageParameters> createRequest( final Path uploadedFile) throws HandlerRequestException, IOException { return new HandlerRequest<>( EmptyRequestBody.getInstance(), EmptyMessageParameters.getInstance(), Collections.emptyMap(), Collections.emptyMap(), Collections.singleton(uploadedFile.toFile())); }
Example 6
Source File: JarSubmissionITCase.java From flink with Apache License 2.0 | 5 votes |
private static String uploadJar(JarUploadHandler handler, Path jar, RestfulGateway restfulGateway) throws Exception { HandlerRequest<EmptyRequestBody, EmptyMessageParameters> uploadRequest = new HandlerRequest<>( EmptyRequestBody.getInstance(), EmptyMessageParameters.getInstance(), Collections.emptyMap(), Collections.emptyMap(), Collections.singletonList(jar.toFile())); final JarUploadResponseBody uploadResponse = handler.handleRequest(uploadRequest, restfulGateway) .get(); return uploadResponse.getFilename(); }
Example 7
Source File: MultipartUploadResource.java From flink with Apache License 2.0 | 4 votes |
@Override public EmptyMessageParameters getUnresolvedMessageParameters() { return EmptyMessageParameters.getInstance(); }
Example 8
Source File: RestClusterClientTest.java From Flink-CEPplus with Apache License 2.0 | 4 votes |
@Override public EmptyMessageParameters getUnresolvedMessageParameters() { return EmptyMessageParameters.getInstance(); }
Example 9
Source File: RestClientTest.java From Flink-CEPplus with Apache License 2.0 | 4 votes |
@Override public EmptyMessageParameters getUnresolvedMessageParameters() { return EmptyMessageParameters.getInstance(); }
Example 10
Source File: RestServerEndpointITCase.java From Flink-CEPplus with Apache License 2.0 | 4 votes |
@Override public EmptyMessageParameters getUnresolvedMessageParameters() { return EmptyMessageParameters.getInstance(); }
Example 11
Source File: RestServerEndpointITCase.java From Flink-CEPplus with Apache License 2.0 | 4 votes |
@Override default EmptyMessageParameters getUnresolvedMessageParameters() { return EmptyMessageParameters.getInstance(); }
Example 12
Source File: MultipartUploadResource.java From Flink-CEPplus with Apache License 2.0 | 4 votes |
@Override public EmptyMessageParameters getUnresolvedMessageParameters() { return EmptyMessageParameters.getInstance(); }
Example 13
Source File: ShutdownHeaders.java From flink with Apache License 2.0 | 4 votes |
@Override public EmptyMessageParameters getUnresolvedMessageParameters() { return EmptyMessageParameters.getInstance(); }
Example 14
Source File: TaskManagersHeaders.java From flink with Apache License 2.0 | 4 votes |
@Override public EmptyMessageParameters getUnresolvedMessageParameters() { return EmptyMessageParameters.getInstance(); }
Example 15
Source File: AbstractAsynchronousOperationHandlersTest.java From Flink-CEPplus with Apache License 2.0 | 4 votes |
private static HandlerRequest<EmptyRequestBody, EmptyMessageParameters> triggerOperationRequest() throws HandlerRequestException { return new HandlerRequest<>(EmptyRequestBody.getInstance(), EmptyMessageParameters.getInstance()); }
Example 16
Source File: JarUploadHeaders.java From Flink-CEPplus with Apache License 2.0 | 4 votes |
@Override public EmptyMessageParameters getUnresolvedMessageParameters() { return EmptyMessageParameters.getInstance(); }
Example 17
Source File: JobSubmitHeaders.java From flink with Apache License 2.0 | 4 votes |
@Override public EmptyMessageParameters getUnresolvedMessageParameters() { return EmptyMessageParameters.getInstance(); }
Example 18
Source File: RestServerEndpointITCase.java From flink with Apache License 2.0 | 4 votes |
@Override public EmptyMessageParameters getUnresolvedMessageParameters() { return EmptyMessageParameters.getInstance(); }
Example 19
Source File: RestServerEndpointITCase.java From flink with Apache License 2.0 | 4 votes |
@Override public EmptyMessageParameters getUnresolvedMessageParameters() { return EmptyMessageParameters.getInstance(); }
Example 20
Source File: JarListHeaders.java From Flink-CEPplus with Apache License 2.0 | 4 votes |
@Override public EmptyMessageParameters getUnresolvedMessageParameters() { return EmptyMessageParameters.getInstance(); }