/** * Keep calling this till you get a {@link EOFException} for getting logs of * the specific types for a single container. * @param valueStream the value stream * @param out the output print stream * @param logUploadedTime the log uploaded time stamp * @param logType the given log type * @throws IOException if we can not read the container logs */ public static int readContainerLogsForALogType( DataInputStream valueStream, PrintStream out, long logUploadedTime, List<String> logType) throws IOException { return readContainerLogsForALogType(valueStream, out, logUploadedTime, logType, Long.MAX_VALUE); }