@Override protected boolean requiresRuntime(OperationContext context) { return super.requiresRuntime(context) && (this.handler != null); }
/** * Is a runtime step required? By default his method delegates to the supplied {@link AbstractAddStepHandler}, if * the add handler required a runtime step then most likely the remove step handler will also require one. * * @see org.jboss.as.controller.AbstractRemoveStepHandler#requiresRuntime(org.jboss.as.controller.OperationContext) */ @Override protected boolean requiresRuntime(OperationContext context) { return addOperation.requiresRuntime(context); }
/** * Is a runtime step required? By default his method delegates to the supplied {@link AbstractAddStepHandler}, if * the add handler required a runtime step then most likely the remove step handler will also require one. * * @see org.jboss.as.controller.AbstractRemoveStepHandler#requiresRuntime(org.jboss.as.controller.OperationContext) */ @Override protected boolean requiresRuntime(OperationContext context) { return addOperation.requiresRuntime(context); }
@Override protected boolean requiresRuntime(OperationContext context) { return super.requiresRuntime(context) && (this.handler != null); }
@Override protected boolean requiresRuntime(OperationContext context) { return !context.isBooting() && super.requiresRuntime(context); }
@Override protected boolean requiresRuntime(OperationContext context) { return !context.isBooting() && super.requiresRuntime(context); }
@Override protected boolean requiresRuntime(OperationContext context) { return super.requiresRuntime(context) && (context.getProcessType() != ProcessType.EMBEDDED_HOST_CONTROLLER); }
@Override protected boolean requiresRuntime(final OperationContext context) { return !context.isBooting() && super.requiresRuntime(context); }
@Override protected boolean requiresRuntime(OperationContext context) { return super.requiresRuntime(context) || context.getProcessType().isServer(); }
@Override protected boolean requiresRuntime(OperationContext context) { if (context.getProcessType().isServer()) { return super.requiresRuntime(context); } //Check if we are a host's socket binding and install the service if we are PathAddress pathAddress = context.getCurrentAddress(); return pathAddress.size() > 0 && pathAddress.getElement(0).getKey().equals(HOST); }
@Override protected boolean requiresRuntime(OperationContext context) { if (context.getProcessType().isServer()) { return super.requiresRuntime(context); } //Check if we are a host's socket binding and install the service if we are PathAddress pathAddress = context.getCurrentAddress(); return pathAddress.size() > 0 && pathAddress.getElement(0).getKey().equals(HOST); }
@Override protected boolean requiresRuntime(OperationContext context) { if (context.getProcessType().isServer()) { return super.requiresRuntime(context); } //Check if we are a host's socket binding and install the service if we are PathAddress pathAddress = context.getCurrentAddress(); return pathAddress.size() > 0 && pathAddress.getElement(0).getKey().equals(HOST); }
@Override protected boolean requiresRuntime(OperationContext context) { if (context.getProcessType().isServer()) { return super.requiresRuntime(context); } //Check if we are a host's socket binding and install the service if we are PathAddress pathAddress = context.getCurrentAddress(); return pathAddress.size() > 0 && pathAddress.getElement(0).getKey().equals(HOST); }
/** {@inheritDoc */ public void execute(final OperationContext context, final ModelNode operation) throws OperationFailedException { final Resource resource = createResource(context, operation); populateModel(context, operation, resource); recordCapabilitiesAndRequirements(context, operation, resource); //verify model for alternatives & requires if (requiresRuntime(context)) { context.addStep(new OperationStepHandler() { public void execute(final OperationContext context, final ModelNode operation) throws OperationFailedException { performRuntime(context, operation, resource); context.completeStep(new OperationContext.RollbackHandler() { @Override public void handleRollback(OperationContext context, ModelNode operation) { rollbackRuntime(context, operation, resource); } }); } }, OperationContext.Stage.RUNTIME); } }
/** {@inheritDoc */ public void execute(final OperationContext context, final ModelNode operation) throws OperationFailedException { final Resource resource = createResource(context, operation); populateModel(context, operation, resource); recordCapabilitiesAndRequirements(context, operation, resource); //verify model for alternatives & requires if (requiresRuntime(context)) { context.addStep(new OperationStepHandler() { public void execute(final OperationContext context, final ModelNode operation) throws OperationFailedException { performRuntime(context, operation, resource); context.completeStep(new OperationContext.RollbackHandler() { @Override public void handleRollback(OperationContext context, ModelNode operation) { rollbackRuntime(context, operation, resource); } }); } }, OperationContext.Stage.RUNTIME); } }
/** {@inheritDoc */ public void execute(final OperationContext context, final ModelNode operation) throws OperationFailedException { final Resource resource = createResource(context); populateModel(context, operation, resource); final ModelNode model = resource.getModel(); if (requiresRuntime(context)) { context.addStep(new OperationStepHandler() { public void execute(final OperationContext context, final ModelNode operation) throws OperationFailedException { final List<ServiceController<?>> controllers = new ArrayList<ServiceController<?>>(); final ServiceVerificationHandler verificationHandler = new ServiceVerificationHandler(); performRuntime(context, operation, model, verificationHandler, controllers); if(requiresRuntimeVerification()) { context.addStep(verificationHandler, OperationContext.Stage.VERIFY); } context.completeStep(new OperationContext.RollbackHandler() { @Override public void handleRollback(OperationContext context, ModelNode operation) { rollbackRuntime(context, operation, model, controllers); } }); } }, OperationContext.Stage.RUNTIME); } context.stepCompleted(); }
/** {@inheritDoc */ public void execute(final OperationContext context, final ModelNode operation) throws OperationFailedException { final Resource resource = createResource(context); populateModel(context, operation, resource); final ModelNode model = resource.getModel(); if (requiresRuntime(context)) { context.addStep(new OperationStepHandler() { public void execute(final OperationContext context, final ModelNode operation) throws OperationFailedException { final List<ServiceController<?>> controllers = new ArrayList<ServiceController<?>>(); final ServiceVerificationHandler verificationHandler = new ServiceVerificationHandler(); performRuntime(context, operation, model, verificationHandler, controllers); if(requiresRuntimeVerification()) { context.addStep(verificationHandler, OperationContext.Stage.VERIFY); } context.completeStep(new OperationContext.RollbackHandler() { @Override public void handleRollback(OperationContext context, ModelNode operation) { rollbackRuntime(context, operation, model, controllers); } }); } }, OperationContext.Stage.RUNTIME); } context.stepCompleted(); }