Package org.jboss.as.console.client.shared.runtime.charts

Examples of org.jboss.as.console.client.shared.runtime.charts.BulletGraphView


            }
        };

        if(Console.protovisAvailable())
        {
            inflightSampler = new BulletGraphView(title, "count")
                    .setColumns(cols);
        }
        else
        {
            inflightSampler = new PlainColumnView(title, addressCallback)
                    .setColumns(cols)
                    .setWidth(100, Style.Unit.PCT);
        }

        // ----


        NumberColumn processedCol = new NumberColumn("messages-added", "Added");
        Column[] cols2 = new Column[] {
                processedCol.setBaseline(true),
                new NumberColumn("durable-message-count","Durable").setComparisonColumn(processedCol),
                new NumberColumn("non-durable-message-count","Non-Durable").setComparisonColumn(processedCol)
        };

        String title2 = "Messages Processed";

        if(Console.protovisAvailable())
        {
            processedSampler = new BulletGraphView(title2, "count")
                    .setColumns(cols2);
        }
        else
        {
            processedSampler = new PlainColumnView(title2, addressCallback)
                    .setColumns(cols2)
                    .setWidth(100, Style.Unit.PCT);
        }

        // ----

        NumberColumn subscriptionsCols = new NumberColumn("subscription-count", "Subscriptions");
        Column[] cols3 = new Column[] {
                subscriptionsCols.setBaseline(true),
                new NumberColumn("durable-subscription-count","Durable").setComparisonColumn(subscriptionsCols),
                new NumberColumn("non-durable-subscription-count","Nun-Durable").setComparisonColumn(subscriptionsCols)
        };

        String title3 = "Subscriptions";

        if(Console.protovisAvailable())
        {
            subscriptionSampler = new BulletGraphView(title3, "count")
                    .setColumns(cols3);
        }
        else
        {
            subscriptionSampler = new PlainColumnView(title3, addressCallback)
View Full Code Here


            }
        };

        if(Console.protovisAvailable())
        {
            sampler = new BulletGraphView(title, "count")
                    .setColumns(cols);
        }
        else
        {


            sampler = new PlainColumnView(title, addressCallback)
                    .setColumns(cols)
                    .setWidth(100, Style.Unit.PCT);
        }

        // ----

        Column[] cols2 = new Column[] {
                new NumberColumn("messages-added", "Added"),
                new NumberColumn("scheduled-count","Scheduled")
        };

        String title2 = "Messages Processed";


        if(Console.protovisAvailable())
        {
            messageSampler = new BulletGraphView(title2, "count")
                    .setColumns(cols2);
        }
        else
        {
            messageSampler = new PlainColumnView(title2, addressCallback)
                    .setColumns(cols2)
                    .setWidth(100, Style.Unit.PCT);
        }
        // ----


        NumberColumn consumerCol = new NumberColumn("consumer-count", "Consumers");
        Column[] cols3 = new Column[] {
                consumerCol
        };

        String title3 = "Consumer";


        if(Console.protovisAvailable())
        {
            consumerSampler = new BulletGraphView(title3, "count")
                    .setColumns(cols3);
        }
        else
        {
            consumerSampler = new PlainColumnView(title3, addressCallback)
View Full Code Here

            }
        };

        if(Console.protovisAvailable())
        {
            sampler = new BulletGraphView(title, "count")
                    .setColumns(cols);
        }
        else
        {


            sampler = new PlainColumnView(title, addressCallback)
                    .setColumns(cols)
                    .setWidth(100, Style.Unit.PCT);
        }

        // ----

        Column[] cols2 = new Column[] {
                new NumberColumn("messages-added", "Added"),
                new NumberColumn("scheduled-count","Scheduled")
        };

        String title2 = "Messages Processed";


        if(Console.protovisAvailable())
        {
            messageSampler = new BulletGraphView(title2, "count")
                    .setColumns(cols2);
        }
        else
        {
            messageSampler = new PlainColumnView(title2, addressCallback)
                    .setColumns(cols2)
                    .setWidth(100, Style.Unit.PCT);
        }
        // ----


        NumberColumn consumerCol = new NumberColumn("consumer-count", "Consumers");
        Column[] cols3 = new Column[] {
                consumerCol
        };

        String title3 = "Consumer";


        if(Console.protovisAvailable())
        {
            consumerSampler = new BulletGraphView(title3, "count")
                    .setColumns(cols3);
        }
        else
        {
            consumerSampler = new PlainColumnView(title3, addressCallback)
View Full Code Here

                new NumberColumn("MaxUsedCount","Max Used").setComparisonColumn(avail)
        };

        if(Console.protovisAvailable())
        {
            poolSampler = new BulletGraphView(title, "count")
                    .setColumns(cols);
        }
        else
        {
            poolSampler = new PlainColumnView(title, addressCallback)
                    .setColumns(cols)
                    .setWidth(100, Style.Unit.PCT);

        }


        // ----

        DefaultPager pager = new DefaultPager();
        pager.setDisplay(table);

        VerticalPanel tablePanel = new VerticalPanel();
        tablePanel.setStyleName("fill-layout-width");
        tablePanel.add(table);
        tablePanel.add(pager);


        // ----


        String title2 = "Pool Usage";

        final HelpSystem.AddressCallback addressCallback2 = new HelpSystem.AddressCallback() {
            @Override
            public ModelNode getAddress() {
                ModelNode address = new ModelNode();
                address.get(ModelDescriptionConstants.ADDRESS).set(RuntimeBaseAddress.get());
                address.get(ModelDescriptionConstants.ADDRESS).add("subsystem", "datasources");
                address.get(ModelDescriptionConstants.ADDRESS).add(subaddress, getCurrentSelection().getName());
                address.get(ModelDescriptionConstants.ADDRESS).add("statistics", "jdbc");
                return address;
            }
        };

        // ----


        NumberColumn avail2 = new NumberColumn("PreparedStatementCacheCurrentSize", "Current Size");
        Column[] cols2 = new Column[] {
                avail2.setBaseline(true),
                new NumberColumn("PreparedStatementCacheHitCount","Hit Count").setComparisonColumn(avail2),
                new NumberColumn("PreparedStatementCacheMissCount","Miss Used").setComparisonColumn(avail2)
        };

        if(Console.protovisAvailable())
        {
            cacheSampler = new BulletGraphView(title2, "count")
                    .setColumns(cols2);
        }
        else
        {
            cacheSampler = new PlainColumnView(title2, addressCallback2)
View Full Code Here

            }
        };

        if(Console.protovisAvailable())
        {
            inflightSampler = new BulletGraphView(title, "count")
                    .setColumns(cols);
        }
        else
        {
            inflightSampler = new PlainColumnView(title, addressCallback)
                    .setColumns(cols)
                    .setWidth(100, Style.Unit.PCT);
        }

        // ----


        NumberColumn processedCol = new NumberColumn("messages-added", "Added");
        Column[] cols2 = new Column[] {
                processedCol.setBaseline(true),
                new NumberColumn("durable-message-count","Durable").setComparisonColumn(processedCol),
                new NumberColumn("non-durable-message-count","Non-Durable").setComparisonColumn(processedCol)
        };

        String title2 = "Messages Processed";

        if(Console.protovisAvailable())
        {
            processedSampler = new BulletGraphView(title2, "count")
                    .setColumns(cols2);
        }
        else
        {
            processedSampler = new PlainColumnView(title2, addressCallback)
                    .setColumns(cols2)
                    .setWidth(100, Style.Unit.PCT);
        }

        // ----

        NumberColumn subscriptionsCols = new NumberColumn("subscription-count", "Subscriptions");
        Column[] cols3 = new Column[] {
                subscriptionsCols.setBaseline(true),
                new NumberColumn("durable-subscription-count","Durable").setComparisonColumn(subscriptionsCols),
                new NumberColumn("non-durable-subscription-count","Nun-Durable").setComparisonColumn(subscriptionsCols)
        };

        String title3 = "Subscriptions";

        if(Console.protovisAvailable())
        {
            subscriptionSampler = new BulletGraphView(title3, "count")
                    .setColumns(cols3);
        }
        else
        {
            subscriptionSampler = new PlainColumnView(title3, addressCallback)
View Full Code Here

            }
        };

        if(Console.protovisAvailable())
        {
            sampler = new BulletGraphView(title, "count")
                    .setColumns(cols);
        }
        else
        {


            sampler = new PlainColumnView(title, addressCallback)
                    .setColumns(cols)
                    .setWidth(100, Style.Unit.PCT);
        }

        // ----

        Column[] cols2 = new Column[] {
                new NumberColumn("messages-added", "Added"),
                new NumberColumn("scheduled-count","Scheduled")
        };

        String title2 = "Messages Processed";


        if(Console.protovisAvailable())
        {
            messageSampler = new BulletGraphView(title2, "count")
                    .setColumns(cols2);
        }
        else
        {
            messageSampler = new PlainColumnView(title2, addressCallback)
                    .setColumns(cols2)
                    .setWidth(100, Style.Unit.PCT);
        }
        // ----


        NumberColumn consumerCol = new NumberColumn("consumer-count", "Consumers");
        Column[] cols3 = new Column[] {
                consumerCol
        };

        String title3 = "Consumer";


        if(Console.protovisAvailable())
        {
            consumerSampler = new BulletGraphView(title3, "count")
                    .setColumns(cols3);
        }
        else
        {
            consumerSampler = new PlainColumnView(title3, addressCallback)
View Full Code Here

                new NumberColumn("number-of-resource-rollbacks","Resources")
        };

        String title = "Failure Origin";
        if(Console.protovisAvailable()) {
            sampler = new BulletGraphView(title, "number of failures")
                    .setColumns(cols);
        }
        else
        {
View Full Code Here

                new NumberColumn("number-of-timed-out-transactions", "Timed Out").setComparisonColumn(total)
        };

        String title = "Success Ratio";
        if(Console.protovisAvailable()) {
            sampler = new BulletGraphView(title, "number of transactions")
                    .setColumns(cols);
        }
        else
        {
            final HelpSystem.AddressCallback addressCallback = new HelpSystem.AddressCallback() {
View Full Code Here

            }
        };

        if(Console.protovisAvailable())
        {
            inflightSampler = new BulletGraphView(title, "count")
                    .setColumns(cols);
        }
        else
        {
            inflightSampler = new PlainColumnView(title, addressCallback)
                    .setColumns(cols)
                    .setWidth(100, Style.Unit.PCT);
        }

        // ----


        NumberColumn processedCol = new NumberColumn("messages-added", "Added");
        Column[] cols2 = new Column[] {
                processedCol.setBaseline(true),
                new NumberColumn("durable-message-count","Durable").setComparisonColumn(processedCol),
                new NumberColumn("non-durable-message-count","Non-Durable").setComparisonColumn(processedCol)
        };

        String title2 = "Messages Processed";

        if(Console.protovisAvailable())
        {
            processedSampler = new BulletGraphView(title2, "count")
                    .setColumns(cols2);
        }
        else
        {
            processedSampler = new PlainColumnView(title2, addressCallback)
                    .setColumns(cols2)
                    .setWidth(100, Style.Unit.PCT);
        }

        // ----

        NumberColumn subscriptionsCols = new NumberColumn("subscription-count", "Subscriptions");
        Column[] cols3 = new Column[] {
                subscriptionsCols.setBaseline(true),
                new NumberColumn("durable-subscription-count","Durable").setComparisonColumn(subscriptionsCols),
                new NumberColumn("non-durable-subscription-count","Nun-Durable").setComparisonColumn(subscriptionsCols)
        };

        String title3 = "Subscriptions";

        if(Console.protovisAvailable())
        {
            subscriptionSampler = new BulletGraphView(title3, "count")
                    .setColumns(cols3);
        }
        else
        {
            subscriptionSampler = new PlainColumnView(title3, addressCallback)
View Full Code Here

                new NumberColumn("comitted","Committed"),
                new NumberColumn("init","Init"),
        };

        if(Console.protovisAvailable()) {
            sampler = new BulletGraphView(title, "mb")
                    .setColumns(heapCols);
        }
        else
        {
View Full Code Here

TOP

Related Classes of org.jboss.as.console.client.shared.runtime.charts.BulletGraphView

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.