Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-4058

Investigate use of OperationContext.completeStep() from within

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Done
    • Major
    • 7.1.1.Final
    • None
    • Logging
    • None

    Description

      The lines are highlighted in https://github.com/jbossas/jboss-as/pull/1709/files
      HandlerDisable and HandlerEnable do things like

      public void execute(OperationContext context, ModelNode operation) {
      if (context.isNormalServer()) {
      context.addStep(new OperationStepHandler() {
      if (controller != null) {
      controller.addListener(new AbstractServiceListener<Object>() {
      public void listenerAdded(ServiceController<?> serviceController)

      { serviceController.setMode(ServiceController.Mode.NEVER); }

      @Override
      public void transition(ServiceController<?> serviceController, ServiceController.Transition transition) {
      if (transition == ServiceController.Transition.STOPPING_to_DOWN)

      { context.completeStep(); <<<< }

      }
      });
      } else

      { context.completeStep(); }

      }
      }, OperationContext.Stage.RUNTIME);
      }
      context.completeStep();
      }

      Attachments

        Activity

          People

            jperkins-rhn James Perkins
            kkhan1@redhat.com Kabir Khan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: