Package com.m4f.utils.feeds.events.model

Examples of com.m4f.utils.feeds.events.model.ParserErrorEvent


  pointcut = "target(com.m4f.utils.feeds.parser.ifc.ISchoolsParser) && args(provider, dump))",
  argNames="provider,dump, error", throwing= "error")
  public void registerProviderError(Provider provider, Dump dump, Throwable error) {
    LOGGER.severe("Registering feed processing error in provider " + provider.getName());
    if(dump != null) {
      ParserErrorEvent parserError = this.eventService.createParserError();
      parserError.setEntityClass(provider.getClass().getName());
      parserError.setEntityId(provider.getId());
      parserError.setCause(new Text(StackTraceUtil.getStackTrace(error)));
      parserError.setWhen(Calendar.getInstance().getTime());
      parserError.setDumpId(dump.getId());
      try {
        this.eventService.save(parserError);
      } catch(Exception e) {
        LOGGER.severe(StackTraceUtil.getStackTrace(e));
      }
View Full Code Here


  pointcut = "target(com.m4f.utils.feeds.parser.ifc.ICoursesParser) && args(school, dump))",
  argNames="school,dump, error", throwing= "error")
  public void registerSchoolError(School school, Dump dump, Throwable error) {
    LOGGER.severe("Registering feed processing error in school " + school.getName());
    if(dump != null) {
      ParserErrorEvent parserError = this.eventService.createParserError();
      parserError.setEntityClass(school.getClass().getName());
      parserError.setEntityId(school.getId());
      parserError.setCause(new Text(StackTraceUtil.getStackTrace(error)));
      parserError.setWhen(Calendar.getInstance().getTime());
      parserError.setDumpId(dump.getId());
      try {
        this.eventService.save(parserError);
      } catch(Exception e) {
        LOGGER.severe(StackTraceUtil.getStackTrace(e));
      }
View Full Code Here

TOP

Related Classes of com.m4f.utils.feeds.events.model.ParserErrorEvent

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.