Fixed migration and added resend and cleanup options to demo application

This commit is contained in:
2016-05-24 17:19:29 +02:00
parent 409dccd0be
commit 725d2b848e
3 changed files with 24 additions and 4 deletions

View File

@ -118,8 +118,27 @@ public class Application {
}
private void info() {
System.out.println();
System.out.println(ctx.status());
String command;
do {
System.out.println();
System.out.println(ctx.status());
System.out.println();
System.out.println("c) cleanup inventory");
System.out.println("r) resend unacknowledged messages");
System.out.println(COMMAND_BACK);
command = commandLine.nextCommand();
switch (command) {
case "c":
ctx.cleanup();
break;
case "r":
ctx.resendUnacknowledgedMessages();
break;
case "b":
return;
}
} while (!"b".equals(command));
}
private void identities() {