public abstract class Migrator extends AbstractMonitoredThread
Thread.State, Thread.UncaughtExceptionHandlerMAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
Migrator(ThreadGroup grp) |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanupMigrator()
Notifies the implementing class that processing has finished
|
abstract String |
createRangeQuery(Date startDate,
Date endDate) |
ActiveExecution |
getActiveExecution() |
AbstractController |
getController() |
Map<Identity,com.fasterxml.jackson.databind.JsonNode> |
getDestDocs() |
abstract List<com.fasterxml.jackson.databind.JsonNode> |
getDestinationDocuments(Collection<Identity> docs)
Should return a list of destination documents
|
List<String> |
getIdentityFields()
Override this to change how identity fields are retrieved
|
Set<Identity> |
getInsertDocs() |
com.redhat.lightblue.client.LightblueClient |
getLightblueClient(String configPath) |
MigrationConfiguration |
getMigrationConfiguration() |
MigrationJob |
getMigrationJob() |
Set<Identity> |
getRewriteDocs() |
Map<Identity,com.fasterxml.jackson.databind.JsonNode> |
getSourceDocs() |
abstract List<com.fasterxml.jackson.databind.JsonNode> |
getSourceDocuments()
Should return a list of source documents
|
void |
initMigrator()
Notifies the implementing class that processing has started
|
void |
migrate(MigrationJobExecution execution) |
void |
run() |
abstract List<com.redhat.lightblue.client.response.LightblueResponse> |
save(List<com.fasterxml.jackson.databind.JsonNode> docs) |
void |
setActiveExecution(ActiveExecution e) |
void |
setController(AbstractController c) |
void |
setMigrationJob(MigrationJob m) |
ping, ping, registerThreadMonitoractiveCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldpublic Migrator(ThreadGroup grp)
public void setController(AbstractController c)
public AbstractController getController()
public MigrationConfiguration getMigrationConfiguration()
public void setMigrationJob(MigrationJob m)
public void setActiveExecution(ActiveExecution e)
public MigrationJob getMigrationJob()
public ActiveExecution getActiveExecution()
public com.redhat.lightblue.client.LightblueClient getLightblueClient(String configPath) throws IOException
IOExceptionpublic List<String> getIdentityFields()
public void migrate(MigrationJobExecution execution)
public void initMigrator()
public void cleanupMigrator()
public abstract List<com.fasterxml.jackson.databind.JsonNode> getSourceDocuments()
public abstract List<com.fasterxml.jackson.databind.JsonNode> getDestinationDocuments(Collection<Identity> docs)
public abstract List<com.redhat.lightblue.client.response.LightblueResponse> save(List<com.fasterxml.jackson.databind.JsonNode> docs) throws com.redhat.lightblue.client.LightblueException
com.redhat.lightblue.client.LightblueExceptionCopyright © 2016. All rights reserved.