/*     */ import java.io.BufferedInputStream;
/*     */ import java.io.FileInputStream;
/*     */ import java.util.ArrayList;
/*     */ import java.util.Date;
/*     */ import java.util.List;
/*     */ import java.util.Properties;
/*     */ import org.apache.log4j.Logger;
/*     */ import org.apache.log4j.PropertyConfigurator;
/*     */ import org.quartz.Job;
/*     */ import org.quartz.JobExecutionContext;
/*     */ import org.quartz.JobExecutionException;
/*     */ import org.quartz.JobKey;
/*     */ 
/*     */ public class DumbJob
/*     */   implements Job
/*     */ {
/*     */   private String jobSays;
/*     */   private float myFloatValue;
/*     */   private ArrayList<Date> state;
/*  20 */   private String g_strTenel = "";
/*  21 */   private List<String> g_listN1 = new ArrayList<>();
/*  22 */   private List<String> g_listN3 = new ArrayList<>();
/*     */   
/*  24 */   private final Logger logger = Logger.getLogger(DumbJob.class);
/*     */   
/*     */   public DumbJob() {
/*  27 */     PropertyConfigurator.configure("./log4j.properties");
/*     */ 
/*     */     
/*     */     try {
/*  31 */       String propFile = "./config.properties";
/*     */ 
/*     */       
/*  34 */       Properties props = new Properties();
/*     */ 
/*     */       
/*  37 */       FileInputStream fis = new FileInputStream(propFile);
/*     */ 
/*     */       
/*  40 */       props.load(new BufferedInputStream(fis));
/*     */       
/*  42 */       this.g_strTenel = props.getProperty("tennel_no");
/*     */       
/*  44 */       props.clear();
/*  45 */       props = null;
/*  46 */       System.out.println("===================== A");
/*     */       
/*  48 */       this.g_listN1.add("01");
/*  49 */       this.g_listN1.add("02");
/*  50 */       this.g_listN1.add("03");
/*  51 */       this.g_listN1.add("04");
/*  52 */       this.g_listN1.add("05");
/*  53 */       this.g_listN1.add("06");
/*  54 */       this.g_listN1.add("07");
/*  55 */       this.g_listN1.add("08");
/*     */       
/*  57 */       this.g_listN3.add("01");
/*  58 */       this.g_listN3.add("02");
/*  59 */       this.g_listN3.add("03");
/*  60 */       this.g_listN3.add("04");
/*     */ 
/*     */       
/*  63 */       this.g_listN3.add("07");
/*  64 */       this.g_listN3.add("08");
/*  65 */       this.g_listN3.add("09");
/*  66 */       this.g_listN3.add("10");
/*  67 */       System.out.println("===================== B");
/*  68 */     } catch (Exception e) {
/*  69 */       this.logger.debug("Exception : " + e);
/*     */     } 
/*     */   }
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */   
/*     */   public void execute(JobExecutionContext context) throws JobExecutionException {
/*  79 */     JobKey key = context.getJobDetail().getKey();
/*  80 */     this.state.add(new Date());
/*     */     
/*  82 */     this.logger.info("Instance " + key + " of DmbJob says: " + this.jobSays + ", and val is: " + this.myFloatValue + 
/*  83 */         ", state size:" + this.state.size() + "," + this.state.get(this.state.size() - 1));
/*     */     
/*  85 */     this.logger.debug("======== 차로개수 : " + this.g_listN3.size());
/*  86 */     List<String> list = new ArrayList<>();
/*  87 */     if (this.g_strTenel.equals("3")) {
/*  88 */       list.addAll(this.g_listN3);
/*  89 */     } else if (this.g_strTenel.equals("1")) {
/*  90 */       list.addAll(this.g_listN1);
/*     */     } else {
/*     */       return;
/*     */     } 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */     
/* 112 */     SendThread obj = null;
/* 113 */     for (int i = 0; i < list.size(); i++) {
/* 114 */       this.logger.debug(String.format("%s차로 시작", new Object[] { list.get(i) }));
/*     */       
/* 116 */       obj = new SendThread(list.get(i));
/* 117 */       obj.runCarNoImageSend();
/*     */       
/* 119 */       this.logger.debug(String.format("%s차로 끝", new Object[] { list.get(i) }));
/*     */     } 
/*     */   }
/*     */ 
/*     */   
/*     */   public void setJobSays(String jobSays) {
/* 125 */     this.jobSays = jobSays;
/*     */   }
/*     */   
/*     */   public void setMyFloatValue(float myFloatValue) {
/* 129 */     this.myFloatValue = myFloatValue;
/*     */   }
/*     */   
/*     */   public void setState(ArrayList<Date> state) {
/* 133 */     this.state = state;
/*     */   }
/*     */ }


/* Location:              C:\Users\XIT_LBJ\Desktop\남산 혼잡통행료\운영환경 실 파일\3호 연계서버\car이미지자르\anpr스테이터스센드\anpr_status_send.jar!\DumbJob.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */