Package org.nocrala.tools.texttablefmt

Examples of org.nocrala.tools.texttablefmt.Table.addCell()


        private void list() {
            List<ExchangeFarm.ExchangeInfo> exchanges = ExchangeFarm.getAllExchanges();
            myConsole.logResponse("%d exchanges%n", exchanges.size());
            if(exchanges.size() > 0) {
                Table tab = new Table(3);
                tab.addCell("Exchange");
                tab.addCell("Host");
                tab.addCell("Clients");
                for(ExchangeFarm.ExchangeInfo info: exchanges) {
                    tab.addCell(info.name);
                    tab.addCell(info.host);
View Full Code Here


            List<ExchangeFarm.ExchangeInfo> exchanges = ExchangeFarm.getAllExchanges();
            myConsole.logResponse("%d exchanges%n", exchanges.size());
            if(exchanges.size() > 0) {
                Table tab = new Table(3);
                tab.addCell("Exchange");
                tab.addCell("Host");
                tab.addCell("Clients");
                for(ExchangeFarm.ExchangeInfo info: exchanges) {
                    tab.addCell(info.name);
                    tab.addCell(info.host);
                    tab.addCell(String.valueOf(info.refCount), numberStyle);
View Full Code Here

            myConsole.logResponse("%d exchanges%n", exchanges.size());
            if(exchanges.size() > 0) {
                Table tab = new Table(3);
                tab.addCell("Exchange");
                tab.addCell("Host");
                tab.addCell("Clients");
                for(ExchangeFarm.ExchangeInfo info: exchanges) {
                    tab.addCell(info.name);
                    tab.addCell(info.host);
                    tab.addCell(String.valueOf(info.refCount), numberStyle);
                }
View Full Code Here

                Table tab = new Table(3);
                tab.addCell("Exchange");
                tab.addCell("Host");
                tab.addCell("Clients");
                for(ExchangeFarm.ExchangeInfo info: exchanges) {
                    tab.addCell(info.name);
                    tab.addCell(info.host);
                    tab.addCell(String.valueOf(info.refCount), numberStyle);
                }
                myConsole.logResponseNL(tab.render());
            }
View Full Code Here

                tab.addCell("Exchange");
                tab.addCell("Host");
                tab.addCell("Clients");
                for(ExchangeFarm.ExchangeInfo info: exchanges) {
                    tab.addCell(info.name);
                    tab.addCell(info.host);
                    tab.addCell(String.valueOf(info.refCount), numberStyle);
                }
                myConsole.logResponseNL(tab.render());
            }
View Full Code Here

                tab.addCell("Host");
                tab.addCell("Clients");
                for(ExchangeFarm.ExchangeInfo info: exchanges) {
                    tab.addCell(info.name);
                    tab.addCell(info.host);
                    tab.addCell(String.valueOf(info.refCount), numberStyle);
                }
                myConsole.logResponseNL(tab.render());
            }

            try {
View Full Code Here

                myConsole.logResponseNL(tab.render());
            }

            try {
                Table tab = new Table(3);
                tab.addCell("Exchange");
                tab.addCell("Config. Type");
                tab.addCell("Remark");
               
                List<String> fixed_ex = new ZNode(ZNODE_FIXED).getChildren();
                for(String name: fixed_ex) {
View Full Code Here

            }

            try {
                Table tab = new Table(3);
                tab.addCell("Exchange");
                tab.addCell("Config. Type");
                tab.addCell("Remark");
               
                List<String> fixed_ex = new ZNode(ZNODE_FIXED).getChildren();
                for(String name: fixed_ex) {
                    ZooKeeperInfo.Exchange.Builder builder = ZooKeeperInfo.Exchange.newBuilder();
View Full Code Here

            try {
                Table tab = new Table(3);
                tab.addCell("Exchange");
                tab.addCell("Config. Type");
                tab.addCell("Remark");
               
                List<String> fixed_ex = new ZNode(ZNODE_FIXED).getChildren();
                for(String name: fixed_ex) {
                    ZooKeeperInfo.Exchange.Builder builder = ZooKeeperInfo.Exchange.newBuilder();
                    TextFormat.merge(new String(new ZNode(ZNODE_FIXED + "/" + name).getContent()), builder);
View Full Code Here

               
                List<String> fixed_ex = new ZNode(ZNODE_FIXED).getChildren();
                for(String name: fixed_ex) {
                    ZooKeeperInfo.Exchange.Builder builder = ZooKeeperInfo.Exchange.newBuilder();
                    TextFormat.merge(new String(new ZNode(ZNODE_FIXED + "/" + name).getContent()), builder);
                    tab.addCell("{queue,topic}:" + name);
                    tab.addCell("Fixed", new CellStyle(HorizontalAlign.center));
                    tab.addCell(builder.build().getHost());
                }
               
                List<String> drop_ex = new ZNode(ZNODE_DROP).getChildren();
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.