Add proxy info to conf file and swing ui

This commit is contained in:
Laurent Clouet
2015-07-06 18:41:28 +01:00
parent be4b8969ba
commit a0daf5e262
5 changed files with 135 additions and 28 deletions

View File

@@ -44,6 +44,7 @@ public class Configuration {
public String static_exeDirName;
private String login;
private String password;
private String proxy;
private int maxUploadingJob;
private int nbCores;
private ComputeType computeMethod;
@@ -57,6 +58,7 @@ public class Configuration {
public Configuration(File cache_dir_, String login_, String password_) {
this.login = login_;
this.password = password_;
this.proxy = null;
this.static_exeDirName = "exe";
this.maxUploadingJob = 1;
this.nbCores = -1; // ie not set
@@ -93,6 +95,14 @@ public class Configuration {
this.password = password_;
}
public String getProxy() {
return this.proxy;
}
public void setProxy(String url) {
this.proxy = url;
}
public int maxUploadingJob() {
return this.maxUploadingJob;
}