[ https://issues.apache.org/jira/browse/WHIRR-221?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13140491#comment-13140491 ]
Andrei Savu commented on WHIRR-221: ----------------------------------- How about having an annotation on the role action handler methods? {code} @RunBefore(roles = {"hbase-master", "hadoop-namenode", "my-custom-app"}) @Override protected void beforeConfigure(ClusterActionEvent event) throws IOException { .... } {code} and some extra methods like before/afterStart, before/afterStop, before/afterCleanup? (I will open another JIRA) > Optionally control the order of starting services > ------------------------------------------------- > > Key: WHIRR-221 > URL: https://issues.apache.org/jira/browse/WHIRR-221 > Project: Whirr > Issue Type: New Feature > Components: core, documentation > Reporter: Andrei Savu > Assignee: Andrei Savu > Priority: Critical > Attachments: WHIRR-221-v1.patch, WHIRR-221-v3.patch, WHIRR-221.patch > > > As Lars sugested in WHIRR-170: > The user should "be able to optionally control the order (services start). > This could be role based and specified like so > {code} > whirr.role-order=zk,nn+jt,dn+tt,hbase-master,hbase-regionserver > {code} > If not specified the system should make any effort to start the services as > quickly as possible, for example in multiple threads. In other words, when > the role-order is not given no guarantee about order can be given." -- 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