use of com.instaclustr.esop.impl.list.ListModule in project esop by instaclustr.
the class ListApplication method run.
@Override
public void run() {
Esop.logCommandVersionInformation(spec);
final List<Module> modules = Collections.singletonList(new ListModule());
Esop.init(this, jmxSpec, new HashSpec(), request, logger, modules);
final Operation<?> operation = operationsService.submitOperationRequest(request);
await().forever().until(() -> operation.state.isTerminalState());
if (operation.state == FAILED) {
throw new IllegalStateException(format("List operation %s was not successful.", operation.id));
}
}
Aggregations