Class RestartParentResourceWriteAttributeHandler

java.lang.Object
org.jboss.as.controller.AbstractWriteAttributeHandler<org.jboss.dmr.ModelNode>
org.jboss.as.controller.RestartParentWriteAttributeHandler
org.jboss.as.clustering.controller.RestartParentResourceWriteAttributeHandler
All Implemented Interfaces:
ManagementRegistrar<org.jboss.as.controller.registry.ManagementResourceRegistration>, org.jboss.as.controller.OperationStepHandler

public class RestartParentResourceWriteAttributeHandler extends org.jboss.as.controller.RestartParentWriteAttributeHandler implements ManagementRegistrar<org.jboss.as.controller.registry.ManagementResourceRegistration>
RestartParentWriteAttributeHandler that leverages a ResourceServiceBuilderFactory for service recreation.
Author:
Paul Ferraro
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.jboss.as.controller.AbstractWriteAttributeHandler

    org.jboss.as.controller.AbstractWriteAttributeHandler.HandbackHolder<T extends Object>
  • Constructor Summary

    Constructors
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.jboss.as.controller.PathAddress
    getParentAddress(org.jboss.as.controller.PathAddress address)
     
    protected org.jboss.msc.service.ServiceName
    getParentServiceName(org.jboss.as.controller.PathAddress parentAddress)
     
    protected void
    recreateParentService(org.jboss.as.controller.OperationContext context, org.jboss.as.controller.PathAddress parentAddress, org.jboss.dmr.ModelNode parentModel)
     
    void
    register(org.jboss.as.controller.registry.ManagementResourceRegistration registration)
    Registers this object with a resource.

    Methods inherited from class org.jboss.as.controller.RestartParentWriteAttributeHandler

    applyUpdateToRuntime, isResourceServiceRestartAllowed, recreateParentService, removeServices, revertUpdateToRuntime

    Methods inherited from class org.jboss.as.controller.AbstractWriteAttributeHandler

    execute, finishModelStage, getAttributeDefinition, recordCapabilitiesAndRequirements, requiresRuntime, validateUpdatedModel

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • recreateParentService

      protected void recreateParentService(org.jboss.as.controller.OperationContext context, org.jboss.as.controller.PathAddress parentAddress, org.jboss.dmr.ModelNode parentModel) throws org.jboss.as.controller.OperationFailedException
      Overrides:
      recreateParentService in class org.jboss.as.controller.RestartParentWriteAttributeHandler
      Throws:
      org.jboss.as.controller.OperationFailedException
    • getParentServiceName

      protected org.jboss.msc.service.ServiceName getParentServiceName(org.jboss.as.controller.PathAddress parentAddress)
      Specified by:
      getParentServiceName in class org.jboss.as.controller.RestartParentWriteAttributeHandler
    • getParentAddress

      protected org.jboss.as.controller.PathAddress getParentAddress(org.jboss.as.controller.PathAddress address)
      Overrides:
      getParentAddress in class org.jboss.as.controller.RestartParentWriteAttributeHandler
    • register

      public void register(org.jboss.as.controller.registry.ManagementResourceRegistration registration)
      Description copied from interface: ManagementRegistrar
      Registers this object with a resource.
      Specified by:
      register in interface ManagementRegistrar<org.jboss.as.controller.registry.ManagementResourceRegistration>
      Parameters:
      registration - a registration for a management resource