@InterfaceAudience.Private public class LogAggregationUtils extends Object
Constructor and Description |
---|
LogAggregationUtils() |
Modifier and Type | Method and Description |
---|---|
static Path |
getRemoteAppLogDir(Path remoteRootLogDir,
ApplicationId appId,
String user,
String suffix)
Gets the remote app log dir.
|
static Path |
getRemoteLogSuffixedDir(Path remoteRootLogDir,
String user,
String suffix)
Gets the remote suffixed log dir for the user.
|
static Path |
getRemoteLogUserDir(Path remoteRootLogDir,
String user)
Gets the remote log user dir.
|
static String |
getRemoteNodeLogDirSuffix(Configuration conf)
Returns the suffix component of the log dir.
|
static Path |
getRemoteNodeLogFileForApp(Path remoteRootLogDir,
ApplicationId appId,
String user,
NodeId nodeId,
String suffix)
Constructs the full filename for an application's log file per node.
|
public static Path getRemoteNodeLogFileForApp(Path remoteRootLogDir, ApplicationId appId, String user, NodeId nodeId, String suffix)
remoteRootLogDir
- appId
- user
- nodeId
- suffix
- public static Path getRemoteAppLogDir(Path remoteRootLogDir, ApplicationId appId, String user, String suffix)
remoteRootLogDir
- appId
- user
- suffix
- public static Path getRemoteLogSuffixedDir(Path remoteRootLogDir, String user, String suffix)
remoteRootLogDir
- user
- suffix
- public static Path getRemoteLogUserDir(Path remoteRootLogDir, String user)
remoteRootLogDir
- user
- public static String getRemoteNodeLogDirSuffix(Configuration conf)
conf
- Copyright © 2013 Apache Software Foundation. All rights reserved.