|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.yarn.logaggregation.AggregatedLogFormat.LogReader
@InterfaceAudience.Public @InterfaceStability.Evolving public static class AggregatedLogFormat.LogReader
| Constructor Summary | |
|---|---|
AggregatedLogFormat.LogReader(Configuration conf,
Path remoteAppLogFile)
|
|
| Method Summary | |
|---|---|
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 EOFException for 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 EOFException for getting logs of
all types for a single container. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AggregatedLogFormat.LogReader(Configuration conf,
Path remoteAppLogFile)
throws IOException
IOException| Method Detail |
|---|
public String getApplicationOwner()
throws IOException
IOException
public Map<ApplicationAccessType,String> getApplicationAcls()
throws IOException
IOException
public DataInputStream next(AggregatedLogFormat.LogKey key)
throws IOException
key -
IOException
public static void readAcontainerLogs(DataInputStream valueStream,
Writer writer,
long logUploadedTime)
throws IOException
valueStream - writer - logUploadedTime -
IOException
public static void readAcontainerLogs(DataInputStream valueStream,
Writer writer)
throws IOException
valueStream - writer -
IOException
public 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 -
IOException
public static void readAContainerLogsForALogType(DataInputStream valueStream,
PrintStream out)
throws IOException
EOFException for getting logs of
all types for a single container.
valueStream - out -
IOExceptionpublic void close()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||