public class ConsistencyCheckerController extends AbstractController implements MonitoredThread
Thread.State, Thread.UncaughtExceptionHandlercontroller, lbClient, locking, migrationConfiguration, migratorClass, migratorThreads, myLocksMAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
ConsistencyCheckerController(Controller controller,
MigrationConfiguration migrationConfiguration) |
| Modifier and Type | Method and Description |
|---|---|
protected List<MigrationJob> |
createJobs(Date startDate,
Date endDate,
ActiveExecution ae)
Create a migration job or jobs to process records created between the
given dates.
|
Date |
getEndDate(Date startDate,
long period)
Returns the end date given the start date end the period.
|
protected Date |
getNow()
This is simply here so that we can override it in the tests, and change the current time
|
static long |
parsePeriod(String periodStr)
Returns the period in msecs
|
void |
ping(String msg) |
void |
registerThreadMonitor(ThreadMonitor monitor) |
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 ConsistencyCheckerController(Controller controller, MigrationConfiguration migrationConfiguration)
public static long parsePeriod(String periodStr)
public void registerThreadMonitor(ThreadMonitor monitor)
registerThreadMonitor in interface MonitoredThreadpublic void ping(String msg)
ping in interface MonitoredThreadpublic Date getEndDate(Date startDate, long period)
protected Date getNow()
protected List<MigrationJob> createJobs(Date startDate, Date endDate, ActiveExecution ae) throws Exception
ExceptionCopyright © 2016. All rights reserved.