@Override protected void finishModelStage(final OperationContext context, final ModelNode operation, final String attributeName, final ModelNode newValue, ModelNode oldValue, Resource model) throws OperationFailedException { // Make sure that security=on becomes security=identity if (attributeName.equals(JacORBSubsystemConstants.ORB_INIT_SECURITY) && newValue.asString().equals(JacORBSubsystemConstants.ON)) { newValue.set(JacORBSubsystemConstants.IDENTITY); } super.finishModelStage(context, operation, attributeName, newValue, oldValue, model); } }
@Override protected void finishModelStage(OperationContext context, ModelNode operation, String attributeName, ModelNode newValue, ModelNode oldValue, Resource model) throws OperationFailedException { super.finishModelStage(context, operation, attributeName, newValue, oldValue, model); context.addResponseWarning(Level.WARNING, UndertowLogger.ROOT_LOGGER.workerValueInHTTPListenerMustMatchRemoting()); }
@Override protected void finishModelStage(final OperationContext context, final ModelNode operation, String attributeName, ModelNode newValue, ModelNode oldValue, final Resource model) throws OperationFailedException { super.finishModelStage(context, operation, attributeName, newValue, oldValue, model); assert !USE_JOURNAL_STORE.isAllowExpression() && !USE_JDBC_STORE.isAllowExpression() : "rework this before enabling expression"; if (attributeName.equals(USE_JOURNAL_STORE.getName()) || attributeName.equals(USE_JDBC_STORE.getName())) { if (newValue.isDefined() && newValue.asBoolean()) { // check the value of the mutual attribute and disable it if it is set to true final String mutualAttributeName = attributeName.equals(USE_JDBC_STORE.getName()) ? USE_JOURNAL_STORE.getName() : USE_JDBC_STORE.getName(); ModelNode resourceModel = model.getModel(); if (resourceModel.hasDefined(mutualAttributeName) && resourceModel.get(mutualAttributeName).asBoolean()) { resourceModel.get(mutualAttributeName).set(new ModelNode(false)); } } } context.addStep(JdbcStoreValidationStep.INSTANCE, OperationContext.Stage.MODEL); } }
@Override protected void finishModelStage(OperationContext context, ModelNode operation, String attributeName, ModelNode newValue, ModelNode oldValue, Resource model) throws OperationFailedException { super.finishModelStage(context, operation, attributeName, newValue, oldValue, model); if (!context.isBooting()) { TransformerOperationAttachment attachment = TransformerOperationAttachment.getOrCreate(context); InitialAttributeValueOperationContextAttachment valuesAttachment = attachment.getAttachment(InitialAttributeValueOperationContextAttachment.INITIAL_VALUES_ATTACHMENT); if (valuesAttachment == null) { valuesAttachment = new InitialAttributeValueOperationContextAttachment(); attachment.attach(InitialAttributeValueOperationContextAttachment.INITIAL_VALUES_ATTACHMENT, valuesAttachment); } valuesAttachment.putIfAbsentInitialValue(Operations.getPathAddress(operation), attributeName, oldValue); } }
@Override protected void finishModelStage(final OperationContext context, final ModelNode operation, final String attributeName, final ModelNode newValue, ModelNode oldValue, Resource model) throws OperationFailedException { // Make sure that security=on becomes security=identity if (attributeName.equals(JacORBSubsystemConstants.ORB_INIT_SECURITY) && newValue.asString().equals(JacORBSubsystemConstants.ON)) { newValue.set(JacORBSubsystemConstants.IDENTITY); } super.finishModelStage(context, operation, attributeName, newValue, oldValue, model); } }
@Override protected void finishModelStage(final OperationContext context,final ModelNode operation,final String attributeName,final ModelNode newValue, final ModelNode oldValue,final Resource model) throws OperationFailedException { if(attributeName.equals(BroadcastGroupDefinition.CONNECTOR_REFS.getName())){ BroadcastGroupDefinition.validateConnectors(context, operation, newValue); } super.finishModelStage(context, operation, attributeName, newValue, oldValue, model); }
@Override protected void finishModelStage(final OperationContext context,final ModelNode operation,final String attributeName,final ModelNode newValue, final ModelNode oldValue,final Resource model) throws OperationFailedException { if(attributeName.equals(BroadcastGroupDefinition.CONNECTOR_REFS.getName())){ BroadcastGroupDefinition.validateConnectors(context, operation, newValue); } super.finishModelStage(context, operation, attributeName, newValue, oldValue, model); }
@Override protected void finishModelStage(OperationContext context, ModelNode operation, String attributeName, ModelNode newValue, ModelNode oldValue, Resource model) throws OperationFailedException { super.finishModelStage(context, operation, attributeName, newValue, oldValue, model); context.addResponseWarning(Level.WARNING, RemotingLogger.ROOT_LOGGER.warningOnWorkerChange(newValue.asString())); } }
@Override protected void finishModelStage(OperationContext context, ModelNode operation, String attributeName, ModelNode newValue, ModelNode oldValue, Resource model) throws OperationFailedException { super.finishModelStage(context, operation, attributeName, newValue, oldValue, model); context.addResponseWarning(Level.WARNING, UndertowLogger.ROOT_LOGGER.workerValueInHTTPListenerMustMatchRemoting()); }
@Override protected void finishModelStage(OperationContext context, ModelNode operation, String attributeName, ModelNode newValue, ModelNode oldValue, Resource model) throws OperationFailedException { super.finishModelStage(context, operation, attributeName, newValue, oldValue, model); context.addResponseWarning(Level.WARNING, UndertowLogger.ROOT_LOGGER.workerValueInHTTPListenerMustMatchRemoting()); }
@Override protected void finishModelStage(final OperationContext context, final ModelNode operation, String attributeName, ModelNode newValue, ModelNode oldValue, final Resource model) throws OperationFailedException { super.finishModelStage(context, operation, attributeName, newValue, oldValue, model); assert !USE_JOURNAL_STORE.isAllowExpression() && !USE_JDBC_STORE.isAllowExpression() : "rework this before enabling expression"; if (attributeName.equals(USE_JOURNAL_STORE.getName()) || attributeName.equals(USE_JDBC_STORE.getName())) { if (newValue.isDefined() && newValue.asBoolean()) { // check the value of the mutual attribute and disable it if it is set to true final String mutualAttributeName = attributeName.equals(USE_JDBC_STORE.getName()) ? USE_JOURNAL_STORE.getName() : USE_JDBC_STORE.getName(); ModelNode resourceModel = model.getModel(); if (resourceModel.hasDefined(mutualAttributeName) && resourceModel.get(mutualAttributeName).asBoolean()) { resourceModel.get(mutualAttributeName).set(new ModelNode(false)); } } } context.addStep(JdbcStoreValidationStep.INSTANCE, OperationContext.Stage.MODEL); } }
@Override protected void finishModelStage(final OperationContext context, final ModelNode operation, String attributeName, ModelNode newValue, ModelNode oldValue, final Resource model) throws OperationFailedException { super.finishModelStage(context, operation, attributeName, newValue, oldValue, model); assert !USE_JOURNAL_STORE.isAllowExpression() && !USE_JDBC_STORE.isAllowExpression() : "rework this before enabling expression"; if (attributeName.equals(USE_JOURNAL_STORE.getName()) || attributeName.equals(USE_JDBC_STORE.getName())) { if (newValue.isDefined() && newValue.asBoolean()) { // check the value of the mutual attribute and disable it if it is set to true final String mutualAttributeName = attributeName.equals(USE_JDBC_STORE.getName()) ? USE_JOURNAL_STORE.getName() : USE_JDBC_STORE.getName(); ModelNode resourceModel = model.getModel(); if (resourceModel.hasDefined(mutualAttributeName) && resourceModel.get(mutualAttributeName).asBoolean()) { resourceModel.get(mutualAttributeName).set(new ModelNode(false)); } } } context.addStep(JdbcStoreValidationStep.INSTANCE, OperationContext.Stage.MODEL); } }
@Override protected void finishModelStage(OperationContext context, ModelNode operation, String attributeName, ModelNode newValue, ModelNode oldValue, Resource model) throws OperationFailedException { super.finishModelStage(context, operation, attributeName, newValue, oldValue, model); if (!context.isBooting()) { TransformerOperationAttachment attachment = TransformerOperationAttachment.getOrCreate(context); InitialAttributeValueOperationContextAttachment valuesAttachment = attachment.getAttachment(InitialAttributeValueOperationContextAttachment.INITIAL_VALUES_ATTACHMENT); if (valuesAttachment == null) { valuesAttachment = new InitialAttributeValueOperationContextAttachment(); attachment.attach(InitialAttributeValueOperationContextAttachment.INITIAL_VALUES_ATTACHMENT, valuesAttachment); } valuesAttachment.putIfAbsentInitialValue(Operations.getPathAddress(operation), attributeName, oldValue); } }