@Override public void handleRollback(OperationContext context, ModelNode operation) { try { if (START.equals(operationName)) { rhControl.stop(); } else if (STOP.equals(operationName)) { rhControl.start(); } else { handleRevertOperation(operationName, context, operation, rhHandback); } } catch (Exception e) { ROOT_LOGGER.revertOperationFailed(e, getClass().getSimpleName(), operation.require(ModelDescriptionConstants.OP).asString(), PathAddress.pathAddress(operation.require(ModelDescriptionConstants.OP_ADDR))); } } };
@Override public void handleRollback(OperationContext context, ModelNode operation) { try { if (START.equals(operationName)) { rhControl.stop(); } else if (STOP.equals(operationName)) { rhControl.start(); } else { handleRevertOperation(operationName, context, operation, rhHandback); } } catch (Exception e) { ROOT_LOGGER.revertOperationFailed(e, getClass().getSimpleName(), operation.require(ModelDescriptionConstants.OP).asString(), PathAddress.pathAddress(operation.require(ModelDescriptionConstants.OP_ADDR))); } } };
control = getActiveMQComponentControl(context, operation, true); try { control.stop(); appliedToRuntime = true; context.getResult();
control = getActiveMQComponentControl(context, operation, true); try { control.stop(); appliedToRuntime = true; context.getResult();