class TaskManagerLogHandler extends RedirectHandler<JobManagerGateway> implements WebHandler {

	@Override
	public String[] getPaths() {
		switch (fileMode) {
			case LOG:
				return new String[]{TASKMANAGER_LOG_REST_PATH};
			case STDOUT:
			default:
				return new String[]{TASKMANAGER_OUT_REST_PATH};
		}
	}

	public  TaskManagerLogHandler(
		GatewayRetriever<JobManagerGateway> retriever,
		Executor executor,
		CompletableFuture<String> localJobManagerAddressPromise,
		Time timeout,
		FileMode fileMode,
		Configuration config);

}