use of com.enonic.xp.impl.server.rest.task.listener.UpgradeListenerImpl in project xp by enonic.
the class UpgradeRunnableTask method run.
@Override
public void run(final TaskId id, final ProgressReporter progressReporter) {
final UpgradeListener upgradeListener = new UpgradeListenerImpl(progressReporter);
final SystemDumpUpgradeParams upgradeParams = SystemDumpUpgradeParams.create().dumpName(params.getName()).upgradeListener(upgradeListener).build();
final DumpUpgradeResult result = this.dumpService.upgrade(upgradeParams);
upgradeListener.finished();
progressReporter.info(SystemDumpUpgradeResultJson.from(result).toString());
}
Aggregations