public class RestartParentResourceWriteAttributeHandler extends org.jboss.as.controller.RestartParentWriteAttributeHandler implements Registration<org.jboss.as.controller.registry.ManagementResourceRegistration>
RestartParentWriteAttributeHandler that leverages a ResourceServiceBuilderFactory for service recreation.| Constructor and Description |
|---|
RestartParentResourceWriteAttributeHandler(ResourceServiceConfiguratorFactory parentFactory,
WriteAttributeStepHandlerDescriptor descriptor) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
finishModelStage(org.jboss.as.controller.OperationContext context,
org.jboss.dmr.ModelNode operation,
String attributeName,
org.jboss.dmr.ModelNode newValue,
org.jboss.dmr.ModelNode oldValue,
org.jboss.as.controller.registry.Resource model) |
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.
|
applyUpdateToRuntime, isResourceServiceRestartAllowed, removeServices, revertUpdateToRuntimepublic RestartParentResourceWriteAttributeHandler(ResourceServiceConfiguratorFactory parentFactory, WriteAttributeStepHandlerDescriptor descriptor)
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
recreateParentService in class org.jboss.as.controller.RestartParentWriteAttributeHandlerorg.jboss.as.controller.OperationFailedExceptionprotected org.jboss.msc.service.ServiceName getParentServiceName(org.jboss.as.controller.PathAddress parentAddress)
getParentServiceName in class org.jboss.as.controller.RestartParentWriteAttributeHandlerprotected org.jboss.as.controller.PathAddress getParentAddress(org.jboss.as.controller.PathAddress address)
getParentAddress in class org.jboss.as.controller.RestartParentWriteAttributeHandlerpublic void register(org.jboss.as.controller.registry.ManagementResourceRegistration registration)
Registrationregister in interface Registration<org.jboss.as.controller.registry.ManagementResourceRegistration>registration - a registration for a management resourceprotected void finishModelStage(org.jboss.as.controller.OperationContext context,
org.jboss.dmr.ModelNode operation,
String attributeName,
org.jboss.dmr.ModelNode newValue,
org.jboss.dmr.ModelNode oldValue,
org.jboss.as.controller.registry.Resource model)
throws org.jboss.as.controller.OperationFailedException
finishModelStage in class org.jboss.as.controller.AbstractWriteAttributeHandler<org.jboss.dmr.ModelNode>org.jboss.as.controller.OperationFailedExceptionCopyright © 2020 JBoss by Red Hat. All rights reserved.