public class Controller extends Thread
| Modifier and Type | Class and Description |
|---|---|
static class |
Controller.MigrationProcess |
Thread.State, Thread.UncaughtExceptionHandlerMAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
Controller(MainConfiguration cfg) |
| Modifier and Type | Method and Description |
|---|---|
void |
createControllers(MigrationConfiguration[] configurations)
Creates controller threads for migrators and consistency
checkers based on the configuration loaded from the db.
|
com.redhat.lightblue.client.LightblueClient |
getLightblueClient() |
MainConfiguration |
getMainConfiguration() |
MigrationConfiguration |
getMigrationConfiguration(String configurationName)
Read a configuration from the database whose name matches the the given configuration name
|
MigrationConfiguration[] |
getMigrationConfigurations()
Read configurations from the database whose name matches this instance name
|
Map<String,Controller.MigrationProcess> |
getMigrationProcesses() |
ThreadMonitor |
getThreadMonitor() |
MigrationConfiguration |
loadMigrationConfiguration(String migrationConfigurationId)
Load migration configuration based on its id
|
void |
run() |
activeCount, 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 Controller(MainConfiguration cfg)
public Map<String,Controller.MigrationProcess> getMigrationProcesses()
public MainConfiguration getMainConfiguration()
public ThreadMonitor getThreadMonitor()
public MigrationConfiguration[] getMigrationConfigurations() throws IOException, com.redhat.lightblue.client.LightblueException
IOExceptioncom.redhat.lightblue.client.LightblueExceptionpublic MigrationConfiguration getMigrationConfiguration(String configurationName) throws IOException, com.redhat.lightblue.client.LightblueException
IOExceptioncom.redhat.lightblue.client.LightblueExceptionpublic MigrationConfiguration loadMigrationConfiguration(String migrationConfigurationId) throws IOException, com.redhat.lightblue.client.LightblueException
IOExceptioncom.redhat.lightblue.client.LightblueExceptionpublic com.redhat.lightblue.client.LightblueClient getLightblueClient()
public void createControllers(MigrationConfiguration[] configurations) throws Exception
ExceptionCopyright © 2016. All rights reserved.