@InterfaceAudience.Private public static class AggregatedLogFormat.LogValue extends Object
Constructor and Description |
---|
LogValue(List<String> rootLogDirs,
org.apache.hadoop.yarn.api.records.ContainerId containerId,
String user) |
LogValue(List<String> rootLogDirs,
org.apache.hadoop.yarn.api.records.ContainerId containerId,
String user,
org.apache.hadoop.yarn.api.records.LogAggregationContext logAggregationContext,
Set<String> alreadyUploadedLogFiles,
AggregatedLogFormat.LogRetentionContext retentionContext,
boolean appFinished,
boolean containerFinished) |
Modifier and Type | Method and Description |
---|---|
Set<String> |
getAllExistingFilesMeta() |
Set<String> |
getCurrentUpLoadedFileMeta() |
Set<org.apache.hadoop.fs.Path> |
getCurrentUpLoadedFilesPath() |
Set<org.apache.hadoop.fs.Path> |
getObsoleteRetentionLogFiles() |
Set<File> |
getPendingLogFilesToUploadForThisContainer() |
String |
getUser() |
FileInputStream |
secureOpenFile(File logFile) |
void |
write(DataOutputStream out,
Set<File> pendingUploadFiles) |
public LogValue(List<String> rootLogDirs, org.apache.hadoop.yarn.api.records.ContainerId containerId, String user)
public LogValue(List<String> rootLogDirs, org.apache.hadoop.yarn.api.records.ContainerId containerId, String user, org.apache.hadoop.yarn.api.records.LogAggregationContext logAggregationContext, Set<String> alreadyUploadedLogFiles, AggregatedLogFormat.LogRetentionContext retentionContext, boolean appFinished, boolean containerFinished)
@VisibleForTesting public Set<File> getPendingLogFilesToUploadForThisContainer()
public void write(DataOutputStream out, Set<File> pendingUploadFiles) throws IOException
IOException
@VisibleForTesting public FileInputStream secureOpenFile(File logFile) throws IOException
IOException
public String getUser()
public Set<org.apache.hadoop.fs.Path> getCurrentUpLoadedFilesPath()
public Set<org.apache.hadoop.fs.Path> getObsoleteRetentionLogFiles()
Copyright © 2008–2024 Apache Software Foundation. All rights reserved.