Package com.taobao.loganalyzer.input.p4ppv.parser

Examples of com.taobao.loganalyzer.input.p4ppv.parser.P4PPVLog


  private volatile long lastendts=(System.currentTimeMillis()/1000)+TS_MAX;
  @Override
  public DataIter parseLine(String line) throws InvalidEntryException {
   
    try {
      P4PPVLog p4ppvlog = com.taobao.loganalyzer.input.p4ppv.parser.P4PPVLogParser.parse(line);
      if (p4ppvlog == null) {
        return null;
      }
     
      if(p4ppvlog.getP4PPID()==null||p4ppvlog.getTimestamp()==null)
      {
        return null;
      }
     
      this.lines++;
      if(this.lines>100000)
      {
        this.laststartts=(System.currentTimeMillis()/1000)-TS_MAX;
        this.lastendts=(System.currentTimeMillis()/1000)+TS_MAX;
        this.lines=0;
      }
     
      long ts = Long.parseLong(p4ppvlog.getTimestamp());
      if(ts<laststartts||ts>lastendts)
      {
        return null;
      }
     
View Full Code Here


  private volatile long lastendts=(System.currentTimeMillis()/1000)+TS_MAX;
  @Override
  public DataIter parseLine(String line) throws InvalidEntryException {
   
    try {
      P4PPVLog p4ppvlog = com.taobao.loganalyzer.input.p4ppv.parser.P4PPVLogParser.parse(line);
      if (p4ppvlog == null) {
        return null;
      }
     
      if((p4ppvlog.getRefPID()==null&&p4ppvlog.getP4PPID()==null)||p4ppvlog.getTimestamp()==null)
      {
        return null;
      }
     
      this.lines++;
      if(this.lines>100000)
      {
        this.laststartts=(System.currentTimeMillis()/1000)-TS_MAX;
        this.lastendts=(System.currentTimeMillis()/1000)+TS_MAX;
        this.lines=0;
      }
     
      long ts = Long.parseLong(p4ppvlog.getTimestamp());
      if(ts<laststartts||ts>lastendts)
      {
        return null;
      }
     
View Full Code Here

        }
        boolean isover=false;
        for(Object o:ttdata)
        {
          this.stat.record++;
          P4PPVLog pv=(P4PPVLog)o;
          if(this.putdata(pv))
          {
            isover=true;
          }
        }
View Full Code Here

  private volatile long lastendts=(System.currentTimeMillis()/1000)+TS_MAX;
  @Override
  public DataIter parseLine(String line) throws InvalidEntryException {
   
    try {
      P4PPVLog p4ppvlog = com.taobao.loganalyzer.input.p4ppv.parser.P4PPVLogParser.parse(line);
      if (p4ppvlog == null) {
        return null;
      }
     
      if(p4ppvlog.getP4PPID()==null||p4ppvlog.getTimestamp()==null)
      {
        return null;
      }
     
      this.lines++;
      if(this.lines>100000)
      {
        this.laststartts=(System.currentTimeMillis()/1000)-TS_MAX;
        this.lastendts=(System.currentTimeMillis()/1000)+TS_MAX;
        this.lines=0;
      }
     
      long ts = Long.parseLong(p4ppvlog.getTimestamp());
      if(ts<laststartts||ts>lastendts)
      {
        return null;
      }
     
View Full Code Here

TOP

Related Classes of com.taobao.loganalyzer.input.p4ppv.parser.P4PPVLog

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.