package com.zy.gateway.pipeline;
|
|
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 = "pipeline")
|
public class PipelineProperties {
|
|
public static String HOST_NAME;
|
|
static {
|
try {
|
HOST_NAME = InetAddress.getLocalHost().getHostName();
|
} catch (UnknownHostException e) {
|
System.err.println("find hostname err");
|
}
|
}
|
|
private int tcpPort;
|
|
private int heartSeconds;
|
|
private int backlog;
|
|
private boolean keepAlive;
|
|
private int sndbuf;
|
|
private int rcvbuf;
|
|
private boolean printPacLog;
|
|
public int getTcpPort() {
|
return tcpPort;
|
}
|
|
public void setTcpPort(int tcpPort) {
|
this.tcpPort = tcpPort;
|
}
|
|
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;
|
}
|
}
|