public class MigratorController extends AbstractController
Thread.State, Thread.UncaughtExceptionHandler| Modifier and Type | Field and Description |
|---|---|
static int |
JOB_FETCH_BATCH_SIZE |
controller, lbClient, locking, migrationConfiguration, migratorClass, migratorThreads, myLocksMAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
MigratorController(Controller controller,
MigrationConfiguration migrationConfiguration) |
| Modifier and Type | Method and Description |
|---|---|
MigrationJob[] |
retrieveJobs(int batchSize,
int startIndex)
Retrieves jobs that are available, and their scheduled time has passed.
|
void |
run() |
createMigrator, getController, getMigrationConfiguration, getMigratorThreads, lock, reloadMigrationConfiguration, unlockactiveCount, 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 static final int JOB_FETCH_BATCH_SIZE
public MigratorController(Controller controller, MigrationConfiguration migrationConfiguration)
public MigrationJob[] retrieveJobs(int batchSize, int startIndex) throws IOException, com.redhat.lightblue.client.LightblueException
IOExceptioncom.redhat.lightblue.client.LightblueExceptionCopyright © 2016. All rights reserved.