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

java.lang.Object
  extended by org.apache.hadoop.yarn.api.records.Resource
      extended by org.apache.hadoop.yarn.api.records.impl.pb.ResourcePBImpl
All Implemented Interfaces:
Comparable<org.apache.hadoop.yarn.api.records.Resource>

@InterfaceAudience.Private
@InterfaceStability.Unstable
public class ResourcePBImpl
extends org.apache.hadoop.yarn.api.records.Resource


Constructor Summary
ResourcePBImpl()
           
ResourcePBImpl(org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto proto)
           
 
Method Summary
 int compareTo(org.apache.hadoop.yarn.api.records.Resource other)
           
 int getMemory()
           
 org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto getProto()
           
 int getVirtualCores()
           
 void setMemory(int memory)
           
 void setVirtualCores(int vCores)
           
 
Methods inherited from class org.apache.hadoop.yarn.api.records.Resource
equals, hashCode, newInstance, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ResourcePBImpl

public ResourcePBImpl()

ResourcePBImpl

public ResourcePBImpl(org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto proto)
Method Detail

getProto

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

getMemory

public int getMemory()
Specified by:
getMemory in class org.apache.hadoop.yarn.api.records.Resource

setMemory

public void setMemory(int memory)
Specified by:
setMemory in class org.apache.hadoop.yarn.api.records.Resource

getVirtualCores

public int getVirtualCores()
Specified by:
getVirtualCores in class org.apache.hadoop.yarn.api.records.Resource

setVirtualCores

public void setVirtualCores(int vCores)
Specified by:
setVirtualCores in class org.apache.hadoop.yarn.api.records.Resource

compareTo

public int compareTo(org.apache.hadoop.yarn.api.records.Resource other)


Copyright © 2014 Apache Software Foundation. All Rights Reserved.