Package com.alimama.mdrillImport

Examples of com.alimama.mdrillImport.InvalidEntryException


      {
        LOG.error("InvalidEntryException:"+line,nfe);
        groupCreateerror++;
      }
     
      throw new InvalidEntryException("Invalid log `" + line + "'\n" , nfe);
    }
  }
View Full Code Here


      {
        LOG.error("InvalidEntryException:"+line,nfe);
        groupCreateerror++;
      }
     
      throw new InvalidEntryException("Invalid log `" + line + "'\n" , nfe);
    }
  }
View Full Code Here

   }
  
  public Object parse(Object raw) throws InvalidEntryException {
    try {
      if (raw == null) {
        throw new InvalidEntryException("Invalid log `" + String.valueOf(raw) + "'");
      }
      String[] cols=((String)raw).split("[ ]+",-1);
     
      if (cols.length<7) {
        throw new InvalidEntryException("Invalid log `" + raw + "'");
      }
     
      AccesLog rtn=new AccesLog();
     
      int indexadd=0;
      if(cols[3].indexOf("[")<0)
      {
        indexadd=1;
      }
      rtn.rt=Double.parseDouble(cols[1+indexadd]);

     
      rtn.ts=formatter.parse(cols[3+indexadd]).getTime();
      String url=cols[6+indexadd].replaceAll("\"+", "");
      Map<String,String> params=getName(url);
      rtn.pid=params.get("pid");
      rtn.name=params.get("name");
      return rtn;
    } catch (Throwable nfe) {
      nfe.printStackTrace();
      throw new InvalidEntryException("Invalid log `" + raw + "'\n" + nfe);
    }
   
  }
View Full Code Here

    {
  try {
      ClickLog p4pclicklog = com.taobao.loganalyzer.input.click.parser.ClickLogParser.parse((String)raw);
      if (p4pclicklog == null)
      {
        throw new InvalidEntryException("Invalid log `" + raw + "'");
      }
      return p4pclicklog;
  } catch (Throwable nfe) {
    throw new InvalidEntryException("Invalid log `" + raw + "'\n" + nfe);
  }
    }
View Full Code Here

      {
        LOG.error("InvalidEntryException:"+line,nfe);
        groupCreateerror++;
      }
     
      throw new InvalidEntryException("Invalid log `" + line + "'\n" , nfe);
    }
  }
View Full Code Here

    } catch (Throwable nfe) {
      if (groupCreateerror < 100) {
        LOG.error("InvalidEntryException:" + line, nfe);
        groupCreateerror++;
      }
      throw new InvalidEntryException("Invalid log `" + line + "'\n", nfe);
    }
  }
View Full Code Here

      {
        LOG.error("InvalidEntryException:"+line,nfe);
        groupCreateerror++;
      }
     
      throw new InvalidEntryException("Invalid log `" + line + "'\n" , nfe);
    }
  }
View Full Code Here

      {
        LOG.error("InvalidEntryException:"+line,nfe);
        groupCreateerror++;
      }
     
      throw new InvalidEntryException("Invalid log `" + line + "'\n" , nfe);
    }
  }
View Full Code Here

      {
        LOG.error("InvalidEntryException:"+line,nfe);
        groupCreateerror++;
      }
     
      throw new InvalidEntryException("Invalid log `" + line + "'\n" , nfe);
    }
  }
View Full Code Here

    } catch (Throwable nfe) {
      if (groupCreateerror < 100) {
        LOG.error("InvalidEntryException:" + line, nfe);
        groupCreateerror++;
      }
      throw new InvalidEntryException("Invalid log `" + line + "'\n", nfe);
    }
  }
View Full Code Here

TOP

Related Classes of com.alimama.mdrillImport.InvalidEntryException

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.