|
|
|
@ -6,6 +6,8 @@ import java.util.Properties;
|
|
|
|
|
import javax.servlet.ServletContextEvent;
|
|
|
|
|
import javax.servlet.ServletContextListener;
|
|
|
|
|
|
|
|
|
|
import com.platform.http.gfs.HttpClientConstant;
|
|
|
|
|
|
|
|
|
|
import ch.ethz.ssh2.Connection;
|
|
|
|
|
|
|
|
|
|
public class ConfigsLoader implements ServletContextListener {
|
|
|
|
@ -64,11 +66,11 @@ public class ConfigsLoader implements ServletContextListener {
|
|
|
|
|
|
|
|
|
|
Configs.GATHER_TABLE_PASSWORD=properties.getProperty("gather-table-user-password");
|
|
|
|
|
|
|
|
|
|
HttpClientConstant.URL_IP_PORT = properties.getProperty("HttpClientConstant_URL_IP_PORT").trim();
|
|
|
|
|
|
|
|
|
|
Constant.hostIp=properties.getProperty("gfs_control_ip").trim();
|
|
|
|
|
Constant.rootPasswd=properties.getProperty("gfs_control_rootPassWd").trim();
|
|
|
|
|
Constant.ganymedSSH = new GanymedSSH(Constant.hostIp, Constant.rootUser, Constant.rootPasswd, Constant.port);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public ConfigPropertyReader getcReader() {
|
|
|
|
|