[jboss-jira] [JBoss JIRA] (AS7-4059) Allow RestartParentXXXHandlers to handle resources with multiple services
Richard Achmatowicz (JIRA)
jira-events at lists.jboss.org
Mon Mar 26 13:37:47 EDT 2012
[ https://issues.jboss.org/browse/AS7-4059?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12679409#comment-12679409 ]
Richard Achmatowicz commented on AS7-4059:
------------------------------------------
Could use it now given that I have refactored JGroups and Infinispan providing methods
{noformat}
installRuntimeServices(OperationContext context, ModelNode operation, ModelNode model, ServiceVerificationHandler verificationHandler)
removeRuntimeServices(OperationContext context, ModelNode operation, ModelNode model)
{noformat}
which make it easy to stop and start services.
In my case, obraining the list of services of the parent still relies on obtaining the parent's model and doing some simple but non-trivial calculations (e.g. find the service name of a JNDI binding). But this can be done from getParentServiceNames() by using the addresws to navigate to the parent model.
> Allow RestartParentXXXHandlers to handle resources with multiple services
> -------------------------------------------------------------------------
>
> Key: AS7-4059
> URL: https://issues.jboss.org/browse/AS7-4059
> Project: Application Server 7
> Issue Type: Feature Request
> Components: Domain Management
> Affects Versions: 7.1.0.Final
> Reporter: Richard Achmatowicz
> Assignee: Jason Greene
> Priority: Minor
>
> I'd like to use RestartParentWriteAttributeHandler to allow handling of attributes which, when updated, case a restart of only the services installed by their parent resource. These are really useful classes and solve a commonly encountered problem.
> However, the resource I want to restart involves four services, and it appears that RestartParentWriteAttriubuteHandler assumes that for every parent key name, there is only a single service registered.
> If we had the private methods:
> ServiceName[] getParentServiceNames(PathAddress address)
> boolean areParentServicesInstalled(ServiceName[] names)
> void removeServices(OperationContext context, ServiceNames[] names, ModelNode parentModel)
> this could be made to work for more general resources.
>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list