use of org.codice.ddf.migration.MigrationMetadata in project ddf by codice.
the class ConfigurationMigrationManager method exportMigratable.
private Collection<MigrationWarning> exportMigratable(Migratable migratable, Path exportDirectory) throws IOException {
Stopwatch stopwatch = null;
if (LOGGER.isDebugEnabled()) {
stopwatch = Stopwatch.createStarted();
}
MigrationMetadata migrationMetadata = migratable.export(exportDirectory);
if (LOGGER.isDebugEnabled() && stopwatch != null) {
LOGGER.debug("Export time: {}", stopwatch.stop().toString());
}
return migrationMetadata.getMigrationWarnings();
}
Aggregations