/** * Make any runtime changes necessary to effect the changes indicated by the given {@code operation}. Will only be * invoked if {@link OperationContext#isBooting()} returns {@code true}. Executes * after {@link #populateModel(org.jboss.dmr.ModelNode, org.jboss.dmr.ModelNode)}, so the given {@code resource} * parameter will reflect any changes made in that method. This method is * invoked during {@link org.jboss.as.controller.OperationContext.Stage#RUNTIME}. Subclasses that wish to make * changes to runtime services should override this method or the * {@link #performBoottime(OperationContext, org.jboss.dmr.ModelNode, org.jboss.dmr.ModelNode)} variant. * <p> * This default implementation simply calls the * {@link #performBoottime(OperationContext, org.jboss.dmr.ModelNode, org.jboss.dmr.ModelNode)} variant. * <strong>Subclasses that override this method should not call{@code super.performBoottime(...)}.</strong> * * @param context the operation context * @param operation the operation being executed * @param resource persistent configuration resource that corresponds to the address of {@code operation} * @throws OperationFailedException if {@code operation} is invalid or updating the runtime otherwise fails */ protected void performBoottime(OperationContext context, ModelNode operation, Resource resource) throws OperationFailedException { performBoottime(context, operation, resource.getModel()); }
/** * Make any runtime changes necessary to effect the changes indicated by the given {@code operation}. Will only be * invoked if {@link OperationContext#isBooting()} returns {@code true}. Executes * after {@link #populateModel(org.jboss.dmr.ModelNode, org.jboss.dmr.ModelNode)}, so the given {@code resource} * parameter will reflect any changes made in that method. This method is * invoked during {@link org.jboss.as.controller.OperationContext.Stage#RUNTIME}. Subclasses that wish to make * changes to runtime services should override this method or the * {@link #performBoottime(OperationContext, org.jboss.dmr.ModelNode, org.jboss.dmr.ModelNode)} variant. * <p> * This default implementation simply calls the * {@link #performBoottime(OperationContext, org.jboss.dmr.ModelNode, org.jboss.dmr.ModelNode)} variant. * <strong>Subclasses that override this method should not call{@code super.performBoottime(...)}.</strong> * * @param context the operation context * @param operation the operation being executed * @param resource persistent configuration resource that corresponds to the address of {@code operation} * @throws OperationFailedException if {@code operation} is invalid or updating the runtime otherwise fails */ protected void performBoottime(OperationContext context, ModelNode operation, Resource resource) throws OperationFailedException { performBoottime(context, operation, resource.getModel()); }
/** * If {@link OperationContext#isBooting()} returns {@code true}, invokes * {@link #performBoottime(OperationContext, org.jboss.dmr.ModelNode, org.jboss.dmr.ModelNode, ServiceVerificationHandler, java.util.List)}, * else invokes {@link OperationContext#reloadRequired()}. */ @Override protected void performRuntime(OperationContext context, ModelNode operation, ModelNode model, ServiceVerificationHandler verificationHandler, List<ServiceController<?>> newControllers) throws OperationFailedException { if (context.isBooting()) { performBoottime(context, operation, model, verificationHandler, newControllers); } else { context.reloadRequired(); } }
/** * If {@link OperationContext#isBooting()} returns {@code true}, invokes * {@link #performBoottime(OperationContext, org.jboss.dmr.ModelNode, org.jboss.dmr.ModelNode, ServiceVerificationHandler, java.util.List)}, * else invokes {@link OperationContext#reloadRequired()}. */ @Override protected void performRuntime(OperationContext context, ModelNode operation, ModelNode model, ServiceVerificationHandler verificationHandler, List<ServiceController<?>> newControllers) throws OperationFailedException { if (context.isBooting()) { performBoottime(context, operation, model, verificationHandler, newControllers); } else { context.reloadRequired(); } }
/** * If {@link OperationContext#isBooting()} returns {@code true}, invokes * {@link #performBoottime(OperationContext, org.jboss.dmr.ModelNode, org.jboss.as.controller.registry.Resource)}, * else invokes {@link OperationContext#reloadRequired()}. * * {@inheritDoc} */ @Override protected final void performRuntime(OperationContext context, ModelNode operation, Resource resource) throws OperationFailedException { if (context.isBooting()) { performBoottime(context, operation, resource); } else { context.reloadRequired(); } }
/** * If {@link OperationContext#isBooting()} returns {@code true}, invokes * {@link #performBoottime(OperationContext, org.jboss.dmr.ModelNode, org.jboss.as.controller.registry.Resource)}, * else invokes {@link OperationContext#reloadRequired()}. * * {@inheritDoc} */ @Override protected final void performRuntime(OperationContext context, ModelNode operation, Resource resource) throws OperationFailedException { if (context.isBooting()) { performBoottime(context, operation, resource); } else { context.reloadRequired(); } }