Package org.jboss.as.cli.operation.impl

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


                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());
            }
        }
    }
View Full Code Here


                        return Collections.emptyList();
                    }
                    builder.addNode(dsType, dsName);

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

                    try {
                        ModelNode result = client.execute(builder.buildRequest());
                        if(!result.hasDefined("result"))
                            return Collections.emptyList();
View Full Code Here

            builder.addNode("jms-queue", name);
            builder.setOperationName("add");
            builder.getModelNode().get("entries").add(jndiName);

            for(String prop : props.keySet()) {
                builder.addProperty(prop, props.get(prop));
            }

            return builder.buildRequest();

        } else if(restype.equals("javax.jms.Topic")) {
View Full Code Here

            if(argName.equals("name")) {
                name = ctx.getNamedArgument(argName);
            } else if(argName.equals("entries")) {
                entriesStr = ctx.getNamedArgument(argName);
            } else {
                builder.addProperty(argName, ctx.getNamedArgument(argName));
            }
        }

        if(name == null) {
            throw new OperationFormatException("Required argument 'name' is missing.");
View Full Code Here

            }
        }

        final String selector = ctx.getNamedArgument("selector");
        if(selector != null) {
            builder.addProperty("selector", selector);
        }

        final String durable = ctx.getNamedArgument("durable");
        if(durable != null) {
            builder.addProperty("durable", durable);
View Full Code Here

            builder.addProperty("selector", selector);
        }

        final String durable = ctx.getNamedArgument("durable");
        if(durable != null) {
            builder.addProperty("durable", durable);
        }

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

            builder.addNode("queue", name);
            builder.setOperationName("add");
            builder.getModelNode().get("entries").add(jndiName);

            for(String prop : props.keySet()) {
                builder.addProperty(prop, props.get(prop));
            }

            return builder.buildRequest();

        } else if(restype.equals("javax.jms.Topic")) {
View Full Code Here

            builder.addNode("topic", name);
            builder.setOperationName("add");
            builder.getModelNode().get("entries").add(jndiName);

            for(String prop : props.keySet()) {
                builder.addProperty(prop, props.get(prop));
            }

            return builder.buildRequest();

        } else if(restype.equals("javax.jms.ConnectionFactory") ||
View Full Code Here

            builder.addNode("connection-factory", name);
            builder.setOperationName("add");
            builder.getModelNode().get("entries").add(jndiName);

            for(String prop : props.keySet()) {
                builder.addProperty(prop, props.get(prop));
            }

            return builder.buildRequest();

        } else {
View Full Code Here

                ModelNode result;

                // replace
                builder = new DefaultOperationRequestBuilder();
                builder.setOperationName("full-replace-deployment");
                builder.addProperty("name", name);
                if(runtimeName != null) {
                    builder.addProperty("runtime-name", runtimeName);
                }

                FileInputStream is = null;
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.