-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MID-8842 upgrade objects step implementation started
- Loading branch information
Showing
14 changed files
with
161 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
.../ninja/src/main/java/com/evolveum/midpoint/ninja/action/upgrade/handler/UpgradePhase.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package com.evolveum.midpoint.ninja.action.upgrade.handler; | ||
|
||
public enum UpgradePhase { | ||
|
||
BEFORE, AFTER; | ||
} |
7 changes: 7 additions & 0 deletions
7
...java/com/evolveum/midpoint/ninja/action/upgrade/step/UpgradeObjectsAfterShutdownStep.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
...ava/com/evolveum/midpoint/ninja/action/upgrade/step/UpgradeObjectsBeforeShutdownStep.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
tools/ninja/src/main/java/com/evolveum/midpoint/ninja/action/upgrade/step/VerifyResult.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package com.evolveum.midpoint.ninja.action.upgrade.step; | ||
|
||
import com.evolveum.midpoint.ninja.action.upgrade.StepResult; | ||
|
||
import java.io.File; | ||
|
||
public class VerifyResult implements StepResult { | ||
|
||
private File output; | ||
|
||
public File getOutput() { | ||
return output; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
tools/ninja/src/test/java/com/evolveum/midpoint/ninja/upgrade/JansiTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package com.evolveum.midpoint.ninja.upgrade; | ||
|
||
import org.fusesource.jansi.Ansi; | ||
import org.fusesource.jansi.AnsiConsole; | ||
import org.testng.annotations.Test; | ||
|
||
public class JansiTest { | ||
|
||
@Test//(enabled = false) | ||
public void testJANSI() throws Exception{ | ||
AnsiConsole.systemInstall(); | ||
|
||
// System.out.print(Ansi.ansi().a("vilko\n")); | ||
// System.out.print(Ansi.ansi().cursorUpLine().eraseLine()); | ||
// System.out.print(Ansi.ansi().a("janko\n")); | ||
|
||
System.out.println(Ansi.ansi().fgBlue().a("Start").reset()); | ||
for (int i = 0; i < 10; i++) { | ||
System.out.println(Ansi.ansi().cursorUpLine().eraseLine(Ansi.Erase.ALL).fgGreen().a(i).reset()); | ||
Thread.sleep(500); | ||
} | ||
System.out.println(Ansi.ansi().fgRed().a("Complete").reset()); | ||
|
||
AnsiConsole.systemUninstall(); | ||
} | ||
} |