Description
We have made some cosmetic changes to SchedulerNode recently. While working on YARN-4511, realized we could improve it a little more:
- Remove volatile variables - don't see the need for them being volatile
- Some methods end up doing very similar things, so consolidating them
- Renaming totalResource to capacity.
YARN-4511plans to add inflatedCapacity to include the un-utilized resources, and having two totals can be a little confusing.