Description
EvaluatorRequestor and EvaluatorRequest.newBuilder() are almost always used together in a pattern that looks like this:
requestor.submit(EvaluatorRequest.newBuilder() .setNumber(1) .setMemory(64) .setNumberOfCores(1) .build());
It would be good to have a nicer, more fluid API here:
requestor.newRequest() .setNumber(1) .setMemory(64) .setNumberOfCores(1) .submit();
This could be done by creating a subclass of EvaluatorRequest.Builder which has a reference to the EvaluatorRequestor instance and implements .submit() as:
void submit(){ this.requestor.submit(this.build()); }
Attachments
Issue Links
- links to