| Modifier and Type | Interface and Description |
|---|---|
interface |
LegacyAnnotationProcessor<CHANGESET extends ChangeSetItem> |
| Modifier and Type | Method and Description |
|---|---|
ChangeSetItem |
LegacyLegacyAnnotationProcessor.getChangePerformerItem(Method changeSetMethod,
Method rollbackMethod) |
ChangeSetItem |
LegacyLegacyAnnotationProcessor.getChangeSetItem(Method method,
Method rollbackMethod) |
| Modifier and Type | Class and Description |
|---|---|
class |
RunnerBuilderBase<SELF extends RunnerBuilderBase<SELF,CHANGELOG,CHANGESET,CONFIG>,CHANGELOG extends ChangeLogItem<CHANGESET>,CHANGESET extends ChangeSetItem,CONFIG extends MongockConfiguration> |
| Modifier and Type | Field and Description |
|---|---|
protected ExecutorFactory<CHANGELOG,? extends ChangeSetItem,CONFIG> |
RunnerBuilderBase.executorFactory |
| Constructor and Description |
|---|
RunnerBuilderBase(BuilderType type,
ExecutorFactory<CHANGELOG,? extends ChangeSetItem,CONFIG> executorFactory,
ChangeLogServiceBase<CHANGELOG,CHANGESET> changeLogService,
DependencyManager dependencyManager,
CONFIG config) |
| Modifier and Type | Interface and Description |
|---|---|
interface |
ExecutorFactory<CHANGELOG extends ChangeLogItem<CHANGESET>,CHANGESET extends ChangeSetItem,CONFIG extends ExecutorConfiguration> |
| Modifier and Type | Method and Description |
|---|---|
Executor |
ExecutorFactoryDefault.getExecutor(Operation op,
String executionId,
SortedSet<ChangeLogItem<ChangeSetItem>> changeLogs,
ConnectionDriver driver,
ChangeLogRuntime changeLogRuntime,
MongockConfiguration config) |
| Modifier and Type | Class and Description |
|---|---|
class |
ChangeLogServiceBase<CHANGELOG extends ChangeLogItem<CHANGESET>,CHANGESET extends ChangeSetItem>
Utilities to deal with reflections and annotations
|
| Modifier and Type | Method and Description |
|---|---|
protected ChangeLogItem<ChangeSetItem> |
ChangeLogService.buildChangeLogInstance(Class<?> changeUnitClass) |
protected ChangeLogItem<ChangeSetItem> |
ChangeLogService.buildChangeLogInstanceFromLegacy(Class<?> changeLogClass) |
| Modifier and Type | Field and Description |
|---|---|
protected Set<ChangeLogItem<ChangeSetItem>> |
MigrationExecutorBase.changeLogs |
protected Deque<Triple<Object,ChangeSetItem,Exception>> |
MigrationExecutorBase.changeSetsToRollBack |
| Modifier and Type | Method and Description |
|---|---|
protected ChangeEntry |
MigrationExecutorBase.buildChangeEntry(String executionId,
String executionHostname,
ChangeSetItem changeSetItem,
long executionTimeMillis,
ChangeState state,
ChangeType type) |
protected ChangeEntry |
MigrationExecutorBase.buildChangeEntry(String executionId,
String executionHostname,
ChangeSetItem changeSetItem,
long executionTimeMillis,
ChangeState state,
ChangeType type,
Exception executionException,
Exception rollbackException) |
protected void |
MigrationExecutorBase.executeAndLogChangeSet(String executionId,
String executionHostname,
Object changelogInstance,
ChangeSetItem changeSetItem) |
protected boolean |
MigrationExecutorBase.isAlreadyExecuted(ChangeSetItem changeSetItem) |
protected void |
MigrationExecutorBase.processExceptionOnChangeSetExecution(Exception exception,
ChangeSetItem changeSetItem,
boolean throwException) |
protected void |
MigrationExecutorBase.processSingleChangeSet(String executionId,
String executionHostname,
Object changeLogInstance,
ChangeSetItem changeSet) |
protected void |
MigrationExecutorBase.rollbackIfPresentAndTrackChangeEntry(String executionId,
String executionHostname,
Object changeLogInstance,
ChangeSetItem changeSetItem,
Exception changeSetException) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
MigrationExecutorBase.isThereAnyChangeSetItemToBeExecuted(Collection<ChangeLogItem<ChangeSetItem>> changeLogs) |
protected void |
MigrationExecutorBase.loopRawChangeSets(String executionId,
String executionHostName,
Object changeLogInstance,
ChangeLogItem<ChangeSetItem> changeLog,
List<? extends ChangeSetItem> changeSets) |
protected void |
MigrationExecutorBase.loopRawChangeSets(String executionId,
String executionHostName,
Object changeLogInstance,
ChangeLogItem<ChangeSetItem> changeLog,
List<? extends ChangeSetItem> changeSets) |
protected void |
MigrationExecutorBase.processChangeLogInTransactionIfApplies(String executionId,
String executionHostname,
Object changeLogInstance,
ChangeLogItem<ChangeSetItem> changeLog) |
protected void |
MigrationExecutorBase.processChangeLogs(String executionId,
String executionHostname,
Collection<ChangeLogItem<ChangeSetItem>> changeLogs) |
protected void |
MigrationExecutorBase.processMigration(Collection<ChangeLogItem<ChangeSetItem>> changeLogs,
String executionId,
String executionHostname) |
protected void |
MigrationExecutorBase.processSingleChangeLog(String executionId,
String executionHostname,
ChangeLogItem<ChangeSetItem> changeLog) |
protected void |
MigrationExecutorBase.rollbackProcessedChangeSetsIfApply(String executionId,
String hostname,
Deque<Triple<Object,ChangeSetItem,Exception>> processedChangeSets)
changeSetsToRollBack collection contains "all and only" the changeSets to rollback "manually" in case of any
exception occurs, sorted in reverse order.
|
| Constructor and Description |
|---|
MigrationExecutor(String executionId,
Set<ChangeLogItem<ChangeSetItem>> changeLogs,
ConnectionDriver driver,
ChangeLogRuntime changeLogRuntime,
ChangeExecutorConfiguration config) |
MigrationExecutorBase(String executionId,
Set<ChangeLogItem<ChangeSetItem>> changeLogs,
ConnectionDriver driver,
ChangeLogRuntime changeLogRuntime,
CONFIG config) |
| Modifier and Type | Class and Description |
|---|---|
class |
ChangeLogItem<CHANGESET extends ChangeSetItem> |
| Modifier and Type | Class and Description |
|---|---|
class |
BeforeChangeSetItem |
| Modifier and Type | Method and Description |
|---|---|
static <C extends ChangeSetItem> |
ChangeLogItem.getFromLegacy(Class<?> type,
String order,
boolean failFast,
List<C> changeSetElements,
boolean system) |
| Modifier and Type | Method and Description |
|---|---|
static ChangeLogItem<ChangeSetItem> |
ChangeLogItem.getFromAnnotation(Class<?> changeLogClass,
String baseId,
String author,
String order,
boolean failFast,
boolean transactional,
boolean runAlways,
String systemVersion,
Method executionMethod,
Method rollbackExecutionMethod,
Method beforeMethod,
Method rollbackBeforeMethod,
boolean system) |
Copyright © 2022. All rights reserved.