no message

This commit is contained in:
2024-10-14 15:19:13 +03:00
parent 8eef367bd4
commit 5e09fb44ea
634 changed files with 3751 additions and 3263 deletions

View File

@@ -1,18 +1,18 @@
package _VisualDVM.Passes.SSH;
import Common.Passes.Pass;
import _VisualDVM.GlobalData.Machine.Machine;
import _VisualDVM.GlobalData.User.User;
import _VisualDVM.TestingSystem.DVM.UserConnection;
import Common.Passes.Pass;
public class ConnectionPass<T> extends Pass<T> {
protected Machine machine = null;
public User user = null;
protected Machine machine = null;
//--
protected void Connect() throws Exception{
protected void Connect() throws Exception {
user.connection = null;
user.connection = new UserConnection(machine, user);
}
void Disconnect(){
if (user.connection!=null){
void Disconnect() {
if (user.connection != null) {
user.connection.Disconnect();
user.connection = null;
}
@@ -27,7 +27,6 @@ public class ConnectionPass<T> extends Pass<T> {
Disconnect();
}
//--
protected void ServerAction() throws Exception{
protected void ServerAction() throws Exception {
}
}

View File

@@ -9,15 +9,15 @@ import _VisualDVM.GlobalData.User.User;
import java.util.Date;
public abstract class RepositoryServerSSHPass extends ConnectionPass {
//--
protected RemoteFile userHome;
protected RemoteFile serverHome;
protected abstract String getServerFileName();
protected abstract String getServerHomeName();
@Override
public String getButtonText() {
return "";
}
//--
protected RemoteFile userHome;
protected RemoteFile serverHome;
@Override
protected boolean needsAnimation() {
return true;
@@ -37,7 +37,7 @@ public abstract class RepositoryServerSSHPass extends ConnectionPass {
}
//--
protected void StartServer() throws Exception {
user.connection.startShellProcess(serverHome,"server_out.txt", "java -jar " + getServerFileName());
user.connection.startShellProcess(serverHome, "server_out.txt", "java -jar " + getServerFileName());
//--
RemoteFile StartLog = new RemoteFile(serverHome, Constants.STARTED +
"_by_" +

View File

@@ -1,6 +1,6 @@
package _VisualDVM.Passes.SSH;
public class WorkspaceNotFoundException extends Exception{
public WorkspaceNotFoundException(String message_in){
public class WorkspaceNotFoundException extends Exception {
public WorkspaceNotFoundException(String message_in) {
super(message_in);
}
}