org.apache.hadoop.yarn.api.records.impl.pb
Class PreemptionContractPBImpl

java.lang.Object
  extended by org.apache.hadoop.yarn.api.records.PreemptionContract
      extended by org.apache.hadoop.yarn.api.records.impl.pb.PreemptionContractPBImpl

@InterfaceAudience.Private
@InterfaceStability.Unstable
public class PreemptionContractPBImpl
extends org.apache.hadoop.yarn.api.records.PreemptionContract


Constructor Summary
PreemptionContractPBImpl()
           
PreemptionContractPBImpl(org.apache.hadoop.yarn.proto.YarnProtos.PreemptionContractProto proto)
           
 
Method Summary
 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()
           
 
Methods inherited from class org.apache.hadoop.yarn.api.records.PreemptionContract
newInstance
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PreemptionContractPBImpl

public PreemptionContractPBImpl()

PreemptionContractPBImpl

public PreemptionContractPBImpl(org.apache.hadoop.yarn.proto.YarnProtos.PreemptionContractProto proto)
Method Detail

getProto

public org.apache.hadoop.yarn.proto.YarnProtos.PreemptionContractProto getProto()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object other)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object

getContainers

public Set<org.apache.hadoop.yarn.api.records.PreemptionContainer> getContainers()
Specified by:
getContainers in class org.apache.hadoop.yarn.api.records.PreemptionContract

setContainers

public void setContainers(Set<org.apache.hadoop.yarn.api.records.PreemptionContainer> containers)
Specified by:
setContainers in class org.apache.hadoop.yarn.api.records.PreemptionContract

getResourceRequest

public List<org.apache.hadoop.yarn.api.records.PreemptionResourceRequest> getResourceRequest()
Specified by:
getResourceRequest in class org.apache.hadoop.yarn.api.records.PreemptionContract

setResourceRequest

public void setResourceRequest(List<org.apache.hadoop.yarn.api.records.PreemptionResourceRequest> req)
Specified by:
setResourceRequest in class org.apache.hadoop.yarn.api.records.PreemptionContract


Copyright © 2014 Apache Software Foundation. All Rights Reserved.