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
ConstructorsConstructorDescriptionRestartParentResourceWriteAttributeHandler(ResourceServiceConfiguratorFactory parentFactory, WriteAttributeStepHandlerDescriptor descriptor) -
Method Summary
Modifier and TypeMethodDescriptionprotected 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, recreateParentService, removeServices, revertUpdateToRuntimeMethods inherited from class org.jboss.as.controller.AbstractWriteAttributeHandler
execute, finishModelStage, getAttributeDefinition, recordCapabilitiesAndRequirements, requiresRuntime, validateUpdatedModel
-
Constructor Details
-
RestartParentResourceWriteAttributeHandler
public RestartParentResourceWriteAttributeHandler(ResourceServiceConfiguratorFactory parentFactory, WriteAttributeStepHandlerDescriptor descriptor)
-
-
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:
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:ManagementRegistrarRegisters this object with a resource.- Specified by:
registerin interfaceManagementRegistrar<org.jboss.as.controller.registry.ManagementResourceRegistration>- Parameters:
registration- a registration for a management resource
-