YARN-117 service model
Tests for the service lifecycle adapted to handle the new ServiceStateException & the more rigorous state model.
FilterService moves to new model by relaying some more methods
CompositeService and associated test
remaining Service implementations in yarn-common
StopQuietly adds an override that logs it; uses this in the init() & start() entries to ensure that services that don't impl AbstractService still fail well
Add the {{Block}} class -and about to remove it-
add block notion to services
bringing hadoop-yarn-service and hadoop-mapreduce into the lifecycle (main classes first, not tests). Doing the least amount of changes
1. new entry points
2. fix up super calls to -> inner() methods.
3. review innerStop() code for best-effort shutdown irrespective of state
fix up all subclasses of AbstractService to compile with the new innerXYX throws Exception() calls.
Some review of innerStop() methods to make more robust against null values -but not a complete review
HADOOP-9447 Configuration to include name of failing file/resource when wrapping an XML parser exception
AMRMClient adopts new lifecycle methods
Service name passed to ServiceStateModel, and then used in exceptions
start/stop/init operations made non-final again, just so mockito would have less problems. Services are still meant to not subclass them
stop() operations do now raise exceptions -as the original one did
For composite services, the first exception is thrown -after all child services are stopped
regression: AMService had lost the innerStart/innerStop forwarding. Sign of reviews needed
Make ResourceManager stop() best effort
regression: ResourceLocalizationService wasn't relaying up
miniYarnCluster identifies directory that couldn't be cleaned up
MiniYARNCluster uses innerStart()