Add ServiceOperations class to aid working with Services
--------------------------------------------------------
Key: MAPREDUCE-3970
URL: https://issues.apache.org/jira/browse/MAPREDUCE-3970
Project: Hadoop Map/Reduce
Issue Type: Sub-task
Components: mrv2
Affects Versions: 0.23.1, 0.24.0
Reporter: Steve Loughran
Assignee: Steve Loughran
Add Helper methods to move things through lifecycles. init->start is common,
stop-if-service!=null another. Some static methods can execute these, and even
call stop() if init() raises an exception. These could go into a class
ServiceOps in the same package. These can be used by those services that wrap
other services, and help manage more robust shutdowns.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira