Package com.alimama.quanjingmonitor.parser

Source Code of com.alimama.quanjingmonitor.parser.P4PPVLogParser

package com.alimama.quanjingmonitor.parser;

import java.io.*;
import java.net.*;
import java.util.*;

import com.alimama.mdrillImport.InvalidEntryException;
import com.alimama.mdrillImport.Parser;
import com.taobao.loganalyzer.input.p4ppv.parser.*;



public class P4PPVLogParser
    implements Parser
{

    public P4PPVLogParser()
    {
    }


  public Object parse(Object raw) throws InvalidEntryException {
    try {
      P4PPVLog p4ppvlog = com.taobao.loganalyzer.input.p4ppv.parser.P4PPVLogParser
          .parse((String)raw);
     
      if (p4ppvlog == null) {
        throw new InvalidEntryException("Invalid log `" + raw + "'");
      }

      return p4ppvlog;
    } catch (Throwable nfe) {
      throw new InvalidEntryException("Invalid log `" + raw + "'\n" + nfe);
    }
  }
}
TOP

Related Classes of com.alimama.quanjingmonitor.parser.P4PPVLogParser

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.