Package org.jboss.as.messaging
Class MigrateOperation
- java.lang.Object
-
- org.jboss.as.messaging.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
:describe-migrationoperation will return a list of all the actual operations that would be performed during the invocation of the:migrateoperation.- Author:
- Jeff Mesnil (c) 2015 Red Hat inc.
-
-
Field Summary
Fields Modifier and Type Field Description static StringDESCRIBE_MIGRATIONstatic StringHA_POLICYstatic StringMIGRATEstatic StringMIGRATION_ERRORstatic org.jboss.as.controller.SimpleMapAttributeDefinitionMIGRATION_ERROR_ATTRstatic StringMIGRATION_OPERATIONSstatic StringMIGRATION_WARNINGSstatic org.jboss.as.controller.StringListAttributeDefinitionMIGRATION_WARNINGS_ATTR
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(org.jboss.as.controller.OperationContext context, org.jboss.dmr.ModelNode operation)protected voidfillWarnings(org.jboss.dmr.ModelNode result, List<String> warnings)
-
-
-
Field Detail
-
MIGRATE
public static final String MIGRATE
- See Also:
- Constant Field Values
-
MIGRATION_WARNINGS
public static final String MIGRATION_WARNINGS
- See Also:
- Constant Field Values
-
MIGRATION_ERROR
public static final String MIGRATION_ERROR
- See Also:
- Constant Field Values
-
MIGRATION_OPERATIONS
public static final String MIGRATION_OPERATIONS
- See Also:
- Constant Field Values
-
DESCRIBE_MIGRATION
public static final String DESCRIBE_MIGRATION
- See Also:
- Constant Field Values
-
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
-
HA_POLICY
public static final String HA_POLICY
- See Also:
- Constant Field Values
-
-
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:
executein interfaceorg.jboss.as.controller.OperationStepHandler- Throws:
org.jboss.as.controller.OperationFailedException
-
-