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

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


            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) {
View Full Code Here

                }

                FileInputStream is = null;
                try {
                    is = new FileInputStream(f);
                    ModelNode request = builder.buildRequest();
                    OperationBuilder op = new OperationBuilder(request);
                    op.addInputStream(is);
                    request.get(Util.CONTENT).get(0).get(Util.INPUT_STREAM_INDEX).set(0);
                    result = client.execute(op.build());
                } catch(Exception e) {
View Full Code Here

                    builder.addProperty(Util.RUNTIME_NAME, runtimeName);
                }

                byte[] bytes = readBytes(f);
                builder.getModelNode().get(Util.CONTENT).get(0).get(Util.BYTES).set(bytes);
                return builder.buildRequest();
            } else {
                throw new OperationFormatException("'" + name + "' is already deployed (use -f to force re-deploy).");
            }
        }
View Full Code Here

                builder.addProperty(Util.RUNTIME_NAME, runtimeName);
            }

            byte[] bytes = readBytes(f);
            builder.getModelNode().get(Util.CONTENT).get(0).get(Util.BYTES).set(bytes);
            steps.add(builder.buildRequest());
        }

        if(!disabled.isPresent(args)) {
            // deploy
            if (ctx.isDomainMode()) {
View Full Code Here

                }
            } else {
                builder = new DefaultOperationRequestBuilder();
                builder.setOperationName(Util.DEPLOY);
                builder.addNode(Util.DEPLOYMENT, name);
                steps.add(builder.buildRequest());
            }
        }
        return composite;
    }
View Full Code Here

                    entriesNode.add(entry);
                }
            }
        }

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

        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

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

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

            }
        } 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

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.