|
From: Steve L. (JIRA) <ji...@sm...> - 2009-09-21 10:15:17
|
[ http://jira.smartfrog.org/jira/browse/SFOS-1288?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=11825#action_11825 ]
Steve Loughran commented on SFOS-1288:
--------------------------------------
1. the AbstractClusterFarmer component implements a stub of this method, so everything will build if the others subclass this.
2. There is a FarmSupportsRole component/condition that can be used to verify that a farm has a specific role -without ever creating an instance.
> Provide a way to list roles on a ClusterFarmer
> ----------------------------------------------
>
> Key: SFOS-1288
> URL: http://jira.smartfrog.org/jira/browse/SFOS-1288
> Project: SmartFrog
> Issue Type: Improvement
> Components: .sfCore, _service_ec2
> Reporter: Steve Loughran
> Assignee: Steve Loughran
> Fix For: 3.17.x
>
>
> Add a method to get a list of roles. This is for testing against infrastructure where it costs real $ to allocate machines; you don't want spend money just to see if you have a role or not.
> Two options
> hasRole(string role) -> boolean. Simple test, doesn't disclose the whole list. Chatty over a network
> listRoles() ->string[] . Lists all roles, lets you sort out the answers yourself. More data, but only one call needed
> I'm going for #2, with a warning in the javadocs that the list may change. The presence of a role does not mean that you can create it
> Adding tests in the mock farmer. This will break any other farmer implementations until they stub out the method,.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.smartfrog.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
|