| package com.zy.acs.gateway.config; | 
|   | 
| import org.springframework.boot.context.properties.ConfigurationProperties; | 
| import org.springframework.context.annotation.Configuration; | 
|   | 
| import java.net.InetAddress; | 
| import java.net.UnknownHostException; | 
|   | 
| /** | 
|  * vc系统配置 | 
|  * Created by luxiaotao on 2018/10/15 | 
|  */ | 
| @Configuration | 
| @ConfigurationProperties(prefix = "agv-tcp") | 
| public class SystemProperties { | 
|   | 
|     public static String HOST_NAME; | 
|   | 
|     static { | 
|         try { | 
|             HOST_NAME = InetAddress.getLocalHost().getHostName(); | 
|         } catch (UnknownHostException e) { | 
|             System.err.println("find hostname err"); | 
|         } | 
|     } | 
|   | 
|     private int port; | 
|   | 
|     private int heartSeconds; | 
|   | 
|     private int backlog; | 
|   | 
|     private boolean keepAlive; | 
|   | 
|     private int sndbuf; | 
|   | 
|     private int rcvbuf; | 
|   | 
|     private boolean printPacLog; | 
|   | 
|     public int getPort() { | 
|         return port; | 
|     } | 
|   | 
|     public void setPort(int port) { | 
|         this.port = port; | 
|     } | 
|   | 
|     public int getHeartSeconds() { | 
|         return heartSeconds; | 
|     } | 
|   | 
|     public void setHeartSeconds(int heartSeconds) { | 
|         this.heartSeconds = heartSeconds; | 
|     } | 
|   | 
|     public int getBacklog() { | 
|         return backlog; | 
|     } | 
|   | 
|     public void setBacklog(int backlog) { | 
|         this.backlog = backlog; | 
|     } | 
|   | 
|     public boolean isKeepAlive() { | 
|         return keepAlive; | 
|     } | 
|   | 
|     public void setKeepAlive(boolean keepAlive) { | 
|         this.keepAlive = keepAlive; | 
|     } | 
|   | 
|     public int getSndbuf() { | 
|         return sndbuf; | 
|     } | 
|   | 
|     public void setSndbuf(int sndbuf) { | 
|         this.sndbuf = sndbuf; | 
|     } | 
|   | 
|     public int getRcvbuf() { | 
|         return rcvbuf; | 
|     } | 
|   | 
|     public void setRcvbuf(int rcvbuf) { | 
|         this.rcvbuf = rcvbuf; | 
|     } | 
|   | 
|     public boolean isPrintPacLog() { | 
|         return printPacLog; | 
|     } | 
|   | 
|     public void setPrintPacLog(final boolean printPacLog) { | 
|         this.printPacLog = printPacLog; | 
|     } | 
| } |