@InterfaceAudience.Private
@InterfaceStability.Unstable
public class ResourceRequestPBImpl
extends org.apache.hadoop.yarn.api.records.ResourceRequest
Constructor and Description |
---|
ResourceRequestPBImpl() |
ResourceRequestPBImpl(org.apache.hadoop.yarn.proto.YarnProtos.ResourceRequestProto proto) |
Modifier and Type | Method and Description |
---|---|
long |
getAllocationRequestId() |
org.apache.hadoop.yarn.api.records.Resource |
getCapability() |
org.apache.hadoop.yarn.api.records.ExecutionTypeRequest |
getExecutionTypeRequest() |
String |
getNodeLabelExpression() |
int |
getNumContainers() |
org.apache.hadoop.yarn.api.records.Priority |
getPriority() |
org.apache.hadoop.yarn.proto.YarnProtos.ResourceRequestProto |
getProto() |
boolean |
getRelaxLocality() |
String |
getResourceName() |
void |
setAllocationRequestId(long allocationRequestID) |
void |
setCapability(org.apache.hadoop.yarn.api.records.Resource capability) |
void |
setExecutionTypeRequest(org.apache.hadoop.yarn.api.records.ExecutionTypeRequest execSpec) |
void |
setNodeLabelExpression(String nodeLabelExpression) |
void |
setNumContainers(int numContainers) |
void |
setPriority(org.apache.hadoop.yarn.api.records.Priority priority) |
void |
setRelaxLocality(boolean relaxLocality) |
void |
setResourceName(String resourceName) |
String |
toString() |
public ResourceRequestPBImpl()
public ResourceRequestPBImpl(org.apache.hadoop.yarn.proto.YarnProtos.ResourceRequestProto proto)
public org.apache.hadoop.yarn.proto.YarnProtos.ResourceRequestProto getProto()
public org.apache.hadoop.yarn.api.records.Priority getPriority()
getPriority
in class org.apache.hadoop.yarn.api.records.ResourceRequest
public void setPriority(org.apache.hadoop.yarn.api.records.Priority priority)
setPriority
in class org.apache.hadoop.yarn.api.records.ResourceRequest
public org.apache.hadoop.yarn.api.records.ExecutionTypeRequest getExecutionTypeRequest()
getExecutionTypeRequest
in class org.apache.hadoop.yarn.api.records.ResourceRequest
public void setExecutionTypeRequest(org.apache.hadoop.yarn.api.records.ExecutionTypeRequest execSpec)
setExecutionTypeRequest
in class org.apache.hadoop.yarn.api.records.ResourceRequest
public String getResourceName()
getResourceName
in class org.apache.hadoop.yarn.api.records.ResourceRequest
public void setResourceName(String resourceName)
setResourceName
in class org.apache.hadoop.yarn.api.records.ResourceRequest
public org.apache.hadoop.yarn.api.records.Resource getCapability()
getCapability
in class org.apache.hadoop.yarn.api.records.ResourceRequest
public void setCapability(org.apache.hadoop.yarn.api.records.Resource capability)
setCapability
in class org.apache.hadoop.yarn.api.records.ResourceRequest
public int getNumContainers()
getNumContainers
in class org.apache.hadoop.yarn.api.records.ResourceRequest
public void setNumContainers(int numContainers)
setNumContainers
in class org.apache.hadoop.yarn.api.records.ResourceRequest
public boolean getRelaxLocality()
getRelaxLocality
in class org.apache.hadoop.yarn.api.records.ResourceRequest
public void setRelaxLocality(boolean relaxLocality)
setRelaxLocality
in class org.apache.hadoop.yarn.api.records.ResourceRequest
public long getAllocationRequestId()
getAllocationRequestId
in class org.apache.hadoop.yarn.api.records.ResourceRequest
public void setAllocationRequestId(long allocationRequestID)
setAllocationRequestId
in class org.apache.hadoop.yarn.api.records.ResourceRequest
public String getNodeLabelExpression()
getNodeLabelExpression
in class org.apache.hadoop.yarn.api.records.ResourceRequest
public void setNodeLabelExpression(String nodeLabelExpression)
setNodeLabelExpression
in class org.apache.hadoop.yarn.api.records.ResourceRequest
Copyright © 2008–2018 Apache Software Foundation. All rights reserved.