Interface ContainerLogAggregationPolicy
@Public
@Unstable
public interface ContainerLogAggregationPolicy
This API is used by NodeManager to decide if a given container's logs
should be aggregated at run time.
-
Method Summary
Modifier and TypeMethodDescriptionvoidparseParameters(String parameters) The method used by the NodeManager log aggregation service to initial the policy object with parameters specified by the application or the cluster-wide setting.booleanshouldDoLogAggregation(ContainerLogContext logContext) The method used by the NodeManager log aggregation service to ask the policy object if a given container's logs should be aggregated.
-
Method Details
-
parseParameters
The method used by the NodeManager log aggregation service to initial the policy object with parameters specified by the application or the cluster-wide setting.
- Parameters:
parameters- parameters with scheme defined by the policy class.
-
shouldDoLogAggregation
The method used by the NodeManager log aggregation service to ask the policy object if a given container's logs should be aggregated.
- Parameters:
logContext- ContainerLogContext- Returns:
- Whether or not the container's logs should be aggregated.
-