Search in sources :

Example 1 with TaskManagerFileMessageParameters

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

the class AbstractTaskManagerFileHandlerTest method setup.

@BeforeClass
public static void setup() throws IOException, HandlerRequestException {
    final Configuration configuration = new Configuration();
    blobServer = new BlobServer(configuration, temporaryFolder.newFolder(), new VoidBlobStore());
    handlerRequest = HandlerRequest.resolveParametersAndCreate(EmptyRequestBody.getInstance(), new TaskManagerFileMessageParameters(), Collections.singletonMap(TaskManagerIdPathParameter.KEY, EXPECTED_TASK_MANAGER_ID.getResourceIdString()), Collections.emptyMap(), Collections.emptyList());
}
Also used : VoidBlobStore(org.apache.flink.runtime.blob.VoidBlobStore) Configuration(org.apache.flink.configuration.Configuration) BlobServer(org.apache.flink.runtime.blob.BlobServer) TaskManagerFileMessageParameters(org.apache.flink.runtime.rest.messages.taskmanager.TaskManagerFileMessageParameters) BeforeClass(org.junit.BeforeClass)

Example 2 with TaskManagerFileMessageParameters

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

the class TaskManagerDetailsHandlerTest method createRequest.

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

Aggregations

TaskManagerFileMessageParameters (org.apache.flink.runtime.rest.messages.taskmanager.TaskManagerFileMessageParameters)2 HashMap (java.util.HashMap)1 Configuration (org.apache.flink.configuration.Configuration)1 BlobServer (org.apache.flink.runtime.blob.BlobServer)1 VoidBlobStore (org.apache.flink.runtime.blob.VoidBlobStore)1 BeforeClass (org.junit.BeforeClass)1