public class DefaultMigrator extends Migrator
Thread.State, Thread.UncaughtExceptionHandler| Modifier and Type | Field and Description |
|---|---|
protected static int |
BATCH_SIZE |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
DefaultMigrator(ThreadGroup grp) |
| Modifier and Type | Method and Description |
|---|---|
String |
createRangeQuery(Date startDate,
Date endDate) |
List<com.fasterxml.jackson.databind.JsonNode> |
getDestinationDocuments(Collection<Identity> ids)
Should return a list of destination documents
|
List<com.fasterxml.jackson.databind.JsonNode> |
getSourceDocuments()
Should return a list of source documents
|
List<com.redhat.lightblue.client.response.LightblueResponse> |
save(List<com.fasterxml.jackson.databind.JsonNode> docs) |
cleanupMigrator, getActiveExecution, getController, getDestDocs, getIdentityFields, getInsertDocs, getLightblueClient, getMigrationConfiguration, getMigrationJob, getRewriteDocs, getSourceDocs, initMigrator, migrate, run, setActiveExecution, setController, setMigrationJobping, 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, yieldprotected static final int BATCH_SIZE
public DefaultMigrator(ThreadGroup grp)
public List<com.fasterxml.jackson.databind.JsonNode> getSourceDocuments()
MigratorgetSourceDocuments in class Migratorpublic List<com.fasterxml.jackson.databind.JsonNode> getDestinationDocuments(Collection<Identity> ids)
MigratorgetDestinationDocuments in class Migratorpublic List<com.redhat.lightblue.client.response.LightblueResponse> save(List<com.fasterxml.jackson.databind.JsonNode> docs) throws com.redhat.lightblue.client.LightblueException
public String createRangeQuery(Date startDate, Date endDate)
createRangeQuery in class MigratorCopyright © 2016. All rights reserved.