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

Examples of org.jboss.as.console.client.shared.viewframework.DmrCallback


        steps.get(STEPS).add(readAttrOp);

    //    System.out.println("load entities for " + this.type.getName());
    //    System.out.println(steps.toString());

        dispatcher.execute(new DMRAction(steps), new DmrCallback() {
            @Override
            public void onDmrSuccess(ModelNode response) {
         //      System.out.println("response=");
         //      System.out.println(response.toString());
               onLoadEntitiesSuccess(response);
View Full Code Here


        operation.get(OP).set(READ_RESOURCE_DESCRIPTION_OPERATION);
        operation.get(ADDRESS).set(Baseadress.get());
        operation.get(ADDRESS).add("subsystem", "logging");
        operation.get(ADDRESS).add("console-handler", "*");
       
        dispatcher.execute(new DMRAction(operation), new DmrCallback() {
            @Override
            public void onDmrSuccess(ModelNode response) {
                List<ModelNode> resultList = response.get("result").asList();
                ModelNode resultNode = null;
                for (ModelNode node : resultList) {
View Full Code Here

        steps.get(STEPS).add(readAttrOp);

   //     System.out.println("load entities for " + this.type.getName());
   //     System.out.println(steps.toString());

        dispatcher.execute(new DMRAction(steps), new DmrCallback() {
            @Override
            public void onDmrSuccess(ModelNode response) {
        //       System.out.println("loadEntities response=");
        //       System.out.println(response.toString());
               onLoadEntitiesSuccess(response);
View Full Code Here

        operation.get(ADDRESS).set(Baseadress.get());
        operation.get(ADDRESS).add("subsystem", "infinispan");
        operation.get(OP).set(READ_CHILDREN_NAMES_OPERATION);
        operation.get(CHILD_TYPE).set("cache-container");

        dispatcher.execute(new DMRAction(operation), new DmrCallback() {
            @Override
            public void onDmrSuccess(ModelNode response) {
                List<String> cacheContainers = new ArrayList<String>();
                for (ModelNode container : response.get(RESULT).asList()) {
                    cacheContainers.add(container.asString());
View Full Code Here

        operation.get(OP).set(READ_RESOURCE_DESCRIPTION_OPERATION);
        operation.get(ADDRESS).set(Baseadress.get());
        operation.get(ADDRESS).add("subsystem", "logging");
        operation.get(ADDRESS).add("console-handler", "*");
       
        dispatcher.execute(new DMRAction(operation), new DmrCallback() {
            @Override
            public void onDmrSuccess(ModelNode response) {
                List<ModelNode> resultList = response.get("result").asList();
                ModelNode resultNode = null;
                for (ModelNode node : resultList) {
View Full Code Here

        steps.get(STEPS).add(readAttrOp);

   //     System.out.println("load entities for " + this.type.getName());
   //     System.out.println(steps.toString());

        dispatcher.execute(new DMRAction(steps), new DmrCallback() {
            @Override
            public void onDmrSuccess(ModelNode response) {
        //       System.out.println("loadEntities response=");
        //       System.out.println(response.toString());
               onLoadEntitiesSuccess(response);
View Full Code Here

        operation.get(ADDRESS).set(Baseadress.get());
        operation.get(ADDRESS).add("subsystem", "infinispan");
        operation.get(OP).set(READ_CHILDREN_NAMES_OPERATION);
        operation.get(CHILD_TYPE).set("cache-container");

        dispatcher.execute(new DMRAction(operation), new DmrCallback() {
            @Override
            public void onDmrSuccess(ModelNode response) {
                List<String> cacheContainers = new ArrayList<String>();
                for (ModelNode container : response.get(RESULT).asList()) {
                    cacheContainers.add(container.asString());
View Full Code Here

        ModelNode operation = LoggingOperation.make(READ_CHILDREN_TYPES_OPERATION);

        // REFACTOR ME!!
        // This finds all the handler types (plus loggers) then does a read-children-resources request for each one.
        // Instead, we need to just do a single recursive request for everything.
        dispatcher.execute(new DMRAction(operation), new DmrCallback() {
            @Override
            public void onDmrSuccess(ModelNode response) {
                List<ModelNode> payload = response.get("result").asList();
                for (final ModelNode node : payload) {
                    final String handlerType = node.asString();
                    ModelNode operation = LoggingOperation.make(READ_CHILDREN_RESOURCES_OPERATION);
                    operation.get(CHILD_TYPE).set(handlerType);

                    dispatcher.execute(new DMRAction(operation), new DmrCallback() {
                        @Override
                        public void onDmrSuccess(ModelNode response) {
                            if (!response.get("result").isDefined()) return;
                           
                            List<ModelNode> payload = response.get("result").asList();
View Full Code Here

       
        execute(operation, name, false, "Success: Updated Log Level");
    }
   
    private void execute(ModelNode operation, final String nameEditedOrAdded, final boolean isHandlerOp, final String successMessage) {
        dispatcher.execute(new DMRAction(operation), new DmrCallback() {
            @Override
            public void onDmrSuccess(ModelNode response) {
                Console.info(successMessage);
                loggingInfo.refreshView(nameEditedOrAdded, isHandlerOp);
            }
View Full Code Here

    }
   
    private void setRootLogger() {
        ModelNode operation = LoggingOperation.make(READ_RESOURCE_OPERATION);
       
        dispatcher.execute(new DMRAction(operation), new DmrCallback() {
            @Override
            public void onDmrSuccess(ModelNode response) {
                ModelNode resultNode = response.get("result");
                ModelNode node = resultNode.get("root-logger");
                LoggingInfo.this.rootLogger = makeLogger(node, "root-logger");
View Full Code Here

TOP

Related Classes of org.jboss.as.console.client.shared.viewframework.DmrCallback

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.