Package org.cipango.console.printer.generic

Examples of org.cipango.console.printer.generic.PropertiesPrinter


  public DiameterStatisticsPrinter(MBeanServerConnection connection) throws Exception
  {
    _connection = connection;
    ObjectName objectName = (ObjectName) _connection.getAttribute(ConsoleFilter.DIAMETER_NODE, "sessionManager");
   
    add(new PropertiesPrinter(objectName, "diameter.stats.sessions",  _connection));
   
    ObjectName[] transports = (ObjectName[]) _connection.getAttribute(
        ConsoleFilter.DIAMETER_NODE, "connectors");
    for (int i = 0; i < transports.length; i++)
      add(new PropertiesPrinter(transports[i], "diameter.stats.msg",  _connection));
   
    @SuppressWarnings("unchecked")
    Set<ObjectName> peers = _connection.queryNames(ConsoleFilter.DIAMETER_PEERS, null);
    add(new SetPrinter(peers, "diameter.stats.pending", _connection));
  }
View Full Code Here


        String name = property.getName();
        int index = name.indexOf("since statsReset()");
        if (index != -1)
          property.setName(name.substring(0, index));
      }
      add(new PropertiesPrinter(propertyList));
     
      add(new HtmlPrinter()
      {
       
        public void print(Writer out) throws Exception
View Full Code Here

  public SipStatisticPrinter(MBeanServerConnection connection, StatisticGraph statisticGraph, Integer time) throws Exception
  {
    _connection = connection;
    _statisticGraph = statisticGraph;
    add(new PropertiesPrinter(new PropertyList(connection, "sip.messages")));
   
    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())
    {
View Full Code Here

  }
 
  private void doAbout(HttpServletRequest request) throws Exception
  {
    MultiplePrinter printer = new MultiplePrinter();
    printer.add(new PropertiesPrinter(getVersion()));
    printer.add(new PropertiesPrinter(getEnvironment()));
    request.setAttribute(Attributes.CONTENT, printer);
  }
View Full Code Here

      String name = property.getName();
      int index = Math.max(name.indexOf("in pool"), name.indexOf("in the pool"));
      if (index != -1)
        property.setName(name.substring(0, index));
    }
    printer.add(new PropertiesPrinter(properties));
   
    printer.add(new PropertiesPrinter(ConsoleFilter.TRANSACTION_MANAGER, "sip.timers", _mbsc)
    {
      @Override
      protected void printHeaders(Writer out, boolean hasNotes) throws Exception
      {
        out.write("<div class=\"data\">\n<table>\n"
View Full Code Here

 
  private void doDiameterConfig(HttpServletRequest request)
  throws Exception
  {   
    MultiplePrinter printer = new MultiplePrinter();
    printer.add(new PropertiesPrinter(DIAMETER_NODE, "diameter.node",  _mbsc));
   
    ObjectName[] transports = (ObjectName[]) _mbsc.getAttribute(
        ConsoleFilter.DIAMETER_NODE, "connectors");
    printer.add(new SetPrinter(transports, "diameter.transport", _mbsc));
   
    printer.add(new PropertiesPrinter(DIAMETER_NODE, "diameter.timers",  _mbsc));

    @SuppressWarnings("unchecked")
    Set<ObjectName> peers = _mbsc.queryNames(ConsoleFilter.DIAMETER_PEERS, null);
    printer.add(new SetPrinter(peers, "diameter.peers", _mbsc))
         
View Full Code Here

      String name = property.getName();
      int index = Math.max(name.indexOf("in pool"), name.indexOf("in the pool"));
      if (index != -1)
        property.setName(name.substring(0, index));
    }
    printer.add(new PropertiesPrinter(properties));
             
    request.setAttribute(Attributes.CONTENT, printer);
  }
View Full Code Here

TOP

Related Classes of org.cipango.console.printer.generic.PropertiesPrinter

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.