| 
														
															@@ -1,6 +1,5 @@ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 package com.its.bis.config; 
														 | 
														
														 | 
														
															 package com.its.bis.config; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															-import com.its.app.utils.NettyUtils; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import com.its.app.utils.SysUtils; 
														 | 
														
														 | 
														
															 import com.its.app.utils.SysUtils; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import lombok.Getter; 
														 | 
														
														 | 
														
															 import lombok.Getter; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import lombok.Setter; 
														 | 
														
														 | 
														
															 import lombok.Setter; 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -11,8 +10,6 @@ import org.springframework.context.annotation.Configuration; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import javax.annotation.PostConstruct; 
														 | 
														
														 | 
														
															 import javax.annotation.PostConstruct; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import java.io.File; 
														 | 
														
														 | 
														
															 import java.io.File; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-import java.nio.file.Path; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-import java.nio.file.Paths; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															 @Slf4j 
														 | 
														
														 | 
														
															 @Slf4j 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 @Getter 
														 | 
														
														 | 
														
															 @Getter 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -22,11 +19,6 @@ import java.nio.file.Paths; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 @ConfigurationProperties(prefix = "application") 
														 | 
														
														 | 
														
															 @ConfigurationProperties(prefix = "application") 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 public class ApplicationConfig { 
														 | 
														
														 | 
														
															 public class ApplicationConfig { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    public static String FTP_FORM = "FORM"; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    public static String FTP_VIDEO = "VIDEO"; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    public static String FTP_STATIC = "STATIC"; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    public static String FTP_IMAGE = "IMAGE"; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															- 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     private String bootingDateTime; 
														 | 
														
														 | 
														
															     private String bootingDateTime; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     private boolean startSchedule; 
														 | 
														
														 | 
														
															     private boolean startSchedule; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -39,7 +31,7 @@ public class ApplicationConfig { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     private String userPswd = "1234"; 
														 | 
														
														 | 
														
															     private String userPswd = "1234"; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															     // Center Communication Config 
														 | 
														
														 | 
														
															     // Center Communication Config 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    private boolean centerCommEnable = true; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    private boolean centerCommEnable = false; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     private int listenPort = 30200; 
														 | 
														
														 | 
														
															     private int listenPort = 30200; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     protected String bindingAddr = "0.0.0.0"; 
														 | 
														
														 | 
														
															     protected String bindingAddr = "0.0.0.0"; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     protected int backlog = 0; 
														 | 
														
														 | 
														
															     protected int backlog = 0; 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -52,38 +44,7 @@ public class ApplicationConfig { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     protected int allIdleTimeSeconds = 0; 
														 | 
														
														 | 
														
															     protected int allIdleTimeSeconds = 0; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     protected int connectTimeoutSeconds = 0; 
														 | 
														
														 | 
														
															     protected int connectTimeoutSeconds = 0; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    private String ftpHomeDir = "./ftp"; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    private String ftpServerIp = ""; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    private int ftpServerPort = 9871; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    private int ftpPassiveMode = 0; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    private String ftpUserId = "vmsuser"; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    private String ftpUserPswd = "vmsuser#1234"; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															- 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    private String ftpFormDir ;  // FTP Form Directory 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    private String ftpVideoDir;  // FTP Video Directory 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    private String ftpStaticDir; // FTP 정적폼 Directory 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    private String ftpImageDir;  // FTP Image Directory 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															- 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     private boolean loadDb = true; 
														 | 
														
														 | 
														
															     private boolean loadDb = true; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    private boolean requestDeviceId = true; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    private int maxDownloadForms = 10; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    private int cngstContCount = 2; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    private int maxCngstForms = 5; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    private int bottomTrafficMax = 1; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    private int bottomTrafficCycle = 0; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    private boolean figureTrafficCenter = true; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    private boolean textTrafficCenter = true; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    private String figureTrafGrad1 = "원활"; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    private String figureTrafGrad2 = "지체"; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    private String figureTrafGrad3 = "정체"; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    private String textTrafGrad1 = "소통원활"; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    private String textTrafGrad2 = "지 체"; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    private String textTrafGrad3 = "정 체"; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    private boolean imageSeqSave = false; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    private float fontSizeRatio = 1.35f; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    private boolean checkNewForm = true; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    private boolean downloadBitmapForm = false; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    private boolean useParking = false; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															     @PostConstruct 
														 | 
														
														 | 
														
															     @PostConstruct 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     private void init() { 
														 | 
														
														 | 
														
															     private void init() { 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -112,30 +73,6 @@ public class ApplicationConfig { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															         this.bootingDateTime = SysUtils.getSysTimeStr(); 
														 | 
														
														 | 
														
															         this.bootingDateTime = SysUtils.getSysTimeStr(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        if (this.ftpHomeDir == null || this.ftpHomeDir.trim().length() == 0) { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-            Path filePath = Paths.get(System.getProperty("user.dir"), "ftp"); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-            this.ftpHomeDir = filePath.toFile().getAbsolutePath(); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        } 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        this.ftpHomeDir = this.ftpHomeDir.trim(); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															- 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        this.ftpFormDir  = this.ftpHomeDir + File.separator + FTP_FORM + File.separator;  // FTP Form Directory 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        this.ftpVideoDir = this.ftpHomeDir + File.separator + FTP_VIDEO + File.separator;  // FTP Video Directory 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        this.ftpStaticDir = this.ftpHomeDir + File.separator + FTP_STATIC + File.separator; // FTP 정적폼 Directory 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        this.ftpImageDir = this.ftpHomeDir + File.separator + FTP_IMAGE + File.separator;  // FTP Image Directory 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															- 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        makeDirectory(this.ftpHomeDir, "ftp Home directory"); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        makeDirectory(this.ftpFormDir, "ftp Form directory"); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        makeDirectory(this.ftpVideoDir, "ftp Video directory"); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        makeDirectory(this.ftpStaticDir, "ftp Static Form directory"); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        makeDirectory(this.ftpImageDir, "ftp Image directory"); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															- 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        this.ftpServerIp = this.ftpServerIp.trim(); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        if (this.ftpServerIp.isEmpty()) { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-            this.ftpServerIp = NettyUtils.getLocalAddress(); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        } 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        if (this.fontSizeRatio == 0f) { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-            this.fontSizeRatio = 1.35f; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        } 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         log.info("{}", this); 
														 | 
														
														 | 
														
															         log.info("{}", this); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     } 
														 | 
														
														 | 
														
															     } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 |