Package com.taobao.top.analysis.exception

Examples of com.taobao.top.analysis.exception.AnalysisException


        error = true;
      }
    }
   
    if (error)
      throw new AnalysisException("load init data error!");
    else
      return null;
  }
View Full Code Here


      return resultPools;
    }
    catch(Exception ex)
    {
      logger.error("Load file "+ file.getName() +" Error", ex);
      throw new AnalysisException("Load file "+ file.getName() +" Error", ex);
    }
    finally
    {
      if (breader != null)
      {
View Full Code Here

                if (!future.isSuccess()) {
                    logger.error("connect fail.", future.getCause());
                    AnalyzerUtil.sendOutAlert(Calendar.getInstance(), config.getAlertUrl(), config.getAlertFrom(),
                        config.getAlertModel(), config.getAlertWangWang(), "master " + address
                                + " maybe down, please hava a check");
                    throw new AnalysisException("connect fail.", future.getCause());
                }
 
        channel = future.getChannel();
        channels.put(address, channel);
      }
      else
        throw new AnalysisException("can't get lock to create channel");
    }
    catch(InterruptedException e)
    {
      //do nothing
    }
View Full Code Here

      case RESETSERVER:
          this.getMasterConnector().openServer();
          break;
       
      default:
        throw new AnalysisException("Not support such Event : " + event.getEventCode().toString());
    }
  }
View Full Code Here

  }
 
  public Map<String,Job> build() throws AnalysisException
  {
    if(config == null)
      throw new AnalysisException("master config is null!");
     
    return build(config.getJobsSource());
  }
View Full Code Here

        for(Job job : jobs.values()) {
            job.reset(null);
        }

        if (jobs == null || (jobs != null && jobs.size() == 0))
            throw new AnalysisException("jobs should not be empty!");

        jobTaskPool = new ConcurrentHashMap<String, JobTask>();
        undoTaskQueue = new LinkedBlockingDeque<JobTask>();
        statusPool = new ConcurrentHashMap<String, JobTaskStatus>();
        jobTaskResultsQueuePool = new HashMap<String, BlockingQueue<JobTaskResult>>();
View Full Code Here

                logger.info("check job status need to rebuild");
            }
            jobs = jobBuilder.rebuild(jobs);

            if (jobs == null || (jobs != null && jobs.size() == 0))
                throw new AnalysisException("jobs should not be empty!");
        }

        try {
            if(this.config.getDispatchMaster())
                checkTaskStatus();
View Full Code Here

  }
 
  public Map<String,Job> build() throws AnalysisException
  {
    if(config == null)
      throw new AnalysisException("master config is null!");
     
    return build(config.getJobsSource());
  }
View Full Code Here

                        getConfigFromProps(j, jobconfig, prop);

                        if (jobconfig.getReportConfigs() == null
                                || (jobconfig.getReportConfigs() != null && jobconfig.getReportConfigs().length == 0)) {
                            throw new AnalysisException("job Config files should not be null!");
                        }

                        buildRule(jobconfig.getReportConfigs(), rule);
                       
                        //增加一个获得当前临时文件数据源游标的操作
View Full Code Here

        .append(File.separatorChar).toString();

    if (configFile == null || "".equals(configFile)) {
      String error = "configFile can not be null !";
      logger.error(error);
      throw new AnalysisException(error);
    }

    try {
      XMLInputFactory factory = XMLInputFactory.newInstance();
      ClassLoader loader = Thread.currentThread().getContextClassLoader();
View Full Code Here

TOP

Related Classes of com.taobao.top.analysis.exception.AnalysisException

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.