[ https://issues.apache.org/jira/browse/MAPREDUCE-3970?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Steve Loughran updated MAPREDUCE-3970: -------------------------------------- Attachment: MAPREDUCE-3970.patch * {{ServiceOperations}} class to start/stop services with preflight checking of initial state. This is how callers should start and stop services -including {{Service}} implementations that encapsulate other services. * Tests, including some more in {{TestServiceLifecycle}}. That test formalises the current behaviour of service operations (all subclass operations called first). > 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 > Attachments: MAPREDUCE-3970.patch > > > 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