Skip to content
Snippets Groups Projects
Commit cf1fe91e authored by Brutzman, Don's avatar Brutzman, Don
Browse files

library methods renamed

parent 6c69880d
No related branches found
No related tags found
No related merge requests found
...@@ -57,7 +57,7 @@ public class FetterolfPduListenerSaver { ...@@ -57,7 +57,7 @@ public class FetterolfPduListenerSaver {
// try { // try {
PduRecorder recorder = new PduRecorder(outDir, mcast, port); PduRecorder recorder = new PduRecorder(outDir, mcast, port);
recorder.startResume(); recorder.start();
mystate state = mystate.RUNNING; mystate state = mystate.RUNNING;
System.out.println("* recorder.startResume(), state=RUNNING, recording in progress..."); System.out.println("* recorder.startResume(), state=RUNNING, recording in progress...");
Scanner scan = new Scanner(System.in); Scanner scan = new Scanner(System.in);
...@@ -67,15 +67,15 @@ public class FetterolfPduListenerSaver { ...@@ -67,15 +67,15 @@ public class FetterolfPduListenerSaver {
System.out.println("Type p/enter to pause, r/enter to resume, q/enter to stop recording, save and quit"); System.out.println("Type p/enter to pause, r/enter to resume, q/enter to stop recording, save and quit");
String line = scan.nextLine(); String line = scan.nextLine();
if (line.equalsIgnoreCase("p") && state == mystate.RUNNING) { if (line.equalsIgnoreCase("p") && state == mystate.RUNNING) {
recorder.stopPause(); recorder.pause();
state = mystate.PAUSED; state = mystate.PAUSED;
System.out.println("* recorder.stopPause(), state=PAUSED, recording paused..."); System.out.println("* recorder.stopPause(), state=PAUSED, recording paused...");
} else if (line.equalsIgnoreCase("r") && state == mystate.PAUSED) { } else if (line.equalsIgnoreCase("r") && state == mystate.PAUSED) {
recorder.startResume(); recorder.resume();
state = mystate.RUNNING; state = mystate.RUNNING;
System.out.println("* recorder.startResume(), state=RUNNING, recording in progress..."); System.out.println("* recorder.startResume(), state=RUNNING, recording in progress...");
} else if (line.equalsIgnoreCase("q")) { } else if (line.equalsIgnoreCase("q")) {
recorder.end(); recorder.stop();
System.out.println("* recorder.end(), recording complete."); System.out.println("* recorder.end(), recording complete.");
break; break;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment