Package org.cipango.console

Examples of org.cipango.console.Table


   
    ObjectName sessionManager = (ObjectName) _connection.getAttribute(ConsoleFilter.SERVER, "sessionManager");
    add(new PropertiesPrinter(sessionManager, "sip.callSessions", _connection));
    ObjectName[] contexts = PrinterUtil.getSipAppContexts(_connection);
   
    Table table = new Table(_connection, contexts, "sip.applicationSessions");
    for (Header header : table.getHeaders())
    {
      int index = header.getName().indexOf("Sip application sessions");
      if (index != -1)
        header.setName(header.getName().substring(0, index));
    }
View Full Code Here


          propertyList.setTitle(titlePrefix + ": " + propertyList.getTitle());
        add(new PropertiesTextPrinter(propertyList));
      }
      if (printer instanceof SetPrinter)
      {
        Table table = ((SetPrinter) printer).getTable();
        if (titlePrefix != null)
          table.setTitle(titlePrefix + ": " + table.getTitle());
        add(new SetTextPrinter(table));
      }
    }
  }
View Full Code Here

 
  public ApplicationPrinter(MBeanServerConnection connection) throws Exception
  {
    ObjectName[] sipContexts = PrinterUtil.getSipAppContexts(connection);
   
    Table contextsTable = new Table(connection, sipContexts, "appContexts");

    add(new SetPrinter(contextsTable));
   
    ObjectName[] otherContexts = PrinterUtil.getNonSipAppContexts(connection);
    if (otherContexts != null && otherContexts.length > 0)
    {
      Table otherContextsTable = new Table(connection, otherContexts, "otherContexts");
      for (Row row : otherContextsTable)
      {
        int index = 0;
        for (Header header : contextsTable.getHeaders())
        {
View Full Code Here

    _table = table;
  }
 
  public SetPrinter(Set<ObjectName> objectNameSet, String propertyName, MBeanServerConnection connection) throws Exception
  {
    _table = new Table(connection, objectNameSet, propertyName);
  }
View Full Code Here

    _table = new Table(connection, objectNameSet, propertyName);
  }

  public SetPrinter(ObjectName[] objectNames, String propertyName, MBeanServerConnection connection) throws Exception
  {
    _table = new Table(connection, objectNames, propertyName);
  }
View Full Code Here

TOP

Related Classes of org.cipango.console.Table

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.