Search in sources :

Example 1 with TaskManagerMessageParameters

use of org.apache.flink.runtime.rest.messages.taskmanager.TaskManagerMessageParameters in project flink by apache.

the class TaskManagerLogListHandlerTest method createRequest.

private static HandlerRequest<EmptyRequestBody> createRequest(ResourceID taskManagerId) throws HandlerRequestException {
    Map<String, String> pathParameters = new HashMap<>();
    pathParameters.put(TaskManagerIdPathParameter.KEY, taskManagerId.toString());
    Map<String, List<String>> queryParameters = Collections.emptyMap();
    return HandlerRequest.resolveParametersAndCreate(EmptyRequestBody.getInstance(), new TaskManagerMessageParameters(), pathParameters, queryParameters, Collections.emptyList());
}
Also used : HashMap(java.util.HashMap) List(java.util.List) Matchers.containsString(org.hamcrest.Matchers.containsString) TaskManagerMessageParameters(org.apache.flink.runtime.rest.messages.taskmanager.TaskManagerMessageParameters)

Aggregations

HashMap (java.util.HashMap)1 List (java.util.List)1 TaskManagerMessageParameters (org.apache.flink.runtime.rest.messages.taskmanager.TaskManagerMessageParameters)1 Matchers.containsString (org.hamcrest.Matchers.containsString)1