java.lang.Object
org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ResourceRequestInfo

public class ResourceRequestInfo extends Object
Simple class representing a resource request.
  • Constructor Details

    • ResourceRequestInfo

      public ResourceRequestInfo()
    • ResourceRequestInfo

      public ResourceRequestInfo(org.apache.hadoop.yarn.api.records.ResourceRequest request)
    • ResourceRequestInfo

      public ResourceRequestInfo(org.apache.hadoop.yarn.api.records.SchedulingRequest request)
  • Method Details

    • getPriority

      public org.apache.hadoop.yarn.api.records.Priority getPriority()
    • setPriority

      public void setPriority(org.apache.hadoop.yarn.api.records.Priority priority)
    • getResourceName

      public String getResourceName()
    • setResourceName

      public void setResourceName(String resourceName)
    • getCapability

      public ResourceInfo getCapability()
    • setCapability

      public void setCapability(ResourceInfo capability)
    • getNumContainers

      public int getNumContainers()
    • setNumContainers

      public void setNumContainers(int numContainers)
    • getRelaxLocality

      public boolean getRelaxLocality()
    • setRelaxLocality

      public void setRelaxLocality(boolean relaxLocality)
    • getNodeLabelExpression

      public String getNodeLabelExpression()
    • setNodeLabelExpression

      public void setNodeLabelExpression(String nodeLabelExpression)
    • setExecutionTypeRequest

      public void setExecutionTypeRequest(org.apache.hadoop.yarn.api.records.ExecutionTypeRequest executionTypeRequest)
    • getExecutionTypeRequest

      public ExecutionTypeRequestInfo getExecutionTypeRequest()
    • getPlacementConstraint

      public String getPlacementConstraint()
    • setPlacementConstraint

      public void setPlacementConstraint(String placementConstraint)
    • getAllocationTags

      public Set<String> getAllocationTags()
    • setAllocationTags

      public void setAllocationTags(Set<String> allocationTags)
    • getAllocationRequestId

      public long getAllocationRequestId()
    • setAllocationRequestId

      public void setAllocationRequestId(long allocationRequestId)