public void stopWorker(StopWorkerRequest req) throws Throwable {
        workerManager.stopWorker(req.workerId(), false);
    }
Create a new Agent.

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