public class GenericDiagnosticsCollector extends Object implements DiagnosticsCollector
Modifier and Type | Field and Description |
---|---|
static String |
PARTITION_DIAGNOSTICS_PREFIX |
static String |
PLACEMENT_CONSTRAINT_DIAGNOSTICS_PREFIX |
static String |
RESOURCE_DIAGNOSTICS_PREFIX |
Constructor and Description |
---|
GenericDiagnosticsCollector() |
Modifier and Type | Method and Description |
---|---|
void |
collect(String diagnosticsInfo,
String detailsInfo) |
void |
collectPartitionDiagnostics(String requiredPartition,
String nodePartition) |
void |
collectPlacementConstraintDiagnostics(org.apache.hadoop.yarn.api.resource.PlacementConstraint pc,
org.apache.hadoop.yarn.api.resource.PlacementConstraint.TargetExpression.TargetType targetType) |
void |
collectResourceDiagnostics(org.apache.hadoop.yarn.util.resource.ResourceCalculator rc,
org.apache.hadoop.yarn.api.records.Resource required,
org.apache.hadoop.yarn.api.records.Resource available) |
String |
getDetails() |
String |
getDiagnostics() |
public static final String RESOURCE_DIAGNOSTICS_PREFIX
public static final String PLACEMENT_CONSTRAINT_DIAGNOSTICS_PREFIX
public static final String PARTITION_DIAGNOSTICS_PREFIX
public void collect(String diagnosticsInfo, String detailsInfo)
collect
in interface DiagnosticsCollector
public String getDiagnostics()
getDiagnostics
in interface DiagnosticsCollector
public String getDetails()
getDetails
in interface DiagnosticsCollector
public void collectResourceDiagnostics(org.apache.hadoop.yarn.util.resource.ResourceCalculator rc, org.apache.hadoop.yarn.api.records.Resource required, org.apache.hadoop.yarn.api.records.Resource available)
collectResourceDiagnostics
in interface DiagnosticsCollector
public void collectPlacementConstraintDiagnostics(org.apache.hadoop.yarn.api.resource.PlacementConstraint pc, org.apache.hadoop.yarn.api.resource.PlacementConstraint.TargetExpression.TargetType targetType)
collectPlacementConstraintDiagnostics
in interface DiagnosticsCollector
public void collectPartitionDiagnostics(String requiredPartition, String nodePartition)
collectPartitionDiagnostics
in interface DiagnosticsCollector
Copyright © 2008–2022 Apache Software Foundation. All rights reserved.