public class ServiceRemoveStepHandler extends AbstractRemoveStepHandler
AbstractAddStepHandler.performRuntime(OperationContext, org.jboss.dmr.ModelNode, org.jboss.dmr.ModelNode)
method.| Constructor and Description |
|---|
ServiceRemoveStepHandler(AbstractAddStepHandler addOperation)
Creates a
ServiceRemoveStepHandler. |
ServiceRemoveStepHandler(AbstractAddStepHandler addOperation,
RuntimeCapability... unavailableCapabilities)
Deprecated.
|
ServiceRemoveStepHandler(org.jboss.msc.service.ServiceName baseServiceName,
AbstractAddStepHandler addOperation)
Creates a
ServiceRemoveStepHandler. |
ServiceRemoveStepHandler(org.jboss.msc.service.ServiceName baseServiceName,
AbstractAddStepHandler addOperation,
RuntimeCapability... unavailableCapabilities)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
performRuntime(OperationContext context,
org.jboss.dmr.ModelNode operation,
org.jboss.dmr.ModelNode model)
If the
context allows resource removal,
removes services; otherwise puts the process in reload-required state. |
protected void |
recoverServices(OperationContext context,
org.jboss.dmr.ModelNode operation,
org.jboss.dmr.ModelNode model)
If the
context allows resource removal,
attempts to restore services by invoking the performRuntime method on the @{code addOperation}
handler passed to the constructor; otherwise puts the process in reload-required state. |
protected boolean |
requiresRuntime(OperationContext context)
Is a runtime step required? By default his method delegates to the supplied
AbstractAddStepHandler, if
the add handler required a runtime step then most likely the remove step handler will also require one. |
protected org.jboss.msc.service.ServiceName |
serviceName(String name)
The service name to be removed.
|
protected org.jboss.msc.service.ServiceName |
serviceName(String name,
PathAddress address)
The service name to be removed.
|
execute, performRemove, recordCapabilitiesAndRequirements, removeChildRecursively, requireNoChildResources@Deprecated public ServiceRemoveStepHandler(org.jboss.msc.service.ServiceName baseServiceName, AbstractAddStepHandler addOperation, RuntimeCapability... unavailableCapabilities)
ServiceRemoveStepHandler.baseServiceName - base name to remove. Cannot be null unless unavailableCapabilities are providedaddOperation - the add operation to use to rollback service removal. Cannot be nullunavailableCapabilities - capabilities that will no longer be available once the remove occurs. Any services
exposed by the capabilities will also be removedpublic ServiceRemoveStepHandler(org.jboss.msc.service.ServiceName baseServiceName,
AbstractAddStepHandler addOperation)
ServiceRemoveStepHandler.baseServiceName - base name to remove. Cannot be nulladdOperation - the add operation to use to rollback service removal. Cannot be null@Deprecated public ServiceRemoveStepHandler(AbstractAddStepHandler addOperation, RuntimeCapability... unavailableCapabilities)
ServiceRemoveStepHandler.addOperation - the add operation to use to rollback service removal. Cannot be nullunavailableCapabilities - capabilities that will no longer be available once the remove occurs. Any services
exposed by the capabilities will also be removed.
Cannot be null or empty.public ServiceRemoveStepHandler(AbstractAddStepHandler addOperation)
ServiceRemoveStepHandler.addOperation - the add operation to use to rollback service removal. Cannot be nullprotected void performRuntime(OperationContext context, org.jboss.dmr.ModelNode operation, org.jboss.dmr.ModelNode model)
context allows resource removal,
removes services; otherwise puts the process in reload-required state. The following services are
removed:
serviceName(String, PathAddress), if there is oneunavailableCapabilities
passed to the constructor.performRuntime in class AbstractRemoveStepHandlerprotected boolean requiresRuntime(OperationContext context)
AbstractAddStepHandler, if
the add handler required a runtime step then most likely the remove step handler will also require one.requiresRuntime in class AbstractRemoveStepHandlerAbstractRemoveStepHandler.requiresRuntime(org.jboss.as.controller.OperationContext)protected org.jboss.msc.service.ServiceName serviceName(String name, PathAddress address)
name - The name of the resource being removedaddress - The address of the resource being removednull if only removal based on unavailableCapabilities
passed to the constructor are to be performedprotected org.jboss.msc.service.ServiceName serviceName(String name)
name - The name of the resource being removednull if only removal based on unavailableCapabilities
passed to the constructor are to be performedprotected void recoverServices(OperationContext context, org.jboss.dmr.ModelNode operation, org.jboss.dmr.ModelNode model) throws OperationFailedException
context allows resource removal,
attempts to restore services by invoking the performRuntime method on the @{code addOperation}
handler passed to the constructor; otherwise puts the process in reload-required state.
recoverServices in class AbstractRemoveStepHandlerOperationFailedExceptionCopyright © 2022 JBoss by Red Hat. All rights reserved.