@InterfaceAudience.Private
@InterfaceStability.Unstable
public class PreemptionContractPBImpl
extends org.apache.hadoop.yarn.api.records.PreemptionContract
Constructor and Description |
---|
PreemptionContractPBImpl() |
PreemptionContractPBImpl(org.apache.hadoop.yarn.proto.YarnProtos.PreemptionContractProto proto) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
Set<org.apache.hadoop.yarn.api.records.PreemptionContainer> |
getContainers() |
org.apache.hadoop.yarn.proto.YarnProtos.PreemptionContractProto |
getProto() |
List<org.apache.hadoop.yarn.api.records.PreemptionResourceRequest> |
getResourceRequest() |
int |
hashCode() |
void |
setContainers(Set<org.apache.hadoop.yarn.api.records.PreemptionContainer> containers) |
void |
setResourceRequest(List<org.apache.hadoop.yarn.api.records.PreemptionResourceRequest> req) |
String |
toString() |
public PreemptionContractPBImpl()
public PreemptionContractPBImpl(org.apache.hadoop.yarn.proto.YarnProtos.PreemptionContractProto proto)
public org.apache.hadoop.yarn.proto.YarnProtos.PreemptionContractProto getProto()
public Set<org.apache.hadoop.yarn.api.records.PreemptionContainer> getContainers()
getContainers
in class org.apache.hadoop.yarn.api.records.PreemptionContract
public void setContainers(Set<org.apache.hadoop.yarn.api.records.PreemptionContainer> containers)
setContainers
in class org.apache.hadoop.yarn.api.records.PreemptionContract
public List<org.apache.hadoop.yarn.api.records.PreemptionResourceRequest> getResourceRequest()
getResourceRequest
in class org.apache.hadoop.yarn.api.records.PreemptionContract
public void setResourceRequest(List<org.apache.hadoop.yarn.api.records.PreemptionResourceRequest> req)
setResourceRequest
in class org.apache.hadoop.yarn.api.records.PreemptionContract
Copyright © 2008–2022 Apache Software Foundation. All rights reserved.