@InterfaceStability.Evolving @InterfaceAudience.Public public abstract class LogAggregationContext extends Object
LogAggregationContext represents all of the
 information needed by the NodeManager to handle
 the logs for an application.
 It includes details such as:
ApplicationSubmissionContext| Constructor and Description | 
|---|
| LogAggregationContext() | 
| Modifier and Type | Method and Description | 
|---|---|
| abstract String | getExcludePattern()Get exclude pattern. | 
| abstract String | getIncludePattern()Get include pattern. | 
| abstract String | getLogAggregationPolicyClassName()Get the log aggregation policy class. | 
| abstract String | getLogAggregationPolicyParameters()Get the log aggregation policy parameters. | 
| abstract String | getRolledLogsExcludePattern()Get exclude pattern for aggregation in a rolling fashion. | 
| abstract String | getRolledLogsIncludePattern()Get include pattern in a rolling fashion. | 
| static LogAggregationContext | newInstance(String includePattern,
           String excludePattern) | 
| static LogAggregationContext | newInstance(String includePattern,
           String excludePattern,
           String rolledLogsIncludePattern,
           String rolledLogsExcludePattern) | 
| static LogAggregationContext | newInstance(String includePattern,
           String excludePattern,
           String rolledLogsIncludePattern,
           String rolledLogsExcludePattern,
           String policyClassName,
           String policyParameters) | 
| abstract void | setExcludePattern(String excludePattern)Set exclude pattern. | 
| abstract void | setIncludePattern(String includePattern)Set include pattern. | 
| abstract void | setLogAggregationPolicyClassName(String className)Set the log aggregation policy class. | 
| abstract void | setLogAggregationPolicyParameters(String parameters)Set the log aggregation policy parameters. | 
| abstract void | setRolledLogsExcludePattern(String rolledLogsExcludePattern)Set exclude pattern for in a rolling fashion. | 
| abstract void | setRolledLogsIncludePattern(String rolledLogsIncludePattern)Set include pattern in a rolling fashion. | 
@InterfaceAudience.Public @InterfaceStability.Unstable public static LogAggregationContext newInstance(String includePattern, String excludePattern)
@InterfaceAudience.Public @InterfaceStability.Unstable public static LogAggregationContext newInstance(String includePattern, String excludePattern, String rolledLogsIncludePattern, String rolledLogsExcludePattern)
@InterfaceAudience.Public @InterfaceStability.Unstable public static LogAggregationContext newInstance(String includePattern, String excludePattern, String rolledLogsIncludePattern, String rolledLogsExcludePattern, String policyClassName, String policyParameters)
@InterfaceAudience.Public @InterfaceStability.Unstable public abstract String getIncludePattern()
@InterfaceAudience.Public @InterfaceStability.Unstable public abstract void setIncludePattern(String includePattern)
includePattern - include pattern.@InterfaceAudience.Public @InterfaceStability.Unstable public abstract String getExcludePattern()
@InterfaceAudience.Public @InterfaceStability.Unstable public abstract void setExcludePattern(String excludePattern)
excludePattern - exclude pattern.@InterfaceAudience.Public @InterfaceStability.Unstable public abstract String getRolledLogsIncludePattern()
@InterfaceAudience.Public @InterfaceStability.Unstable public abstract void setRolledLogsIncludePattern(String rolledLogsIncludePattern)
rolledLogsIncludePattern - It uses Java Regex to filter the log files
 which match the defined include pattern and those log files
 will be aggregated in a rolling fashion.@InterfaceAudience.Public @InterfaceStability.Unstable public abstract String getRolledLogsExcludePattern()
@InterfaceAudience.Public @InterfaceStability.Unstable public abstract void setRolledLogsExcludePattern(String rolledLogsExcludePattern)
rolledLogsExcludePattern - rolled logs exclude pattern.@InterfaceAudience.Public @InterfaceStability.Unstable public abstract String getLogAggregationPolicyClassName()
@InterfaceAudience.Public @InterfaceStability.Unstable public abstract void setLogAggregationPolicyClassName(String className)
className - log aggregation policy class name.@InterfaceAudience.Public @InterfaceStability.Unstable public abstract String getLogAggregationPolicyParameters()
@InterfaceAudience.Public @InterfaceStability.Unstable public abstract void setLogAggregationPolicyParameters(String parameters)
parameters - log aggregation policy parameters.Copyright © 2025 Apache Software Foundation. All rights reserved.