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

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


        table.column(new Col("ID"));
        table.column(new Col("Servlet"));
        table.column(new Col("Servlet-Name"));
        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()));
        }
View Full Code Here


    @Override
    public Object execute() throws Exception {
        Map<String, String> loggers = logService.getLevel(logger);

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

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

    public Object execute() throws Exception {
        Map<String, String> loggers = logService.getLevel(logger);

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

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

public class InfoCommand extends JmsConnectionCommandSupport {

    @Override
    public Object execute() throws Exception {
        ShellTable table = new ShellTable();
        table.column("Property");
        table.column("Value");

        Map<String, String> info = getJmsService().info(connectionFactory, username, password);
        for (String key : info.keySet()) {
            table.addRow().addContent(key, info.get(key));
View Full Code Here

    @Override
    public Object execute() throws Exception {
        ShellTable table = new ShellTable();
        table.column("Property");
        table.column("Value");

        Map<String, String> info = getJmsService().info(connectionFactory, username, password);
        for (String key : info.keySet()) {
            table.addRow().addContent(key, info.get(key));
        }
View Full Code Here

    @Override
    public Object execute() throws Exception {

        ShellTable table = new ShellTable();
        table.column("JMS Connection Factory");

        List<String> connectionFactories = getJmsService().connectionFactories();
        for (String connectionFactory : connectionFactories) {
            table.addRow().addContent(connectionFactory);
        }
View Full Code Here

    @Override
    public Object execute() throws Exception {
        ShellTable table = new ShellTable();

        table.column("JMS Queues");

        for (String queue : getJmsService().queues(connectionFactory, username, password)) {
            table.addRow().addContent(queue);
        }
View Full Code Here

    String queue;

    @Override
    public Object execute() throws Exception {
        ShellTable table = new ShellTable();
        table.column("Messages Count");
        table.addRow().addContent(getJmsService().count(connectionFactory, queue, username, password));
        table.print(System.out);
        return null;
    }
View Full Code Here

    @Override
    public Object execute() throws Exception {

        ShellTable table = new ShellTable();
        table.column("Message ID");
        table.column("Content").maxSize(80);
        table.column("Charset");
        table.column("Type");
        table.column("Correlation ID");
        table.column("Delivery Mode");
View Full Code Here

    @Override
    public Object execute() throws Exception {

        ShellTable table = new ShellTable();
        table.column("Message ID");
        table.column("Content").maxSize(80);
        table.column("Charset");
        table.column("Type");
        table.column("Correlation ID");
        table.column("Delivery Mode");
        table.column("Destination");
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.