Examples of buildRequest()


Examples of org.jboss.as.cli.operation.impl.DefaultOperationRequestBuilder.buildRequest()

                builder.addNode("subsystem", "datasources");
                builder.addNode(dsType, jndiName.getValue(args, true));
                builder.setOperationName("write-attribute");
                builder.addProperty("name", arg.getPropertyName());
                builder.addProperty("value", value);
                request.add(builder.buildRequest());
            }
        }
    }

    private void initArguments() {
View Full Code Here

Examples of org.jboss.as.cli.operation.impl.DefaultOperationRequestBuilder.buildRequest()

            }
        } else if(Util.isDeployedAndEnabledInStandalone(name, client)) {
            builder = new DefaultOperationRequestBuilder();
            builder.setOperationName("undeploy");
            builder.addNode("deployment", name);
            steps.add(builder.buildRequest());
        }

        if (!keepContent) {
            builder = new DefaultOperationRequestBuilder();
            builder.setOperationName("remove");
View Full Code Here

Examples of org.jboss.as.cli.operation.impl.DefaultOperationRequestBuilder.buildRequest()

        if (!keepContent) {
            builder = new DefaultOperationRequestBuilder();
            builder.setOperationName("remove");
            builder.addNode("deployment", name);
            steps.add(builder.buildRequest());
        }
        return composite;
    }
}
View Full Code Here

Examples of org.jboss.as.cli.operation.impl.DefaultOperationRequestBuilder.buildRequest()

                    builder.setOperationName("read-attribute");
                    builder.addProperty("name", attrName);

                    try {
                        ModelNode result = client.execute(builder.buildRequest());
                        if(!result.hasDefined("result"))
                            return Collections.emptyList();
                        return Collections.singletonList(result.get("result").asString());
                    } catch (Exception e) {
                        return Collections.emptyList();
View Full Code Here

Examples of org.jboss.as.cli.operation.impl.DefaultOperationRequestBuilder.buildRequest()

        builder.addNode("subsystem", "datasources");
        builder.addNode(dsType, name);
        builder.setOperationName(operationName);

        return builder.buildRequest();
    }
}
View Full Code Here

Examples of org.jboss.as.cli.operation.impl.DefaultOperationRequestBuilder.buildRequest()

            final String valueString = args.getPropertyValue(argName);
            ModelNode nodeValue = arg.getValueConverter().fromString(valueString);
            builder.getModelNode().get(Util.VALUE).set(nodeValue);

            steps.add(builder.buildRequest());
        }

        return composite;
    }
View Full Code Here

Examples of org.jboss.as.cli.operation.impl.DefaultOperationRequestBuilder.buildRequest()

                    entriesNode.add(entry);
                }
            }
        }

        return builder.buildRequest();
    }
}
View Full Code Here

Examples of org.jboss.as.cli.operation.impl.DefaultOperationRequestBuilder.buildRequest()

            final String valueString = args.getPropertyValue(argName);
            ModelNode nodeValue = arg.getValueConverter().fromString(valueString);
            builder.getModelNode().get(propName).set(nodeValue);
        }

        return builder.buildRequest();
    }

    @Override
    protected void printHelp(CommandContext ctx) throws CommandFormatException {
View Full Code Here

Examples of org.jboss.as.cli.operation.impl.DefaultOperationRequestBuilder.buildRequest()

        DefaultOperationRequestBuilder builder = new DefaultOperationRequestBuilder();
        builder.addNode("subsystem", "messaging");
        builder.addNode("hornetq-server", serverName);
        builder.addNode(resource, jndiName);
        builder.setOperationName("remove");
        return builder.buildRequest();
    }
}
View Full Code Here

Examples of org.jboss.as.cli.operation.impl.DefaultOperationRequestBuilder.buildRequest()

        builder.addNode("subsystem", "messaging");
        builder.addNode("hornetq-server", serverName);
        builder.addNode("jms-queue", name);
        builder.setOperationName("remove");

        return builder.buildRequest();
    }
}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.