Package org.jboss.as.controller
Class RestartParentResourceRemoveHandler
- java.lang.Object
-
- org.jboss.as.controller.RestartParentResourceHandlerBase
-
- org.jboss.as.controller.RestartParentResourceRemoveHandler
-
- All Implemented Interfaces:
OperationStepHandler
public abstract class RestartParentResourceRemoveHandler extends RestartParentResourceHandlerBase
Simple remove handler that, if allowed, restarts a parent resource when a child is removed. Otherwise the server is put into a forced reload.- Author:
- Jason T. Greene
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
RestartParentResourceRemoveHandler(String parentKeyName)
protected
RestartParentResourceRemoveHandler(String parentKeyName, RuntimeCapability... capabilities)
Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
recordCapabilitiesAndRequirements(OperationContext context, org.jboss.dmr.ModelNode operation, Resource resource)
protected void
updateModel(OperationContext context, org.jboss.dmr.ModelNode operation)
Performs the update to the persistent configuration model.-
Methods inherited from class org.jboss.as.controller.RestartParentResourceHandlerBase
execute, getParentAddress, getParentServiceName, isResourceServiceRestartAllowed, recreateParentService, recreateParentService, removeServices, requiresRuntime, rollbackRuntime
-
-
-
-
Constructor Detail
-
RestartParentResourceRemoveHandler
protected RestartParentResourceRemoveHandler(String parentKeyName)
-
RestartParentResourceRemoveHandler
@Deprecated(forRemoval=true) protected RestartParentResourceRemoveHandler(String parentKeyName, RuntimeCapability... capabilities)
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Detail
-
updateModel
protected void updateModel(OperationContext context, org.jboss.dmr.ModelNode operation) throws OperationFailedException
Performs the update to the persistent configuration model. This default implementation simply removes the targeted resource.- Specified by:
updateModel
in classRestartParentResourceHandlerBase
- Parameters:
context
- the operation contextoperation
- the operation- Throws:
OperationFailedException
- if there is a problem updating the model
-
recordCapabilitiesAndRequirements
protected void recordCapabilitiesAndRequirements(OperationContext context, org.jboss.dmr.ModelNode operation, Resource resource) throws OperationFailedException
- Throws:
OperationFailedException
-
-