Package railo.runtime.dump

Examples of railo.runtime.dump.DumpTable.appendRow()


        PageSource ps= pageSources.get(it.next());
        DumpTable inner = new DumpTable("#FFCC00","#FFFF00","#000000");
      inner.setWidth("100%");
      inner.appendRow(1,new SimpleDumpData("source"),new SimpleDumpData(ps.getDisplayPath()));
      inner.appendRow(1,new SimpleDumpData("last access"),DumpUtil.toDumpData(new DateTimeImpl(pageContext,ps.getLastAccessTime(),false), pageContext,maxlevel,dp));
      inner.appendRow(1,new SimpleDumpData("access count"),new SimpleDumpData(ps.getAccessCount()));
      table.appendRow(1,new SimpleDumpData("Sources"),inner);
    }
    return table;
  }
 
View Full Code Here


    }

    @Override
  public DumpData toDumpData(PageContext pageContext, int maxlevel, DumpProperties dp) {
    DumpTable table = new DumpTable("com","#ff3300","#ff9966","#660000");
    table.appendRow(1,new SimpleDumpData("COM Object"),new SimpleDumpData(name));
    return table;
    }

    @Override
    public String castToString() throws ExpressionException {
View Full Code Here

  @Override
  public DumpData toDumpData(PageContext pageContext, int maxlevel, DumpProperties dp) {
    DumpTable table=new DumpTable("#cccc66","#cccc99","#000000");
    table.setTitle(file.getAbsolutePath());
    table.appendRow(1, new SimpleDumpData("min (ms)"), new SimpleDumpData(min));
    table.appendRow(1, new SimpleDumpData("avg (ms)"), new SimpleDumpData(getAverageExecutionTime()));
    table.appendRow(1, new SimpleDumpData("max (ms)"), new SimpleDumpData(max));
    table.appendRow(1, new SimpleDumpData("total (ms)"), new SimpleDumpData(all));
    return table;
  }
View Full Code Here

  @Override
  public DumpData toDumpData(PageContext pageContext, int maxlevel, DumpProperties dp) {
    DumpTable table=new DumpTable("#cccc66","#cccc99","#000000");
    table.setTitle(file.getAbsolutePath());
    table.appendRow(1, new SimpleDumpData("min (ms)"), new SimpleDumpData(min));
    table.appendRow(1, new SimpleDumpData("avg (ms)"), new SimpleDumpData(getAverageExecutionTime()));
    table.appendRow(1, new SimpleDumpData("max (ms)"), new SimpleDumpData(max));
    table.appendRow(1, new SimpleDumpData("total (ms)"), new SimpleDumpData(all));
    return table;
  }
 
View Full Code Here

  public DumpData toDumpData(PageContext pageContext, int maxlevel, DumpProperties dp) {
    DumpTable table=new DumpTable("#cccc66","#cccc99","#000000");
    table.setTitle(file.getAbsolutePath());
    table.appendRow(1, new SimpleDumpData("min (ms)"), new SimpleDumpData(min));
    table.appendRow(1, new SimpleDumpData("avg (ms)"), new SimpleDumpData(getAverageExecutionTime()));
    table.appendRow(1, new SimpleDumpData("max (ms)"), new SimpleDumpData(max));
    table.appendRow(1, new SimpleDumpData("total (ms)"), new SimpleDumpData(all));
    return table;
  }
 
}
View Full Code Here

    DumpTable table=new DumpTable("#cccc66","#cccc99","#000000");
    table.setTitle(file.getAbsolutePath());
    table.appendRow(1, new SimpleDumpData("min (ms)"), new SimpleDumpData(min));
    table.appendRow(1, new SimpleDumpData("avg (ms)"), new SimpleDumpData(getAverageExecutionTime()));
    table.appendRow(1, new SimpleDumpData("max (ms)"), new SimpleDumpData(max));
    table.appendRow(1, new SimpleDumpData("total (ms)"), new SimpleDumpData(all));
    return table;
  }
 
}
View Full Code Here

    for(int i=0;i<keys.length;i++) {
      k=keys[i];
     
      if(DumpUtil.keyValid(dp,maxlevel, k)){
        if(maxkeys<=index++)break;
        table.appendRow(1,new SimpleDumpData(k.getString()),DumpUtil.toDumpData(get(k.getString(),null), pageContext,maxlevel,dp));
      }
    }
    return table;
  }
 
View Full Code Here

    maxlevel--;
    // Document
    if(node instanceof Document) {
      DumpTable table = new DumpTable("xml","#cc9999","#ffffff","#000000");
      table.setTitle("XML Document");
      table.appendRow(1,new SimpleDumpData("XmlComment"),new SimpleDumpData(XMLUtil.getProperty(node,XMLUtil.XMLCOMMENT,null).toString()));
      table.appendRow(1,new SimpleDumpData("XmlRoot"),  DumpUtil.toDumpData(XMLUtil.getProperty(node,XMLUtil.XMLROOT,null), pageContext,maxlevel,props));
      return table;
     
    }
    // Element
View Full Code Here

    // Document
    if(node instanceof Document) {
      DumpTable table = new DumpTable("xml","#cc9999","#ffffff","#000000");
      table.setTitle("XML Document");
      table.appendRow(1,new SimpleDumpData("XmlComment"),new SimpleDumpData(XMLUtil.getProperty(node,XMLUtil.XMLCOMMENT,null).toString()));
      table.appendRow(1,new SimpleDumpData("XmlRoot"),  DumpUtil.toDumpData(XMLUtil.getProperty(node,XMLUtil.XMLROOT,null), pageContext,maxlevel,props));
      return table;
     
    }
    // Element
    if(node instanceof Element) {
View Full Code Here

    }
    // Element
    if(node instanceof Element) {
      DumpTable table = new DumpTable("xml","#cc9999","#ffffff","#000000");
      table.setTitle("XML Element");
      table.appendRow(1,new SimpleDumpData("xmlName"),    new SimpleDumpData(XMLUtil.getProperty(node,XMLUtil.XMLNAME,null).toString()));
      table.appendRow(1,new SimpleDumpData("XmlNsPrefix")new SimpleDumpData(XMLUtil.getProperty(node,XMLUtil.XMLNSPREFIX,null).toString()));
      table.appendRow(1,new SimpleDumpData("XmlNsURI"),    new SimpleDumpData(XMLUtil.getProperty(node,XMLUtil.XMLNSURI,null).toString()));
      table.appendRow(1,new SimpleDumpData("XmlText"),    DumpUtil.toDumpData(XMLUtil.getProperty(node,XMLUtil.XMLTEXT,null), pageContext,maxlevel,props));
      table.appendRow(1,new SimpleDumpData("XmlComment")new SimpleDumpData(XMLUtil.getProperty(node,XMLUtil.XMLCOMMENT,null).toString()));
      table.appendRow(1,new SimpleDumpData("XmlAttributes"),DumpUtil.toDumpData(XMLUtil.getProperty(node,XMLUtil.XMLATTRIBUTES,null), pageContext,maxlevel,props));
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.