How do you differentiate which interface method to call? in what situation we 
should update just one config object and in what situation we should go through 
all of them? I think this is determined by the nature of the command itself. 
Like "create aeq" needs to operate on only one group, while "delete aeq" needs 
to go through all groups and find the right one to delete. 

So the command needs to somehow indicate what kind of operation this is. We had 
suggested using a marker interface. If a command doesn't have that marker 
interface, then it's just doing what it is now, otherwise, the command executor 
will get all the configs and call the updateConfig method with each group's 
config. The interface of SingleGfshCommand doesn't need to change.

[ Full content available at: https://github.com/apache/geode/pull/2854 ]
This message was relayed via gitbox.apache.org for 
[email protected]

Reply via email to