public void createTask(CreateTaskRequest request) throws Throwable {
        taskManager.createTask(request.id(), request.spec());
    }
Create a new Coordinator.

@param platform      The platform object to use.
@param scheduler     The scheduler to use for this Coordinator.
@param restServer    The REST server to use.
@param resource      The AgentRestResource to use.
trogdor/src/main/java/org/apache/kafka/trogdor/coordinator/Coordinator.java