Package org.jboss.as.console.client.shared.flow

Examples of org.jboss.as.console.client.shared.flow.FunctionCallback


                    }
                }
            }

            node.get(STEPS).set(steps);
            dispatcher.execute(new DMRAction(node), new FunctionCallback(control) {
                @Override
                public void onFailure(final Throwable caught) {
                    control.getContext().push(new VerifyResult(caught));
                    if (existing) { control.proceed(); } else { control.abort(); }
                }
View Full Code Here


                    }
                }
            }

            node.get(STEPS).set(steps);
            dispatcher.execute(new DMRAction(node), new FunctionCallback(control) {
                @Override
                protected void onSuccess(final ModelNode result) {
                    /* For a composite op the "installed-drivers-list" reads as
                     * "server-groups" => {"<groupName>" => {"host" => {"<hostName>" => {"<serverName>" => {"response" => {
                     *   "outcome" => "success",
View Full Code Here

                    }
                }
            }

            node.get(STEPS).set(steps);
            dispatcher.execute(new DMRAction(node), new FunctionCallback(control) {
                @Override
                public void onFailure(final Throwable caught) {
                    control.getContext().push(new VerifyResult(caught));
                    if (existing) { control.abort(); } else { control.proceed(); }
                }
View Full Code Here

            groupsOp.get(ADDRESS).setEmptyList();
            groupsOp.get(CHILD_TYPE).set("server-group");
            steps.add(groupsOp);

            node.get(STEPS).set(steps);
            dispatcher.execute(new DMRAction(node, false), new FunctionCallback(control) {
                @Override
                protected void onSuccess(final ModelNode result) {
                    ModelNode stepsResult = result.get(RESULT);

                    List<HostInfo> hosts = new LinkedList<HostInfo>();
View Full Code Here

                stepToHost.put("step-" + step, hostInfo);
                step++;
            }

            node.get(STEPS).set(steps);
            dispatcher.execute(new DMRAction(node), new FunctionCallback(control) {
                @Override
                protected void onSuccess(final ModelNode result) {
                    ModelNode stepsResult = result.get(RESULT);
                    for (Map.Entry<String, HostInfo> entry : stepToHost.entrySet()) {
                        String step = entry.getKey();
View Full Code Here

                    }
                }
            }

            node.get(STEPS).set(steps);
            dispatcher.execute(new DMRAction(node), new FunctionCallback(control) {
                @Override
                protected void onSuccess(final ModelNode result) {
                    ModelNode stepsResult = result.get(RESULT);
                    if (stepsResult.isDefined()) {
                        List<Property> properties = stepsResult.asPropertyList();
View Full Code Here

        @Override
        public void execute(final Control<FunctionContext> control) {
            ModelNode node = ModelHelper.roleMapping(role);
            node.get(OP).set(READ_RESOURCE_OPERATION);
            dispatcher.execute(new DMRAction(node), new FunctionCallback(control) {
                @Override
                protected void proceed() {
                    // role exists - next function will skip its DMR operation
                    control.getContext().push(true);
                    control.proceed();
View Full Code Here

            if (roleExists) {
                control.proceed();
            } else {
                ModelNode node = ModelHelper.roleMapping(role);
                node.get(OP).set(ADD);
                dispatcher.execute(new DMRAction(node), new FunctionCallback(control));
            }
        }
View Full Code Here

        public void execute(final Control<FunctionContext> control) {
            ModelNode node = ModelHelper.roleMapping(role);
            node.get(NAME).set("include-all");
            node.get(VALUE).set(role.isIncludeAll());
            node.get(OP).set(WRITE_ATTRIBUTE_OPERATION);
            dispatcher.execute(new DMRAction(node), new FunctionCallback(control));
        }
View Full Code Here

                step.get(OP).set(REMOVE);
                steps.add(step);
            }

            node.get(STEPS).set(steps);
            dispatcher.execute(new DMRAction(node), new FunctionCallback(control));
        }
View Full Code Here

TOP

Related Classes of org.jboss.as.console.client.shared.flow.FunctionCallback

Copyright © 2018 www.massapicom. 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.