
org.caiguoqing.uyuni.rpc.server.ServerConfig Maven / Gradle / Ivy
The newest version!
/**
*
*/
package org.caiguoqing.uyuni.rpc.server;
import java.util.Map;
/**
* @author caiguoqing0427
*
*/
public class ServerConfig {
private Map servers;
private int port;
private String type = "socket";
public ServerConfig(){
}
/**
* @param servers servers
* @param port port
* @param type type
*/
public ServerConfig(Map servers, int port, String type) {
super();
this.servers = servers;
this.port = port;
this.type = type;
}
public ServerConfig(Map servers, int port) {
super();
this.servers = servers;
this.port = port;
}
/**
* @return the type
*/
public String getType() {
return type;
}
/**
* @param type the type to set
*/
public void setType(String type) {
this.type = type;
}
/**
* @return the server
*/
public Map getServers() {
return servers;
}
/**
* @param servers the server to set
*/
public void setServers(Map servers) {
this.servers = servers;
}
/**
* @return the port
*/
public int getPort() {
return port;
}
/**
* @param port the port to set
*/
public void setPort(int port) {
this.port = port;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy