Class ModelTestModelControllerService

java.lang.Object
org.jboss.as.controller.AbstractControllerService
org.jboss.as.model.test.ModelTestModelControllerService
All Implemented Interfaces:
org.jboss.msc.Service, org.jboss.msc.service.Service<org.jboss.as.controller.ModelController>, org.jboss.msc.value.Value<org.jboss.as.controller.ModelController>

public abstract class ModelTestModelControllerService extends org.jboss.as.controller.AbstractControllerService
Internal class used by test framework.Boots up the model controller used for the test. While the super class AbstractControllerService exists here in the main code source, for the legacy controllers it is got from the xxxx/test-controller-xxx jars instead (see the constructor javadocs for more information)
Author:
Kabir Khan, Tomaz Cerar
  • Nested Class Summary

    Nested Classes

    Nested classes/interfaces inherited from class org.jboss.as.controller.AbstractControllerService

    org.jboss.as.controller.AbstractControllerService.ControllerInstabilityListener, org.jboss.as.controller.AbstractControllerService.ModelControllerServiceInitializationParams, org.jboss.as.controller.AbstractControllerService.PartialModelIndicator
  • Field Summary

    Fields inherited from class org.jboss.as.controller.AbstractControllerService

    authorizer, BOOT_STACK_SIZE_PROPERTY, CLIENT_FACTORY_CAPABILITY, DEFAULT_BOOT_STACK_SIZE, EXECUTOR_CAPABILITY, NOTIFICATION_REGISTRY_CAPABILITY, PATH_MANAGER_CAPABILITY, PROCESS_STATE_NOTIFIER_CAPABILITY, processType, securityIdentitySupplier, stability

    Fields inherited from interface org.jboss.msc.service.Service

    NULL
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    ModelTestModelControllerService(org.jboss.as.controller.ProcessType processType, org.jboss.as.controller.RunningModeControl runningModeControl, org.jboss.as.controller.transform.TransformerRegistry transformerRegistry, StringConfigurationPersister persister, ModelTestOperationValidatorFilter validateOpsFilter, org.jboss.as.controller.ResourceDefinition resourceDefinition, org.jboss.as.controller.ControlledProcessState processState, org.jboss.as.controller.CapabilityRegistry capabilityRegistry, ModelTestModelControllerService.Controller23x version)
    This is the constructor to use for 23.0.x subsystem tests.
    protected
    ModelTestModelControllerService(org.jboss.as.controller.ProcessType processType, org.jboss.as.controller.RunningModeControl runningModeControl, org.jboss.as.controller.transform.TransformerRegistry transformerRegistry, StringConfigurationPersister persister, ModelTestOperationValidatorFilter validateOpsFilter, org.jboss.as.controller.ResourceDefinition resourceDefinition, org.jboss.as.controller.ControlledProcessState processState, org.jboss.as.controller.CapabilityRegistry capabilityRegistry, ModelTestModelControllerService.Controller29x version)
    This is the constructor to use for 29.0.x subsystem tests.
    protected
    ModelTestModelControllerService(org.jboss.as.controller.ProcessType processType, org.jboss.as.controller.RunningModeControl runningModeControl, org.jboss.as.controller.transform.TransformerRegistry transformerRegistry, StringConfigurationPersister persister, ModelTestOperationValidatorFilter validateOpsFilter, org.jboss.as.controller.ResourceDefinition rootResourceDefinition, org.jboss.as.controller.ControlledProcessState processState, org.jboss.as.controller.ExpressionResolver expressionResolver, org.jboss.as.controller.CapabilityRegistry capabilityRegistry, ModelTestModelControllerService.Controller23x version)
    This is the constructor to use for 23.0.x core model tests.
    protected
    ModelTestModelControllerService(org.jboss.as.controller.ProcessType processType, org.jboss.as.controller.RunningModeControl runningModeControl, org.jboss.as.controller.transform.TransformerRegistry transformerRegistry, StringConfigurationPersister persister, ModelTestOperationValidatorFilter validateOpsFilter, org.jboss.as.controller.ResourceDefinition rootResourceDefinition, org.jboss.as.controller.ControlledProcessState processState, org.jboss.as.controller.ExpressionResolver expressionResolver, org.jboss.as.controller.CapabilityRegistry capabilityRegistry, ModelTestModelControllerService.Controller29x version)
    This is the constructor to use for 29.0.x core model tests.
    protected
    ModelTestModelControllerService(org.jboss.as.controller.ProcessType processType, org.jboss.as.version.Stability stability, org.jboss.as.controller.RunningModeControl runningModeControl, org.jboss.as.controller.transform.TransformerRegistry transformerRegistry, StringConfigurationPersister persister, ModelTestOperationValidatorFilter validateOpsFilter, org.jboss.as.controller.ResourceDefinition rootResourceDefinition, org.jboss.as.controller.ControlledProcessState processState, org.jboss.as.controller.ExpressionResolver expressionResolver, org.jboss.as.controller.CapabilityRegistry capabilityRegistry, ModelTestModelControllerService.Controller31x version)
    This is the constructor to use for WildFly 31.0.0 core model tests
    protected
    ModelTestModelControllerService(org.jboss.as.controller.ProcessType processType, org.jboss.as.version.Stability stability, org.jboss.as.controller.RunningModeControl runningModeControl, org.jboss.as.controller.transform.TransformerRegistry transformerRegistry, StringConfigurationPersister persister, ModelTestOperationValidatorFilter validateOpsFilter, org.jboss.as.controller.ResourceDefinition resourceDefinition, org.jboss.as.controller.ExpressionResolver expressionResolver, org.jboss.as.controller.ControlledProcessState processState, org.jboss.as.controller.CapabilityRegistry capabilityRegistry)
    This is the constructor to use for current subsystem tests
    protected
    ModelTestModelControllerService(org.jboss.as.controller.ProcessType processType, org.jboss.as.version.Stability stability, org.jboss.as.controller.RunningModeControl runningModeControl, org.jboss.as.controller.transform.TransformerRegistry transformerRegistry, StringConfigurationPersister persister, ModelTestOperationValidatorFilter validateOpsFilter, org.jboss.as.controller.ResourceDefinition resourceDefinition, org.jboss.as.controller.ExpressionResolver expressionResolver, org.jboss.as.controller.ControlledProcessState processState, org.jboss.as.controller.CapabilityRegistry capabilityRegistry, ModelTestModelControllerService.Controller31x version)
    This is the constructor to use for WildFly 31.0.0 subsystem tests
    protected
    ModelTestModelControllerService(org.jboss.as.controller.ProcessType processType, org.jboss.as.version.Stability stability, org.jboss.as.controller.RunningModeControl runningModeControl, org.jboss.as.controller.transform.TransformerRegistry transformerRegistry, StringConfigurationPersister persister, ModelTestOperationValidatorFilter validateOpsFilter, org.jboss.as.controller.ResourceDefinition resourceDefinition, org.jboss.as.controller.ExpressionResolver expressionResolver, org.jboss.as.controller.ControlledProcessState processState, org.jboss.as.controller.CapabilityRegistry capabilityRegistry, ModelTestModelControllerService.Controller35x version)
    This is the constructor to use for WildFly 35.0.0 subsystem tests
    protected
    ModelTestModelControllerService(org.jboss.as.controller.ProcessType processType, org.jboss.as.version.Stability stability, org.jboss.as.controller.RunningModeControl runningModeControl, org.jboss.as.controller.transform.TransformerRegistry transformerRegistry, StringConfigurationPersister persister, ModelTestOperationValidatorFilter validateOpsFilter, ModelTestModelControllerService.DelegatingResourceDefinition rootResourceDefinition, org.jboss.as.controller.ControlledProcessState processState, org.jboss.as.controller.ExpressionResolver expressionResolver, org.jboss.as.controller.CapabilityRegistry capabilityRegistry)
    This is the constructor to use for current core model tests
    protected
    ModelTestModelControllerService(org.jboss.as.controller.ProcessType processType, org.jboss.as.version.Stability stability, org.jboss.as.controller.RunningModeControl runningModeControl, org.jboss.as.controller.transform.TransformerRegistry transformerRegistry, StringConfigurationPersister persister, ModelTestOperationValidatorFilter validateOpsFilter, ModelTestModelControllerService.DelegatingResourceDefinition rootResourceDefinition, org.jboss.as.controller.ControlledProcessState processState, org.jboss.as.controller.ExpressionResolver expressionResolver, org.jboss.as.controller.CapabilityRegistry capabilityRegistry, ModelTestModelControllerService.Controller35x version)
    This is the constructor to use for WildFly 35.0.0 core model tests
  • Method Summary

    Modifier and Type
    Method
    Description
    protected boolean
    boot(List<org.jboss.dmr.ModelNode> bootOperations, boolean rollbackOnRuntimeFailure)
     
    protected void
     
    protected void
     
     
    protected org.jboss.as.controller.ModelControllerClientFactory
     
    org.jboss.as.controller.registry.ManagementResourceRegistration
     
    static org.jboss.as.controller.registry.Resource
    Grabs the current root resource.
    protected void
    initCoreModel(org.jboss.as.controller.ManagementModel managementModel, org.jboss.as.controller.registry.Resource modelControllerResource)
     
    protected void
    initExtraModel(org.jboss.as.controller.ManagementModel managementModel)
     
    protected void
    initModel(org.jboss.as.controller.ManagementModel managementModel, org.jboss.as.controller.registry.Resource modelControllerResource)
     
    protected org.jboss.dmr.ModelNode
    internalExecute(org.jboss.dmr.ModelNode operationNode, org.jboss.as.controller.client.OperationMessageHandler handler, org.jboss.as.controller.ModelController.OperationTransactionControl control, org.jboss.as.controller.client.OperationAttachments attachments, org.jboss.as.controller.OperationStepHandler prepareStep)
     
    boolean
     
    protected void
     
    protected void
    preBoot(List<org.jboss.dmr.ModelNode> bootOperations, boolean rollbackOnRuntimeFailure)
     
    void
    start(org.jboss.msc.service.StartContext context)
     
    void
     

    Methods inherited from class org.jboss.as.controller.AbstractControllerService

    acquireReadLock, boot, boot, boot, clearBootingReadOnlyFlag, createExtraValidationStepHandler, executeAdditionalCliBootScript, executeReadOnlyOperation, executeReadOnlyOperation, executeReadOnlyOperation, finishBoot, finishBoot, getAuditLogger, getBootErrorCollector, getBootErrors, getExecutorService, getModelControllerServiceInitializationParams, getMutableRootResourceRegistrationProvider, getNotificationSupport, getPartialModelIndicator, getValue, internalExecute, internalExecute, internalExecute, isExposingClientServicesAllowed, registerModelControllerServiceInitializationBootStep, releaseReadLock, setConfigurationPersister, stop, stopAsynchronous

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ModelTestModelControllerService

      protected ModelTestModelControllerService(org.jboss.as.controller.ProcessType processType, org.jboss.as.controller.RunningModeControl runningModeControl, org.jboss.as.controller.transform.TransformerRegistry transformerRegistry, StringConfigurationPersister persister, ModelTestOperationValidatorFilter validateOpsFilter, org.jboss.as.controller.ResourceDefinition rootResourceDefinition, org.jboss.as.controller.ControlledProcessState processState, org.jboss.as.controller.ExpressionResolver expressionResolver, org.jboss.as.controller.CapabilityRegistry capabilityRegistry, ModelTestModelControllerService.Controller23x version)
      This is the constructor to use for 23.0.x core model tests.
    • ModelTestModelControllerService

      protected ModelTestModelControllerService(org.jboss.as.controller.ProcessType processType, org.jboss.as.controller.RunningModeControl runningModeControl, org.jboss.as.controller.transform.TransformerRegistry transformerRegistry, StringConfigurationPersister persister, ModelTestOperationValidatorFilter validateOpsFilter, org.jboss.as.controller.ResourceDefinition resourceDefinition, org.jboss.as.controller.ControlledProcessState processState, org.jboss.as.controller.CapabilityRegistry capabilityRegistry, ModelTestModelControllerService.Controller23x version)
      This is the constructor to use for 23.0.x subsystem tests.
    • ModelTestModelControllerService

      protected ModelTestModelControllerService(org.jboss.as.controller.ProcessType processType, org.jboss.as.controller.RunningModeControl runningModeControl, org.jboss.as.controller.transform.TransformerRegistry transformerRegistry, StringConfigurationPersister persister, ModelTestOperationValidatorFilter validateOpsFilter, org.jboss.as.controller.ResourceDefinition rootResourceDefinition, org.jboss.as.controller.ControlledProcessState processState, org.jboss.as.controller.ExpressionResolver expressionResolver, org.jboss.as.controller.CapabilityRegistry capabilityRegistry, ModelTestModelControllerService.Controller29x version)
      This is the constructor to use for 29.0.x core model tests.
    • ModelTestModelControllerService

      protected ModelTestModelControllerService(org.jboss.as.controller.ProcessType processType, org.jboss.as.controller.RunningModeControl runningModeControl, org.jboss.as.controller.transform.TransformerRegistry transformerRegistry, StringConfigurationPersister persister, ModelTestOperationValidatorFilter validateOpsFilter, org.jboss.as.controller.ResourceDefinition resourceDefinition, org.jboss.as.controller.ControlledProcessState processState, org.jboss.as.controller.CapabilityRegistry capabilityRegistry, ModelTestModelControllerService.Controller29x version)
      This is the constructor to use for 29.0.x subsystem tests.
    • ModelTestModelControllerService

      protected ModelTestModelControllerService(org.jboss.as.controller.ProcessType processType, org.jboss.as.version.Stability stability, org.jboss.as.controller.RunningModeControl runningModeControl, org.jboss.as.controller.transform.TransformerRegistry transformerRegistry, StringConfigurationPersister persister, ModelTestOperationValidatorFilter validateOpsFilter, org.jboss.as.controller.ResourceDefinition rootResourceDefinition, org.jboss.as.controller.ControlledProcessState processState, org.jboss.as.controller.ExpressionResolver expressionResolver, org.jboss.as.controller.CapabilityRegistry capabilityRegistry, ModelTestModelControllerService.Controller31x version)
      This is the constructor to use for WildFly 31.0.0 core model tests
    • ModelTestModelControllerService

      protected ModelTestModelControllerService(org.jboss.as.controller.ProcessType processType, org.jboss.as.version.Stability stability, org.jboss.as.controller.RunningModeControl runningModeControl, org.jboss.as.controller.transform.TransformerRegistry transformerRegistry, StringConfigurationPersister persister, ModelTestOperationValidatorFilter validateOpsFilter, org.jboss.as.controller.ResourceDefinition resourceDefinition, org.jboss.as.controller.ExpressionResolver expressionResolver, org.jboss.as.controller.ControlledProcessState processState, org.jboss.as.controller.CapabilityRegistry capabilityRegistry, ModelTestModelControllerService.Controller31x version)
      This is the constructor to use for WildFly 31.0.0 subsystem tests
    • ModelTestModelControllerService

      protected ModelTestModelControllerService(org.jboss.as.controller.ProcessType processType, org.jboss.as.version.Stability stability, org.jboss.as.controller.RunningModeControl runningModeControl, org.jboss.as.controller.transform.TransformerRegistry transformerRegistry, StringConfigurationPersister persister, ModelTestOperationValidatorFilter validateOpsFilter, ModelTestModelControllerService.DelegatingResourceDefinition rootResourceDefinition, org.jboss.as.controller.ControlledProcessState processState, org.jboss.as.controller.ExpressionResolver expressionResolver, org.jboss.as.controller.CapabilityRegistry capabilityRegistry, ModelTestModelControllerService.Controller35x version)
      This is the constructor to use for WildFly 35.0.0 core model tests
    • ModelTestModelControllerService

      protected ModelTestModelControllerService(org.jboss.as.controller.ProcessType processType, org.jboss.as.version.Stability stability, org.jboss.as.controller.RunningModeControl runningModeControl, org.jboss.as.controller.transform.TransformerRegistry transformerRegistry, StringConfigurationPersister persister, ModelTestOperationValidatorFilter validateOpsFilter, org.jboss.as.controller.ResourceDefinition resourceDefinition, org.jboss.as.controller.ExpressionResolver expressionResolver, org.jboss.as.controller.ControlledProcessState processState, org.jboss.as.controller.CapabilityRegistry capabilityRegistry, ModelTestModelControllerService.Controller35x version)
      This is the constructor to use for WildFly 35.0.0 subsystem tests
    • ModelTestModelControllerService

      protected ModelTestModelControllerService(org.jboss.as.controller.ProcessType processType, org.jboss.as.version.Stability stability, org.jboss.as.controller.RunningModeControl runningModeControl, org.jboss.as.controller.transform.TransformerRegistry transformerRegistry, StringConfigurationPersister persister, ModelTestOperationValidatorFilter validateOpsFilter, ModelTestModelControllerService.DelegatingResourceDefinition rootResourceDefinition, org.jboss.as.controller.ControlledProcessState processState, org.jboss.as.controller.ExpressionResolver expressionResolver, org.jboss.as.controller.CapabilityRegistry capabilityRegistry)
      This is the constructor to use for current core model tests
    • ModelTestModelControllerService

      protected ModelTestModelControllerService(org.jboss.as.controller.ProcessType processType, org.jboss.as.version.Stability stability, org.jboss.as.controller.RunningModeControl runningModeControl, org.jboss.as.controller.transform.TransformerRegistry transformerRegistry, StringConfigurationPersister persister, ModelTestOperationValidatorFilter validateOpsFilter, org.jboss.as.controller.ResourceDefinition resourceDefinition, org.jboss.as.controller.ExpressionResolver expressionResolver, org.jboss.as.controller.ControlledProcessState processState, org.jboss.as.controller.CapabilityRegistry capabilityRegistry)
      This is the constructor to use for current subsystem tests
  • Method Details

    • isSuccessfulBoot

      public boolean isSuccessfulBoot()
    • getBootError

      public Throwable getBootError()
    • initModel

      protected void initModel(org.jboss.as.controller.ManagementModel managementModel, org.jboss.as.controller.registry.Resource modelControllerResource)
      Specified by:
      initModel in class org.jboss.as.controller.AbstractControllerService
    • initCoreModel

      protected void initCoreModel(org.jboss.as.controller.ManagementModel managementModel, org.jboss.as.controller.registry.Resource modelControllerResource)
    • initExtraModel

      protected void initExtraModel(org.jboss.as.controller.ManagementModel managementModel)
    • getModelControllerClientFactory

      protected org.jboss.as.controller.ModelControllerClientFactory getModelControllerClientFactory()
      Overrides:
      getModelControllerClientFactory in class org.jboss.as.controller.AbstractControllerService
    • boot

      protected boolean boot(List<org.jboss.dmr.ModelNode> bootOperations, boolean rollbackOnRuntimeFailure) throws org.jboss.as.controller.persistence.ConfigurationPersistenceException
      Overrides:
      boot in class org.jboss.as.controller.AbstractControllerService
      Throws:
      org.jboss.as.controller.persistence.ConfigurationPersistenceException
    • preBoot

      protected void preBoot(List<org.jboss.dmr.ModelNode> bootOperations, boolean rollbackOnRuntimeFailure)
    • postBoot

      protected void postBoot()
      Overrides:
      postBoot in class org.jboss.as.controller.AbstractControllerService
    • bootThreadDone

      protected void bootThreadDone()
      Overrides:
      bootThreadDone in class org.jboss.as.controller.AbstractControllerService
    • countdownDoneLatch

      protected void countdownDoneLatch()
    • start

      public void start(org.jboss.msc.service.StartContext context) throws org.jboss.msc.service.StartException
      Specified by:
      start in interface org.jboss.msc.Service
      Overrides:
      start in class org.jboss.as.controller.AbstractControllerService
      Throws:
      org.jboss.msc.service.StartException
    • waitForSetup

      public void waitForSetup() throws Exception
      Throws:
      Exception
    • getRootRegistration

      public org.jboss.as.controller.registry.ManagementResourceRegistration getRootRegistration()
    • grabRootResource

      public static org.jboss.as.controller.registry.Resource grabRootResource(ModelTestKernelServices<?> kernelServices)
      Grabs the current root resource. This cannot be called after the kernelServices have been shut down
      Parameters:
      kernelServices - the kernel services used to access the controller
    • internalExecute

      protected org.jboss.dmr.ModelNode internalExecute(org.jboss.dmr.ModelNode operationNode, org.jboss.as.controller.client.OperationMessageHandler handler, org.jboss.as.controller.ModelController.OperationTransactionControl control, org.jboss.as.controller.client.OperationAttachments attachments, org.jboss.as.controller.OperationStepHandler prepareStep)