Class ScriptExecutionNotification
- java.lang.Object
-
- software.xdev.micromigration.notification.ScriptExecutionNotification
-
public class ScriptExecutionNotification extends java.lang.Object
Contains data about the execution of a script by aMicroMigrater
.- Author:
- Johannes Rabauer
-
-
Constructor Summary
Constructors Constructor Description ScriptExecutionNotification(MigrationScript<?,?> executedScript, MigrationVersion sourceVersion, MigrationVersion targetVersion, java.time.LocalDateTime startDate, java.time.LocalDateTime endDate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.time.LocalDateTime
getEndDate()
MigrationScript<?,?>
getExecutedScript()
MigrationVersion
getSourceVersion()
java.time.LocalDateTime
getStartDate()
MigrationVersion
getTargetVersion()
-
-
-
Constructor Detail
-
ScriptExecutionNotification
public ScriptExecutionNotification(MigrationScript<?,?> executedScript, MigrationVersion sourceVersion, MigrationVersion targetVersion, java.time.LocalDateTime startDate, java.time.LocalDateTime endDate)
- Parameters:
executedScript
- script that was executedsourceVersion
- original version of the object before executing the scripttargetVersion
- version of the object after executing the scriptstartDate
- time when the script was startedendDate
- time when the script has finished
-
-
Method Detail
-
getExecutedScript
public MigrationScript<?,?> getExecutedScript()
- Returns:
- the script that was executed
-
getSourceVersion
public MigrationVersion getSourceVersion()
- Returns:
- the original version of the object before executing the script
-
getTargetVersion
public MigrationVersion getTargetVersion()
- Returns:
- the version of the object after executing the script
-
getStartDate
public java.time.LocalDateTime getStartDate()
- Returns:
- the time when the script was started
-
getEndDate
public java.time.LocalDateTime getEndDate()
- Returns:
- time when the script has finished
-
-