deduct unallocated resources from the node . this is used when allocating a container . concode_field_sep ResourceUtilization nodeUtilization concode_elem_sep RMNode rmNode concode_elem_sep String nodeName concode_elem_sep Resource allocatedResource concode_elem_sep RMContainer reservedContainer concode_elem_sep Set<String> labels concode_elem_sep Map<ContainerId,RMContainer> launchedContainers concode_elem_sep Resource unallocatedResource concode_elem_sep ResourceUtilization containersUtilization concode_elem_sep Log LOG concode_elem_sep Resource totalResource concode_elem_sep int numContainers concode_field_sep ResourceUtilization getNodeUtilization concode_elem_sep boolean isValidContainer concode_elem_sep NodeId getNodeID concode_elem_sep void addUnallocatedResource concode_elem_sep void changeContainerResource concode_elem_sep String getHttpAddress concode_elem_sep void setReservedContainer concode_elem_sep Resource getAllocatedResource concode_elem_sep Set<String> getLabels concode_elem_sep String getPartition concode_elem_sep RMContainer getReservedContainer concode_elem_sep void updateResourceForReleasedContainer concode_elem_sep ResourceUtilization getAggregatedContainersUtilization concode_elem_sep void updateLabels concode_elem_sep List<RMContainer> getCopiedListOfRunningContainers concode_elem_sep void unreserveResource concode_elem_sep void setNodeUtilization concode_elem_sep void recoverContainer concode_elem_sep Resource getTotalResource concode_elem_sep String getNodeName concode_elem_sep void decreaseContainer concode_elem_sep String getRackName concode_elem_sep void allocateContainer concode_elem_sep Resource getUnallocatedResource concode_elem_sep RMNode getRMNode concode_elem_sep void updateTotalResource concode_elem_sep void reserveResource concode_elem_sep int getNumContainers concode_elem_sep void setAggregatedContainersUtilization concode_elem_sep String toString concode_elem_sep void releaseContainer concode_elem_sep void increaseContainer
void function ( Resource arg0 ) { if ( arg0 == null ) { LOG . error ( "srini_string" + rmNode . getNodeAddress ( ) ) ; return ; } Resources . subtractFrom ( unallocatedResource , arg0 ) ; Resources . addTo ( allocatedResource , arg0 ) ; }