Class MigrateOperation

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

    public class MigrateOperation
    extends Object
    implements org.jboss.as.controller.OperationStepHandler
    Operation to migrate from the legacy messaging subsystem to the new messaging-activemq subsystem. This operation must be performed when the server is in admin-only mode. Internally, the operation:
    • query the description of all the messaging subsystem by invoking the :describe operation. This returns a list of :add operations for each messaging resources.
    • :add the new org.widlfy.extension.messaging-activemq extension
    • for each messaging resources, transform the :add operations to add the corresponding resource to the new messaging-activemq subsystem. In this step, changes to the resources model are taken into account (e.g. cluster-connection's connector-ref is named connector-name in the new messaging-activemq subsystem.)
    • :remove the messaging 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.
    Author:
    Jeff Mesnil (c) 2015 Red Hat inc.
    • 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
      • fillWarnings

        protected void fillWarnings​(org.jboss.dmr.ModelNode result,
                                    List<String> warnings)