public class ServiceRemoveStepHandler extends AbstractRemoveStepHandler
AbstractAddStepHandler.performRuntime(OperationContext, org.jboss.dmr.ModelNode, org.jboss.dmr.ModelNode)
method.Modifier | Constructor and Description |
---|---|
protected |
ServiceRemoveStepHandler(AbstractAddStepHandler addOperation) |
|
ServiceRemoveStepHandler(AbstractAddStepHandler addOperation,
RuntimeCapability... unavailableCapabilities)
Creates a
ServiceRemoveStepHandler . |
|
ServiceRemoveStepHandler(org.jboss.msc.service.ServiceName baseServiceName,
AbstractAddStepHandler addOperation)
Creates a
ServiceRemoveStepHandler . |
|
ServiceRemoveStepHandler(org.jboss.msc.service.ServiceName baseServiceName,
AbstractAddStepHandler addOperation,
RuntimeCapability... unavailableCapabilities)
Creates a
ServiceRemoveStepHandler . |
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
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 null
unavailableCapabilities
- 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 null
addOperation
- the add operation to use to rollback service removal. Cannot be null
public ServiceRemoveStepHandler(AbstractAddStepHandler addOperation, RuntimeCapability... unavailableCapabilities)
ServiceRemoveStepHandler
.addOperation
- the add operation to use to rollback service removal. Cannot be null
unavailableCapabilities
- 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.protected ServiceRemoveStepHandler(AbstractAddStepHandler addOperation)
protected 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 AbstractRemoveStepHandler
protected 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 AbstractRemoveStepHandler
AbstractRemoveStepHandler.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 AbstractRemoveStepHandler
OperationFailedException
Copyright © 2023 JBoss by Red Hat. All rights reserved.