@Override public TransformedOperation transformOperation(TransformationContext context, PathAddress address, ModelNode operation) throws OperationFailedException { String name = Operations.getName(operation); OperationTransformer transformer = this.transformers.get(name); return (transformer != null) ? transformer.transformOperation(context, address, operation) : new TransformedOperation(operation, OperationResultTransformer.ORIGINAL_RESULT); } }
static void operationDeprecated(OperationContext context, ModelNode operation) { ControllerLogger.DEPRECATED_LOGGER.operationDeprecated(Operations.getName(operation), context.getCurrentAddress().toCLIStyleString()); } }
@Override protected void executeRuntimeStep(OperationContext context, ModelNode operation) { String name = Operations.getName(operation); Operation<C> executable = this.executables.get(name); try { ModelNode result = this.executor.execute(context, operation, executable); if (result != null) { context.getResult().set(result); } } catch (OperationFailedException e) { context.getFailureDescription().set(e.getLocalizedMessage()); } context.completeStep(OperationContext.ResultHandler.NOOP_RESULT_HANDLER); } }
static void operationDeprecated(OperationContext context, ModelNode operation) { ControllerLogger.DEPRECATED_LOGGER.operationDeprecated(Operations.getName(operation), context.getCurrentAddress().toCLIStyleString()); } }
static void operationDeprecated(OperationContext context, ModelNode operation) { ControllerLogger.DEPRECATED_LOGGER.operationDeprecated(Operations.getName(operation), context.getCurrentAddress().toCLIStyleString()); } }
String originalName = Operations.getName(originalOperation); PathAddress originalAddress = Operations.getPathAddress(originalOperation); Deque<ModelNode> preSteps = new LinkedList<>(); while (steps.hasNext()) { ModelNode step = steps.next(); String operationName = Operations.getName(step); PathAddress operationAddress = Operations.getPathAddress(step); if (operationName.equals(originalName) && operationAddress.equals(originalAddress)) { while (steps.hasPrevious()) { ModelNode step = steps.previous(); String operationName = Operations.getName(step); PathAddress operationAddress = Operations.getPathAddress(step); if (operationName.equals(originalName) && operationAddress.equals(originalAddress)) {
private static void operationDeprecated(OperationContext context, ModelNode operation) { ControllerLogger.DEPRECATED_LOGGER.operationDeprecated(Operations.getName(operation), context.getCurrentAddress().toCLIStyleString()); }
final ModelNode operation = aliasContext.getOperation(); final String stackName; if (ModelDescriptionConstants.ADD.equals(Operations.getName(operation)) && operation.hasDefined("type")) { stackName = operation.get("type").asString(); } else {
@Override public void execute(OperationContext context, ModelNode operation) { PathAddress address = context.getCurrentAddress(); JGroupsLogger.ROOT_LOGGER.legacyProtocol(address.getLastElement().getValue(), this.targetName); PathAddress targetAddress = address.getParent().append(pathElement(this.targetName)); Operations.setPathAddress(operation, targetAddress); PathAddress targetRegistrationAddress = address.getParent().append(ProtocolResourceDefinition.WILDCARD_PATH); String operationName = Operations.getName(operation); context.addStep(operation, context.getRootResourceRegistration().getOperationHandler(targetRegistrationAddress, operationName), OperationContext.Stage.MODEL, true); } }
@Override public TransformedOperation transformOperation(TransformationContext context, PathAddress address, ModelNode operation) throws OperationFailedException { String name = Operations.getName(operation); OperationTransformer transformer = this.transformers.get(name); return (transformer != null) ? transformer.transformOperation(context, address, operation) : new TransformedOperation(operation, OperationResultTransformer.ORIGINAL_RESULT); } }
@Override protected void executeRuntimeStep(OperationContext context, ModelNode operation) { String name = Operations.getName(operation); Operation<C> executable = this.executables.get(name); try { ModelNode result = this.executor.execute(context, operation, executable); if (result != null) { context.getResult().set(result); } } catch (OperationFailedException e) { context.getFailureDescription().set(e.getLocalizedMessage()); } context.completeStep(OperationContext.ResultHandler.NOOP_RESULT_HANDLER); } }
static void operationDeprecated(OperationContext context, ModelNode operation) { ControllerLogger.DEPRECATED_LOGGER.operationDeprecated(Operations.getName(operation), context.getCurrentAddress().toCLIStyleString()); } }
String originalName = Operations.getName(originalOperation); PathAddress originalAddress = Operations.getPathAddress(originalOperation); Deque<ModelNode> preSteps = new LinkedList<>(); while (steps.hasNext()) { ModelNode step = steps.next(); String operationName = Operations.getName(step); PathAddress operationAddress = Operations.getPathAddress(step); if (operationName.equals(originalName) && operationAddress.equals(originalAddress)) { while (steps.hasPrevious()) { ModelNode step = steps.previous(); String operationName = Operations.getName(step); PathAddress operationAddress = Operations.getPathAddress(step); if (operationName.equals(originalName) && operationAddress.equals(originalAddress)) {
static void operationDeprecated(OperationContext context, ModelNode operation) { ControllerLogger.DEPRECATED_LOGGER.operationDeprecated(Operations.getName(operation), context.getCurrentAddress().toCLIStyleString()); } }
static void operationDeprecated(OperationContext context, ModelNode operation) { ControllerLogger.DEPRECATED_LOGGER.operationDeprecated(Operations.getName(operation), context.getCurrentAddress().toCLIStyleString()); } }
private static void operationDeprecated(OperationContext context, ModelNode operation) { ControllerLogger.DEPRECATED_LOGGER.operationDeprecated(Operations.getName(operation), context.getCurrentAddress().toCLIStyleString()); }
final ModelNode operation = aliasContext.getOperation(); final String stackName; if (ModelDescriptionConstants.ADD.equals(Operations.getName(operation)) && operation.hasDefined("type")) { stackName = operation.get("type").asString(); } else {
@Override public void execute(OperationContext context, ModelNode operation) { PathAddress address = context.getCurrentAddress(); JGroupsLogger.ROOT_LOGGER.legacyProtocol(address.getLastElement().getValue(), this.targetName); PathAddress targetAddress = address.getParent().append(pathElement(this.targetName)); Operations.setPathAddress(operation, targetAddress); PathAddress targetRegistrationAddress = address.getParent().append(ProtocolResourceDefinition.WILDCARD_PATH); String operationName = Operations.getName(operation); context.addStep(operation, context.getRootResourceRegistration().getOperationHandler(targetRegistrationAddress, operationName), OperationContext.Stage.MODEL, true); } }