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:
Registration<org.jboss.as.controller.registry.ManagementResourceRegistration>,org.jboss.as.controller.OperationStepHandler
public class RestartParentResourceWriteAttributeHandler extends org.jboss.as.controller.RestartParentWriteAttributeHandler implements Registration<org.jboss.as.controller.registry.ManagementResourceRegistration>
RestartParentWriteAttributeHandlerthat leverages aResourceServiceBuilderFactoryfor 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 Constructor Description RestartParentResourceWriteAttributeHandler(ResourceServiceConfiguratorFactory parentFactory, WriteAttributeStepHandlerDescriptor descriptor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.jboss.as.controller.PathAddressgetParentAddress(org.jboss.as.controller.PathAddress address)protected org.jboss.msc.service.ServiceNamegetParentServiceName(org.jboss.as.controller.PathAddress parentAddress)protected voidrecreateParentService(org.jboss.as.controller.OperationContext context, org.jboss.as.controller.PathAddress parentAddress, org.jboss.dmr.ModelNode parentModel)voidregister(org.jboss.as.controller.registry.ManagementResourceRegistration registration)Registers this object with a resource.-
Methods inherited from class org.jboss.as.controller.RestartParentWriteAttributeHandler
applyUpdateToRuntime, isResourceServiceRestartAllowed, removeServices, revertUpdateToRuntime
-
-
-
-
Constructor Detail
-
RestartParentResourceWriteAttributeHandler
public RestartParentResourceWriteAttributeHandler(ResourceServiceConfiguratorFactory parentFactory, WriteAttributeStepHandlerDescriptor descriptor)
-
-
Method Detail
-
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:
recreateParentServicein classorg.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:
getParentServiceNamein classorg.jboss.as.controller.RestartParentWriteAttributeHandler
-
getParentAddress
protected org.jboss.as.controller.PathAddress getParentAddress(org.jboss.as.controller.PathAddress address)
- Overrides:
getParentAddressin classorg.jboss.as.controller.RestartParentWriteAttributeHandler
-
register
public void register(org.jboss.as.controller.registry.ManagementResourceRegistration registration)
Description copied from interface:RegistrationRegisters this object with a resource.- Specified by:
registerin interfaceRegistration<org.jboss.as.controller.registry.ManagementResourceRegistration>- Parameters:
registration- a registration for a management resource
-
-