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

rename recorder object to pduRecorder for clarity

parent 98659c16
No related branches found
No related tags found
No related merge requests found
......@@ -67,14 +67,14 @@ public class PduListenerSaver
mystate state = mystate.RUNNING;
Scanner terminalKeyboardScanner = new Scanner(System.in);
PduRecorder recorder = new PduRecorder(outputDirectory, multicastAddress, multicastPort); // assumes save on quit
PduRecorder pduRecorder = new PduRecorder(outputDirectory, multicastAddress, multicastPort); // assumes save on quit
while (true) // monitor user input via keyboard
{
System.out.println("Type p/enter to pause, r/enter to resume, q/enter to quit");
String line = terminalKeyboardScanner.nextLine();
if (line.equalsIgnoreCase("p") && state == mystate.RUNNING) {
recorder.stopPause();
pduRecorder.stopPause();
state = mystate.PAUSED;
System.out.println("... now PAUSED");
}
......@@ -82,7 +82,7 @@ public class PduListenerSaver
System.out.println("... still PAUSED");
}
else if (line.equalsIgnoreCase("r") && state == mystate.PAUSED) {
recorder.startResume();
pduRecorder.startResume();
state = mystate.RUNNING;
System.out.println("... now RUNNING");
}
......@@ -91,11 +91,11 @@ public class PduListenerSaver
}
else if (line.equalsIgnoreCase("q")) {
System.out.println("... QUIT");
recorder.end();
pduRecorder.end();
break;
}
}
System.out.println("Ending PduListenerSaver pdu recording, saved to file:");
System.out.println(recorder.getLogFilePath());
System.out.println(pduRecorder.getLogFilePath());
}
}
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