public class ResourceMigrator extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,String> |
dataProvidersMapping
Key is directory name, value is identifier that should be used in ECloud
|
static String |
LINUX_SEPARATOR |
static String |
TEXT_EXTENSION |
protected int |
threadsCount |
static String |
WINDOWS_SEPARATOR |
| Constructor and Description |
|---|
ResourceMigrator(ResourceProvider resProvider,
String dataProvidersMappingFile,
String threadsCount) |
| Modifier and Type | Method and Description |
|---|---|
void |
clean(String providerId) |
boolean |
migrate(boolean clean,
boolean simulate) |
void |
verify() |
void |
verifyLocalIds() |
public static final String LINUX_SEPARATOR
public static final String WINDOWS_SEPARATOR
public static final String TEXT_EXTENSION
protected Map<String,String> dataProvidersMapping
protected int threadsCount
public ResourceMigrator(ResourceProvider resProvider, String dataProvidersMappingFile, String threadsCount) throws IOException
IOExceptionpublic void verifyLocalIds()
public boolean migrate(boolean clean,
boolean simulate)
public void verify()
public void clean(String providerId)
Copyright © 2013–2017 Europeana Cloud Development Team. All rights reserved.