убирание портов в константы внутри кода
This commit is contained in:
15
properties
15
properties
@@ -12,7 +12,7 @@
|
|||||||
"ConfirmPassesStart": true,
|
"ConfirmPassesStart": true,
|
||||||
"ShowPassesDone": true,
|
"ShowPassesDone": true,
|
||||||
"FocusPassesResult": true,
|
"FocusPassesResult": true,
|
||||||
"collapseCredentials": false,
|
"collapseCredentials": true,
|
||||||
"collapseFileGraphs": false,
|
"collapseFileGraphs": false,
|
||||||
"collapseFileMessages": false,
|
"collapseFileMessages": false,
|
||||||
"collapseProjectTrees": false,
|
"collapseProjectTrees": false,
|
||||||
@@ -22,11 +22,11 @@
|
|||||||
"Kernels": 8,
|
"Kernels": 8,
|
||||||
"LocalMakePathWindows": "C:\\MinGW\\msys\\1.0\\bin\\make.exe",
|
"LocalMakePathWindows": "C:\\MinGW\\msys\\1.0\\bin\\make.exe",
|
||||||
"CheckTestingIntervalSeconds": 10,
|
"CheckTestingIntervalSeconds": 10,
|
||||||
"AutoCheckTesting": true,
|
"AutoCheckTesting": false,
|
||||||
"EmailOnTestingProgress": true,
|
"EmailOnTestingProgress": true,
|
||||||
"lastMachineId": 11,
|
"lastMachineId": 13,
|
||||||
"lastUserId": -1,
|
"lastUserId": 24,
|
||||||
"lastCompilerId": -1,
|
"lastCompilerId": 52,
|
||||||
"RegisterOn": false,
|
"RegisterOn": false,
|
||||||
"SpacesOn": false,
|
"SpacesOn": false,
|
||||||
"EmptyLinesOn": false,
|
"EmptyLinesOn": false,
|
||||||
@@ -39,8 +39,5 @@
|
|||||||
"BugReportsAgeLimit": 1,
|
"BugReportsAgeLimit": 1,
|
||||||
"FastAccessPassesCount": 10,
|
"FastAccessPassesCount": 10,
|
||||||
"LastOpenedProjectsCount": 25,
|
"LastOpenedProjectsCount": 25,
|
||||||
"Mode": "Normal",
|
"Mode": "Normal"
|
||||||
"ComponentsServerPort": 7995,
|
|
||||||
"TestingServerPort": 7998,
|
|
||||||
"SocketTimeout": 5000
|
|
||||||
}
|
}
|
||||||
@@ -1,5 +1,6 @@
|
|||||||
package _VisualDVM;
|
package _VisualDVM;
|
||||||
import Common.Utils.Vector_;
|
import Common.Utils.Vector_;
|
||||||
|
import com.google.gson.annotations.Expose;
|
||||||
|
|
||||||
import java.util.Vector;
|
import java.util.Vector;
|
||||||
public class Constants {
|
public class Constants {
|
||||||
@@ -42,6 +43,9 @@ public class Constants {
|
|||||||
public static final String SMTPHost = "smtp.mail.ru";
|
public static final String SMTPHost = "smtp.mail.ru";
|
||||||
public static final int SMTPPort = 465;
|
public static final int SMTPPort = 465;
|
||||||
public static final int MailSocketPort = 465;
|
public static final int MailSocketPort = 465;
|
||||||
|
public static final int ComponentsServerPort = 7995;
|
||||||
|
public static final int TestingServerPort = 7998;
|
||||||
|
public static final int SocketTimeout = 5000;
|
||||||
//-
|
//-
|
||||||
public static final String ServerAddress = "alex-freenas.ddns.net";
|
public static final String ServerAddress = "alex-freenas.ddns.net";
|
||||||
public static final String ServerUserName = "testuser";
|
public static final String ServerUserName = "testuser";
|
||||||
|
|||||||
@@ -56,22 +56,7 @@ public class MachinesForm extends DataSetControlForm<Machine> {
|
|||||||
return new DataMenuBar(dataSource.getPluralDescription(),
|
return new DataMenuBar(dataSource.getPluralDescription(),
|
||||||
PassCode.AddMachine,
|
PassCode.AddMachine,
|
||||||
PassCode.EditMachine,
|
PassCode.EditMachine,
|
||||||
PassCode.DeleteMachine) {
|
PassCode.DeleteMachine);
|
||||||
{
|
|
||||||
add(new MenuBarButton() {
|
|
||||||
{
|
|
||||||
setIcon("/Common/icons/SilverArrowUp.png");
|
|
||||||
setToolTipText("Свернуть");
|
|
||||||
addActionListener(new ActionListener() {
|
|
||||||
@Override
|
|
||||||
public void actionPerformed(ActionEvent e) {
|
|
||||||
Global.mainModule.getPass(PassCode.UpdateProperty).Do("collapseCredentials", true);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}, 0);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
protected DBObjectDialog<Machine, ? extends DialogFields> getDialog() {
|
protected DBObjectDialog<Machine, ? extends DialogFields> getDialog() {
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
package _VisualDVM.Passes.Server;
|
package _VisualDVM.Passes.Server;
|
||||||
import Common.Passes.Pass;
|
import Common.Passes.Pass;
|
||||||
|
import _VisualDVM.Constants;
|
||||||
import _VisualDVM.Global;
|
import _VisualDVM.Global;
|
||||||
import _VisualDVM.Repository.RepositoryServer;
|
import _VisualDVM.Repository.RepositoryServer;
|
||||||
import _VisualDVM.Repository.Server.ServerCode;
|
import _VisualDVM.Repository.Server.ServerCode;
|
||||||
@@ -48,7 +49,7 @@ public abstract class ClientPass <S extends RepositoryServer,T> extends Pass<T>
|
|||||||
return request.Do();
|
return request.Do();
|
||||||
}
|
}
|
||||||
protected boolean SendRequest(ServerCode code_in,String arg_in, Serializable object_in){
|
protected boolean SendRequest(ServerCode code_in,String arg_in, Serializable object_in){
|
||||||
return SendRequest(code_in,arg_in, object_in, Global.properties.SocketTimeout);
|
return SendRequest(code_in,arg_in, object_in, Constants.SocketTimeout);
|
||||||
}
|
}
|
||||||
protected boolean SendRequest(ServerCode code_in, String arg_in){
|
protected boolean SendRequest(ServerCode code_in, String arg_in){
|
||||||
return SendRequest(code_in,arg_in,null);
|
return SendRequest(code_in,arg_in,null);
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ public abstract class RepositoryPass<S extends RepositoryServer, T> extends Pass
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
protected int getTimeout() {
|
protected int getTimeout() {
|
||||||
return Global.properties.SocketTimeout;
|
return Constants.SocketTimeout;
|
||||||
}
|
}
|
||||||
//-
|
//-
|
||||||
protected void connect() throws Exception {
|
protected void connect() throws Exception {
|
||||||
|
|||||||
@@ -112,7 +112,7 @@ public class ComponentsServer extends RepositoryServer<BugReportsDatabase> {
|
|||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public int getPort() {
|
public int getPort() {
|
||||||
return Global.properties.ComponentsServerPort;
|
return Constants.ComponentsServerPort;
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
protected void beforePublishAction(DBObject object) throws Exception {
|
protected void beforePublishAction(DBObject object) throws Exception {
|
||||||
|
|||||||
@@ -257,7 +257,7 @@ public class TestingServer extends RepositoryServer<TestsDatabase> {
|
|||||||
//основа
|
//основа
|
||||||
@Override
|
@Override
|
||||||
public int getPort() {
|
public int getPort() {
|
||||||
return Global.properties.TestingServerPort;
|
return Constants.TestingServerPort;
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
protected void startAdditionalThreads() {
|
protected void startAdditionalThreads() {
|
||||||
|
|||||||
@@ -7,13 +7,6 @@ public class VisualDVMProperties extends Properties {
|
|||||||
@Expose
|
@Expose
|
||||||
public _VisualDVM.Mode Mode = _VisualDVM.Mode.Normal;
|
public _VisualDVM.Mode Mode = _VisualDVM.Mode.Normal;
|
||||||
//---
|
//---
|
||||||
@Expose
|
|
||||||
public int ComponentsServerPort = 7995;
|
|
||||||
@Expose
|
|
||||||
public int TestingServerPort = 7998;
|
|
||||||
@Expose
|
|
||||||
public int SocketTimeout = 5000;
|
|
||||||
//--
|
|
||||||
public VisualDVMProperties() {
|
public VisualDVMProperties() {
|
||||||
}
|
}
|
||||||
public VisualDVMProperties(_VisualDVM.Mode mode_in, File file_in) {
|
public VisualDVMProperties(_VisualDVM.Mode mode_in, File file_in) {
|
||||||
@@ -23,8 +16,5 @@ public class VisualDVMProperties extends Properties {
|
|||||||
//---
|
//---
|
||||||
public VisualDVMProperties(VisualDVMProperties src) {
|
public VisualDVMProperties(VisualDVMProperties src) {
|
||||||
Mode = src.Mode;
|
Mode = src.Mode;
|
||||||
ComponentsServerPort = src.ComponentsServerPort;
|
|
||||||
TestingServerPort = src.TestingServerPort;
|
|
||||||
SocketTimeout = src.SocketTimeout;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user