/** * Get the recent output from the process, or [] if not defined * @return a possibly empty list */ public List<String> getRecentOutput() { return process != null ? process.getRecentOutput() : new LinkedList<String>(); }
/** * Get the recent output from the process, or [] if not defined * @return a possibly empty list */ public List<String> getRecentOutput() { return process != null ? process.getRecentOutput() : new LinkedList<String>(); }
/** * Get the recent output from the process, or [] if not defined * * @param finalOutput flag to indicate "wait for the final output of the process" * @param duration the duration, in ms, * to wait for recent output to become non-empty * @return a possibly empty list */ public List<String> getRecentOutput(boolean finalOutput, int duration) { if (process == null) { return new LinkedList<>(); } return process.getRecentOutput(finalOutput, duration); }
/** * Get the recent output from the process, or [] if not defined * * @param finalOutput flag to indicate "wait for the final output of the process" * @param duration the duration, in ms, * to wait for recent output to become non-empty * @return a possibly empty list */ public List<String> getRecentOutput(boolean finalOutput, int duration) { if (process == null) { return new LinkedList<>(); } return process.getRecentOutput(finalOutput, duration); }
/** * Get the final output. * @return the last output */ private List<String> getFinalOutput() { return process.getRecentOutput(true, 4000); }
/** * Get the final output. * @return the last output */ private List<String> getFinalOutput() { return process.getRecentOutput(true, 4000); }