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");
}