@InterfaceAudience.Public @InterfaceStability.Evolving public static class AggregatedLogFormat.LogReader extends Object
| コンストラクタと説明 | 
|---|
| LogReader(Configuration conf,
         Path remoteAppLogFile) | 
| 修飾子とタイプ | メソッドと説明 | 
|---|---|
| void | close() | 
| Map<ApplicationAccessType,String> | getApplicationAcls()Returns ACLs for the application. | 
| String | getApplicationOwner()Returns the owner of the application. | 
| DataInputStream | next(AggregatedLogFormat.LogKey key)Read the next key and return the value-stream. | 
| static void | readAcontainerLogs(DataInputStream valueStream,
                  Writer writer)Writes all logs for a single container to the provided writer. | 
| static void | readAcontainerLogs(DataInputStream valueStream,
                  Writer writer,
                  long logUploadedTime)Writes all logs for a single container to the provided writer. | 
| static void | readAContainerLogsForALogType(DataInputStream valueStream,
                             PrintStream out)Keep calling this till you get a  EOFExceptionfor getting logs of
 all types for a single container. | 
| static void | readAContainerLogsForALogType(DataInputStream valueStream,
                             PrintStream out,
                             long logUploadedTime)Keep calling this till you get a  EOFExceptionfor getting logs of
 all types for a single container. | 
| static void | readAContainerLogsForALogType(DataInputStream valueStream,
                             PrintStream out,
                             long logUploadedTime,
                             long bytes)Keep calling this till you get a  EOFExceptionfor getting logs of
 all types for a single container for the specific bytes. | 
| static int | readContainerLogsForALogType(DataInputStream valueStream,
                            PrintStream out,
                            long logUploadedTime,
                            List<String> logType)Keep calling this till you get a  EOFExceptionfor getting logs of
 the specific types for a single container. | 
| static int | readContainerLogsForALogType(DataInputStream valueStream,
                            PrintStream out,
                            long logUploadedTime,
                            List<String> logType,
                            long bytes)Keep calling this till you get a  EOFExceptionfor getting logs of
 the specific types for a single container. | 
public LogReader(Configuration conf, Path remoteAppLogFile) throws IOException
IOExceptionpublic String getApplicationOwner() throws IOException
IOExceptionpublic Map<ApplicationAccessType,String> getApplicationAcls() throws IOException
IOExceptionpublic DataInputStream next(AggregatedLogFormat.LogKey key) throws IOException
key - IOExceptionpublic static void readAcontainerLogs(DataInputStream valueStream, Writer writer, long logUploadedTime) throws IOException
valueStream - writer - logUploadedTime - IOExceptionpublic static void readAcontainerLogs(DataInputStream valueStream, Writer writer) throws IOException
valueStream - writer - IOExceptionpublic static void readAContainerLogsForALogType(DataInputStream valueStream, PrintStream out, long logUploadedTime) throws IOException
EOFException for getting logs of
 all types for a single container.valueStream - out - logUploadedTime - IOExceptionpublic static void readAContainerLogsForALogType(DataInputStream valueStream, PrintStream out, long logUploadedTime, long bytes) throws IOException
EOFException for getting logs of
 all types for a single container for the specific bytes.valueStream - out - logUploadedTime - bytes - IOExceptionpublic static void readAContainerLogsForALogType(DataInputStream valueStream, PrintStream out) throws IOException
EOFException for getting logs of
 all types for a single container.valueStream - out - IOExceptionpublic static int readContainerLogsForALogType(DataInputStream valueStream, PrintStream out, long logUploadedTime, List<String> logType) throws IOException
EOFException for getting logs of
 the specific types for a single container.valueStream - out - logUploadedTime - logType - IOExceptionpublic static int readContainerLogsForALogType(DataInputStream valueStream, PrintStream out, long logUploadedTime, List<String> logType, long bytes) throws IOException
EOFException for getting logs of
 the specific types for a single container.valueStream - out - logUploadedTime - logType - IOExceptionpublic void close()
Copyright © 2016 Apache Software Foundation. All rights reserved.