@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.
|
public LogAggregationContext()
@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
- @InterfaceAudience.Public @InterfaceStability.Unstable public abstract String getExcludePattern()
@InterfaceAudience.Public @InterfaceStability.Unstable public abstract void setExcludePattern(String excludePattern)
excludePattern
- @InterfaceAudience.Public @InterfaceStability.Unstable public abstract String getRolledLogsIncludePattern()
@InterfaceAudience.Public @InterfaceStability.Unstable public abstract void setRolledLogsIncludePattern(String rolledLogsIncludePattern)
rolledLogsIncludePattern
- @InterfaceAudience.Public @InterfaceStability.Unstable public abstract String getRolledLogsExcludePattern()
@InterfaceAudience.Public @InterfaceStability.Unstable public abstract void setRolledLogsExcludePattern(String rolledLogsExcludePattern)
rolledLogsExcludePattern
- @InterfaceAudience.Public @InterfaceStability.Unstable public abstract String getLogAggregationPolicyClassName()
@InterfaceAudience.Public @InterfaceStability.Unstable public abstract void setLogAggregationPolicyClassName(String className)
className
- @InterfaceAudience.Public @InterfaceStability.Unstable public abstract String getLogAggregationPolicyParameters()
@InterfaceAudience.Public @InterfaceStability.Unstable public abstract void setLogAggregationPolicyParameters(String parameters)
parameters
- Copyright © 2017 Apache Software Foundation. All rights reserved.