Search in sources :

Example 1 with BackupModule

use of com.instaclustr.esop.impl.backup.BackupModules.BackupModule in project esop by instaclustr.

the class BackupApplication method run.

@Override
public void run() {
    Esop.logCommandVersionInformation(spec);
    final List<Module> appSpecificModules = singletonList(new BackupModule());
    Esop.init(this, jmxSpec, hashSpec, request, logger, appSpecificModules);
    final Operation<?> operation = operationsService.submitOperationRequest(request);
    await().forever().until(() -> operation.state.isTerminalState());
    if (operation.state == FAILED) {
        throw new IllegalStateException(format("Backup operation %s was not successful.", operation.id));
    }
}
Also used : BackupModule(com.instaclustr.esop.impl.backup.BackupModules.BackupModule) Module(com.google.inject.Module) BackupModule(com.instaclustr.esop.impl.backup.BackupModules.BackupModule)

Aggregations

Module (com.google.inject.Module)1 BackupModule (com.instaclustr.esop.impl.backup.BackupModules.BackupModule)1