@Override public String[] apply(PathAddress address) { return new String[] { address.getParent().getParent().getLastElement().getValue(), address.getLastElement().getValue() }; } },
private static Resource safeGetResource(OperationContext context, PathElement path) { try { return context.readResourceFromRoot(PathAddress.pathAddress(path), false); } catch (RuntimeException e) { // No such resource return null; } } }
@Override public String[] apply(PathAddress address) { return new String[] { address.getLastElement().getValue() }; } },
@Override public PathAddress convertToTargetAddress(PathAddress aliasAddress, AliasContext aliasContext) { PathElement pe = aliasAddress.getLastElement(); return aliasAddress.getParent().append(PathElement.pathElement(targetPe.getKey(), pe.getValue())); } };
@Override public PathAddress convertToTargetAddress(PathAddress address, AliasContext aliasContext) { PathElement element = address.getLastElement(); element = PathElement.pathElement(Constants.ACL_MODULE, element.getValue()); return address.subAddress(0, address.size() -1).append(element); } });
@Override protected void validateUpdatedModel(OperationContext context, Resource model) throws OperationFailedException { super.validateUpdatedModel(context, model); context.addStep(JdbcStoreValidationStep.INSTANCE, OperationContext.Stage.MODEL); } }
@Override protected void populateModel(final OperationContext context, final ModelNode operation, final Resource resource) throws OperationFailedException { // Add a new step to validate the core-threads, max-threads and queue-length values context.addStep(ExecutorQueueValidationStepHandler.MODEL_VALIDATION_INSTANCE, OperationContext.Stage.MODEL); super.populateModel(context, operation, resource); }
@Override protected boolean requiresRuntime(OperationContext context) { return context.getProcessType().isServer(); } }
private IdentityResourceDefinition(Parameters parameters, AbstractAddStepHandler add) { super(parameters .setAddHandler(add) .setRemoveHandler(new ReloadRequiredRemoveStepHandler(IDENTITY_RUNTIME_CAPABILITY)) .setRemoveRestartLevel(OperationEntry.Flag.RESTART_ALL_SERVICES)); }
@Override protected void removeServices(OperationContext context, ServiceName parentService, ModelNode parentModel) throws OperationFailedException { super.removeServices(context, parentService, parentModel); context.removeService(AbstractPersistentSessionManager.SERVICE_NAME); }
@Override protected void populateModel(ModelNode operation, ModelNode model) throws OperationFailedException { CODE.validateAndSet(operation, model); OPTIONS.validateAndSet(operation, model); }
@Override protected void recordCapabilitiesAndRequirements(OperationContext context, ModelNode operation, Resource resource) throws OperationFailedException { super.recordCapabilitiesAndRequirements(context, operation, resource); // TODO: delete these once optional requirements no longer require the existence of a capability context.registerCapability(CLUSTERED_SINGLETON_CAPABILITY); context.registerCapability(EJB_CLIENT_CONFIGURATOR); context.registerCapability(EJB_CAPABILITY); }
@Override public String[] apply(PathAddress address) { PathAddress parent = address.getParent(); return new String[] { parent.getParent().getLastElement().getValue(), parent.getLastElement().getValue() }; } },
private static Resource safeGetResource(OperationContext context, PathElement path) { try { return context.readResourceFromRoot(PathAddress.pathAddress(path), false); } catch (RuntimeException e) { // No such resource return null; } } }
@Override protected void validateUpdatedModel(final OperationContext context, final Resource model) throws OperationFailedException { context.addStep(ExecutorQueueValidationStepHandler.MODEL_VALIDATION_INSTANCE, OperationContext.Stage.MODEL); super.validateUpdatedModel(context, model); } }
@Override protected boolean requiresRuntime(OperationContext context) { return context.getProcessType().isServer(); } }
@Override public String[] apply(PathAddress address) { return new String[] { address.getParent().getLastElement().getValue(), address.getLastElement().getValue() }; } },
@Override protected void validateUpdatedModel(OperationContext context, Resource model) throws OperationFailedException { super.validateUpdatedModel(context, model); context.addStep(VALIDATE_RESOURCE_MODEL_OPERATION_STEP_HANDLER, OperationContext.Stage.MODEL); } }
@Override public String[] apply(PathAddress address) { return new String[] { address.getParent().getLastElement().getValue() }; } },
@Override public String[] apply(PathAddress address) { return new String[] { address.getParent().getParent().getLastElement().getValue() }; } },