public abstract class AbstractController extends Thread
Thread.State, Thread.UncaughtExceptionHandler| Modifier and Type | Field and Description |
|---|---|
protected Controller |
controller |
protected com.redhat.lightblue.client.LightblueClient |
lbClient |
protected com.redhat.lightblue.client.Locking |
locking |
protected MigrationConfiguration |
migrationConfiguration |
protected Class |
migratorClass |
protected ThreadGroup |
migratorThreads |
protected HashSet<String> |
myLocks |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
AbstractController(Controller controller,
MigrationConfiguration migrationConfiguration,
String threadGroupName) |
| Modifier and Type | Method and Description |
|---|---|
Migrator |
createMigrator(MigrationJob mj,
ActiveExecution ae) |
Controller |
getController() |
MigrationConfiguration |
getMigrationConfiguration() |
ThreadGroup |
getMigratorThreads() |
ActiveExecution |
lock(String id)
Attempts to lock a migration job.
|
MigrationConfiguration |
reloadMigrationConfiguration() |
void |
unlock(String id) |
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, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldprotected MigrationConfiguration migrationConfiguration
protected final Controller controller
protected final com.redhat.lightblue.client.LightblueClient lbClient
protected final com.redhat.lightblue.client.Locking locking
protected final Class migratorClass
protected final ThreadGroup migratorThreads
public AbstractController(Controller controller, MigrationConfiguration migrationConfiguration, String threadGroupName)
public ThreadGroup getMigratorThreads()
public Controller getController()
public MigrationConfiguration getMigrationConfiguration()
public MigrationConfiguration reloadMigrationConfiguration()
public ActiveExecution lock(String id) throws Exception
Exceptionpublic void unlock(String id)
public Migrator createMigrator(MigrationJob mj, ActiveExecution ae) throws Exception
ExceptionCopyright © 2016. All rights reserved.