Package org.apache.karaf.shell.support.table

Examples of org.apache.karaf.shell.support.table.ShellTable.addRow()


        ShellTable table = new ShellTable();
        table.column("Name");
        table.column("Schedule");
        Map<Object, ScheduleOptions> jobs = scheduler.getJobs();
        for (Map.Entry<Object, ScheduleOptions> entry : jobs.entrySet()) {
            table.addRow().addContent(entry.getValue().name(), entry.getValue().schedule());
        }
        table.print(System.out);
        return null;
    }
}
View Full Code Here


        table.column(new Col("Name"));
       
        java.util.List<WebBundle> webBundles = webContainerService.list();
        if (webBundles != null && !webBundles.isEmpty()) {
            for (WebBundle webBundle : webBundles) {
              table.addRow().addContent(
                        webBundle.getBundleId(),
                        webBundle.getState(),
                        webBundle.getWebState(),
                        webBundle.getLevel(),
                        webBundle.getContextPath(),
View Full Code Here

        table.column("RMI Server").alignRight();
        table.column("State");
        table.column("PID");
        table.column(getRightColumnHeader());
        for (Instance instance : instances) {
            table.addRow().addContent(
                    instance.getSshPort(),
                    instance.getRmiRegistryPort(),
                    instance.getRmiServerPort(),
                    instance.getState(),
                    instance.getPid(),
View Full Code Here

        table.column("Property");
        table.column("Value");

        Map<String, String> info = this.getJdbcService().info(datasource);
        for (String property : info.keySet()) {
            table.addRow().addContent(property, info.get(property));
        }

        table.print(System.out);

        return null;
View Full Code Here

            table.column(column);
            rowCount = map.get(column).size();
        }

        for (int i = 0; i < rowCount; i++) {
            Row row = table.addRow();
            for (String column : map.keySet()) {
                row.addContent(map.get(column).get(i));
            }
        }
View Full Code Here

            table.column(column);
            rowCount = map.get(column).size();
        }

        for (int i = 0; i < rowCount; i++) {
            Row row = table.addRow();
            for (String column : map.keySet()) {
                row.addContent(map.get(column).get(i));
            }
        }
View Full Code Here

                ids.append(id);
            }
            String id = ids.toString();
            try {
                Map<String, String> info = this.getJdbcService().info(entry.getKey());
                table.addRow().addContent(id, info.get("db.product"), info.get("db.version"), info.get("url"), "OK");
            } catch (Exception e) {
                table.addRow().addContent(id, "", "", "", "Error");
            }
        }
View Full Code Here

            String id = ids.toString();
            try {
                Map<String, String> info = this.getJdbcService().info(entry.getKey());
                table.addRow().addContent(id, info.get("db.product"), info.get("db.version"), info.get("url"), "OK");
            } catch (Exception e) {
                table.addRow().addContent(id, "", "", "", "Error");
            }
        }

        table.print(System.out);
View Full Code Here

        table.column(new Col("State"));
        table.column(new Col("Alias"));
        table.column(new Col("Url"));

        for (ServletInfo info : servletService.getServlets()) {
            table.addRow().addContent(info.getBundle().getBundleId(), info.getClassName(), info.getName(),
                                      info.getStateString(), info.getAlias(), Arrays.toString(info.getUrls()));
        }
        table.print(System.out, !noFormat);
        return null;
    }
View Full Code Here

        ShellTable table = new ShellTable();
        table.column("Logger");
        table.column("Level");

        for (String logger : loggers.keySet()) {
            table.addRow().addContent(logger, loggers.get(logger));
        }

        table.print(System.out, !noFormat);

        return null;
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.