Search in sources :

Example 1 with ListModule

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));
    }
}
Also used : ListModule(com.instaclustr.esop.impl.list.ListModule) HashSpec(com.instaclustr.esop.impl.hash.HashSpec) Module(com.google.inject.Module) ListModule(com.instaclustr.esop.impl.list.ListModule)

Aggregations

Module (com.google.inject.Module)1 HashSpec (com.instaclustr.esop.impl.hash.HashSpec)1 ListModule (com.instaclustr.esop.impl.list.ListModule)1