Class WebMigrateOperation

  • All Implemented Interfaces:
    org.jboss.as.controller.OperationStepHandler

    public class WebMigrateOperation
    extends Object
    implements org.jboss.as.controller.OperationStepHandler
    Operation to migrate from the legacy web subsystem to the new undertow subsystem.

    This operation must be performed when the server is in admin-only mode. Internally, the operation:

    • query the description of all the web subsystem by invoking the :describe operation. This returns a list of :add operations for each web resources.
    • :add the new org.widlfy.extension.undertow extension
    • :add the new org.wildfly.extension.io
    • for each web resources, transform the :add operations to add the corresponding resource to the new undertow subsystem. In this step, changes to the resources model are taken into account
    • :remove the web subsystem

    The companion :describe-migration operation will return a list of all the actual operations that would be performed during the invocation of the :migrate operation.

    Note that all new operation addresses are generated for standalone mode. If this is a domain mode server then the addresses are fixed after they have been generated

    Author:
    Jeff Mesnil (c) 2015 Red Hat inc., Stuart Douglas
    • Field Detail

      • DEFAULT_SERVER_PATH

        public static final org.jboss.as.controller.PathElement DEFAULT_SERVER_PATH
      • EXTENSION_ADDRESS

        public static final org.jboss.as.controller.PathAddress EXTENSION_ADDRESS
      • MIGRATION_WARNINGS_ATTR

        public static final org.jboss.as.controller.StringListAttributeDefinition MIGRATION_WARNINGS_ATTR
      • MIGRATION_ERROR_ATTR

        public static final org.jboss.as.controller.SimpleMapAttributeDefinition MIGRATION_ERROR_ATTR
    • Method Detail

      • execute

        public void execute​(org.jboss.as.controller.OperationContext context,
                            org.jboss.dmr.ModelNode operation)
                     throws org.jboss.as.controller.OperationFailedException
        Specified by:
        execute in interface org.jboss.as.controller.OperationStepHandler
        Throws:
        org.jboss.as.controller.OperationFailedException