Package com.narirelays.ems.services

Examples of com.narirelays.ems.services.DataImporter4PCS9000ManagementService


public class DataImpoerter4PCS9000Job extends MyJob{
  private static final Logger log = LoggerFactory.getLogger(DataImpoerter4PCS9000Job.class);
  @Override
  public void myexecute(JobExecutionContext context)
      throws JobExecutionException {
    DataImporter4PCS9000ManagementService dataImporter4PCS9000ManagementService = (DataImporter4PCS9000ManagementService)StorageService.ctx.getBean("dataImporter4PCS9000ManagementService");
    if(dataImporter4PCS9000ManagementService==null){
      log.error("DataImporter4PCS9000ManagementService is null");
    }else{
      OperResult result = dataImporter4PCS9000ManagementService.importPCS9000Data(WebVariable.measureDF.format(new Date()));
      if(result.isSUCCEED()){
        OLAPManagementService oLAPManagementService = (OLAPManagementService)StorageService.ctx.getBean("oLAPManagementService");
        if(oLAPManagementService!=null){
          result = oLAPManagementService.maintainCube(true,"ems");
        }
View Full Code Here


import com.narirelays.ems.services.MaintainMeasurePoints4SophicService;

public class TestSophicDataImporter {

  public static void main(String[] argv) throws ParseException{
    DataImporter4PCS9000ManagementService dataImporter4PCS9000ManagementService = (DataImporter4PCS9000ManagementService)StorageService.ctx.getBean("dataImporter4PCS9000ManagementService");
    dataImporter4PCS9000ManagementService.importPCS9000Data("20110901");

//    SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMdd");
//    System.out.println(sdf.parse("20110901"));
  }
View Full Code Here

   *
   */
  private static final long serialVersionUID = 7919638590583341552L;

  public String TestDataImport() {
    DataImporter4PCS9000ManagementService dataImporter4PCS9000ManagementService = (DataImporter4PCS9000ManagementService)StorageService.ctx.getBean("dataImporter4PCS9000ManagementService");
    if(dataImporter4PCS9000ManagementService!=null){
      resultInfo = dataImporter4PCS9000ManagementService.importPCS9000Data("20110901");
    }
    return SUCCESS;
  }
View Full Code Here

TOP

Related Classes of com.narirelays.ems.services.DataImporter4PCS9000ManagementService

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.