Package org.jboss.as.controller
Class RestartParentResourceRemoveHandler
java.lang.Object
org.jboss.as.controller.RestartParentResourceHandlerBase
org.jboss.as.controller.RestartParentResourceRemoveHandler
- All Implemented Interfaces:
OperationStepHandler
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
ConstructorsModifierConstructorDescriptionprotectedRestartParentResourceRemoveHandler(String parentKeyName) protectedRestartParentResourceRemoveHandler(String parentKeyName, RuntimeCapability... capabilities) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidrecordCapabilitiesAndRequirements(OperationContext context, org.jboss.dmr.ModelNode operation, Resource resource) protected voidupdateModel(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 Details
-
RestartParentResourceRemoveHandler
-
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 Details
-
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:
updateModelin 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
-