@InterfaceAudience.Public @InterfaceStability.Evolving public static class AggregatedLogFormat.LogReader extends Object
Constructor and Description |
---|
AggregatedLogFormat.LogReader(Configuration conf,
Path remoteAppLogFile) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
Map<ApplicationAccessType,String> |
getApplicationAcls()
Returns ACLs for the application.
|
String |
getApplicationOwner()
Returns the owner of the application.
|
AggregatedLogFormat.ContainerLogsReader |
getContainerLogsReader(ContainerId containerId)
Get a ContainerLogsReader to read the logs for
the specified container.
|
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 |
readAContainerLogsForALogType(DataInputStream valueStream,
PrintStream out)
Keep calling this till you get a
EOFException for getting logs of
all types for a single container. |
public AggregatedLogFormat.LogReader(Configuration conf, Path remoteAppLogFile) throws IOException
IOException
public String getApplicationOwner() throws IOException
IOException
public Map<ApplicationAccessType,String> getApplicationAcls() throws IOException
IOException
public DataInputStream next(AggregatedLogFormat.LogKey key) throws IOException
key
- IOException
@InterfaceAudience.Private public AggregatedLogFormat.ContainerLogsReader getContainerLogsReader(ContainerId containerId) throws IOException
containerId
- IOException
public static void readAcontainerLogs(DataInputStream valueStream, Writer writer) throws IOException
valueStream
- writer
- IOException
public static void readAContainerLogsForALogType(DataInputStream valueStream, PrintStream out) throws IOException
EOFException
for getting logs of
all types for a single container.valueStream
- out
- IOException
public void close() throws IOException
IOException
Copyright © 2013 Apache Software Foundation. All rights reserved.