[jboss-dev-forums] [JBoss AS7 Development] - Infinispan Subsystem Management API
Brian Stansberry
do-not-reply at jboss.com
Wed Nov 16 08:24:42 EST 2011
Brian Stansberry [http://community.jboss.org/people/brian.stansberry] commented on the document
"Infinispan Subsystem Management API"
To view all comments on this document, visit: http://community.jboss.org/docs/DOC-17351#comment-8204
--------------------------------------------------
On the multi-step approach, the CLI allows batching of commands, so the series of commands listed above could be executed as an atomic batch. (Internally, a single operation, named "composite" is sent, with a single parameter whose value is a DMR list, each element of which is the DMR for one of the steps.)
When an operation executes, it is done in stages -- first is a MODEL stage where updates are applied to the configuration model, then a RUNTIME stage, where updates are applied to runtime services. Finally a VERIFY stage where container services are known to be settled and assertions about their state can be done. With a composite operation, the MODEL stage for each step is done before the RUNTIME stage for the 1st step begins. The effect of this is the RUNTIME part of the 1st step can see the model changes made in the MODEL stage of all the steps.
The other thing that can be useful is having the OperationStepHandler for the 1st step's RUNTIME stage itself add another RUNTIME step. The RUNTIME step will be added at the end of the list of RUNTIME steps and will thus execute after all the step's RUNTIME stage. So, work done by those steps can be visible to this final step.
--------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20111116/3c41b3bb/attachment.html
More information about the jboss-dev-forums
mailing list