Package org.nocrala.tools.texttablefmt

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


        strOut.write(String.format("MIST %s (%s)%n", Version.getVersion(), clientID));
        strOut.write(String.format("%d service threads%n", services.size()));
        if(services.size() > 0) {
            Table tab = new Table(2);
            tab.addCell("ID");
            tab.addCell("Status");
            for(ServiceProvider s : services) {
                tab.addCell(String.valueOf(s.getId()));
                tab.addCell(s.isReady() ? "idle": "busy");
            }
            strOut.write(tab.render() + "\n");
View Full Code Here


        if(services.size() > 0) {
            Table tab = new Table(2);
            tab.addCell("ID");
            tab.addCell("Status");
            for(ServiceProvider s : services) {
                tab.addCell(String.valueOf(s.getId()));
                tab.addCell(s.isReady() ? "idle": "busy");
            }
            strOut.write(tab.render() + "\n");
        }
        strOut.write(String.format("%d brokers available%n", brokerFarm.getBrokerCount()));
View Full Code Here

            Table tab = new Table(2);
            tab.addCell("ID");
            tab.addCell("Status");
            for(ServiceProvider s : services) {
                tab.addCell(String.valueOf(s.getId()));
                tab.addCell(s.isReady() ? "idle": "busy");
            }
            strOut.write(tab.render() + "\n");
        }
        strOut.write(String.format("%d brokers available%n", brokerFarm.getBrokerCount()));
        if(brokerFarm.getBrokerCount() > 0) {
View Full Code Here

            strOut.write(tab.render() + "\n");
        }
        strOut.write(String.format("%d brokers available%n", brokerFarm.getBrokerCount()));
        if(brokerFarm.getBrokerCount() > 0) {
            Table tab = new Table(2);
            tab.addCell("Host");
            tab.addCell("Status");
            for(Entry<String, ZooKeeperInfo.Broker> ent : brokerFarm.getAllBrokers().entrySet()) {
                tab.addCell(ent.getValue().getHost() + ":" + ent.getValue().getPort());
                tab.addCell(ent.getValue().getStatus().toString());
            }
View Full Code Here

        }
        strOut.write(String.format("%d brokers available%n", brokerFarm.getBrokerCount()));
        if(brokerFarm.getBrokerCount() > 0) {
            Table tab = new Table(2);
            tab.addCell("Host");
            tab.addCell("Status");
            for(Entry<String, ZooKeeperInfo.Broker> ent : brokerFarm.getAllBrokers().entrySet()) {
                tab.addCell(ent.getValue().getHost() + ":" + ent.getValue().getPort());
                tab.addCell(ent.getValue().getStatus().toString());
            }
            strOut.write(tab.render() + "\n");
View Full Code Here

        if(brokerFarm.getBrokerCount() > 0) {
            Table tab = new Table(2);
            tab.addCell("Host");
            tab.addCell("Status");
            for(Entry<String, ZooKeeperInfo.Broker> ent : brokerFarm.getAllBrokers().entrySet()) {
                tab.addCell(ent.getValue().getHost() + ":" + ent.getValue().getPort());
                tab.addCell(ent.getValue().getStatus().toString());
            }
            strOut.write(tab.render() + "\n");
        }
        strOut.write(String.format("%d exchanges transmitted%n", ExchangeMetric.exchangeStat.size()));
View Full Code Here

            Table tab = new Table(2);
            tab.addCell("Host");
            tab.addCell("Status");
            for(Entry<String, ZooKeeperInfo.Broker> ent : brokerFarm.getAllBrokers().entrySet()) {
                tab.addCell(ent.getValue().getHost() + ":" + ent.getValue().getPort());
                tab.addCell(ent.getValue().getStatus().toString());
            }
            strOut.write(tab.render() + "\n");
        }
        strOut.write(String.format("%d exchanges transmitted%n", ExchangeMetric.exchangeStat.size()));
        if(ExchangeMetric.exchangeStat.size() > 0) {
View Full Code Here

            strOut.write(tab.render() + "\n");
        }
        strOut.write(String.format("%d exchanges transmitted%n", ExchangeMetric.exchangeStat.size()));
        if(ExchangeMetric.exchangeStat.size() > 0) {
            Table tab = new Table(5);
            tab.addCell("Exchange");
            tab.addCell("In-Count");
            tab.addCell("In-Bytes");
            tab.addCell("Out-Count");
            tab.addCell("Out-Bytes");
            for(Map.Entry<String, ExchangeMetric> e : ExchangeMetric.exchangeStat.entrySet()) {
View Full Code Here

        }
        strOut.write(String.format("%d exchanges transmitted%n", ExchangeMetric.exchangeStat.size()));
        if(ExchangeMetric.exchangeStat.size() > 0) {
            Table tab = new Table(5);
            tab.addCell("Exchange");
            tab.addCell("In-Count");
            tab.addCell("In-Bytes");
            tab.addCell("Out-Count");
            tab.addCell("Out-Bytes");
            for(Map.Entry<String, ExchangeMetric> e : ExchangeMetric.exchangeStat.entrySet()) {
                ExchangeMetric info = e.getValue();
View Full Code Here

        strOut.write(String.format("%d exchanges transmitted%n", ExchangeMetric.exchangeStat.size()));
        if(ExchangeMetric.exchangeStat.size() > 0) {
            Table tab = new Table(5);
            tab.addCell("Exchange");
            tab.addCell("In-Count");
            tab.addCell("In-Bytes");
            tab.addCell("Out-Count");
            tab.addCell("Out-Bytes");
            for(Map.Entry<String, ExchangeMetric> e : ExchangeMetric.exchangeStat.entrySet()) {
                ExchangeMetric info = e.getValue();
                tab.addCell(e.getKey());
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.