public abstract class RestartParentResourceAddHandler extends RestartParentResourceHandlerBase
| Modifier and Type | Field and Description |
|---|---|
protected Collection<? extends AttributeDefinition> |
attributes |
protected Set<RuntimeCapability> |
capabilities |
| Modifier | Constructor and Description |
|---|---|
protected |
RestartParentResourceAddHandler(String parentKeyName) |
protected |
RestartParentResourceAddHandler(String parentKeyName,
RuntimeCapability... capabilities) |
|
RestartParentResourceAddHandler(String parentKeyName,
Set<RuntimeCapability> capabilities,
Collection<? extends AttributeDefinition> attributes) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
populateModel(org.jboss.dmr.ModelNode operation,
org.jboss.dmr.ModelNode model)
Populate the given node in the persistent configuration model based on the values in the given operation.
|
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.
|
execute, getParentAddress, getParentServiceName, isResourceServiceRestartAllowed, recreateParentService, removeServices, requiresRuntimeprotected final Set<RuntimeCapability> capabilities
protected final Collection<? extends AttributeDefinition> attributes
protected RestartParentResourceAddHandler(String parentKeyName)
protected RestartParentResourceAddHandler(String parentKeyName, RuntimeCapability... capabilities)
public RestartParentResourceAddHandler(String parentKeyName, Set<RuntimeCapability> capabilities, Collection<? extends AttributeDefinition> attributes)
protected void updateModel(OperationContext context, org.jboss.dmr.ModelNode operation) throws OperationFailedException
RestartParentResourceHandlerBaseupdateModel in class RestartParentResourceHandlerBasecontext - the operation contextoperation - the operationOperationFailedException - if there is a problem updating the modelprotected void recordCapabilitiesAndRequirements(OperationContext context, org.jboss.dmr.ModelNode operation, Resource resource) throws OperationFailedException
OperationFailedExceptionprotected abstract void populateModel(org.jboss.dmr.ModelNode operation,
org.jboss.dmr.ModelNode model)
throws OperationFailedException
operation - the operationmodel - persistent configuration model node that corresponds to the address of operationOperationFailedException - if operation is invalid or populating the model otherwise failsCopyright © 2018 JBoss by Red Hat. All rights reserved.