1 31 package org.objectweb.proactive.core.process.ssh; 32 33 import org.objectweb.proactive.core.process.JVMProcess; 34 import org.objectweb.proactive.core.process.JVMProcessImpl; 35 import org.objectweb.proactive.core.util.MessageLogger; 36 37 38 61 public class SSHJVMProcess extends SSHProcess implements JVMProcess { 62 protected JVMProcessImpl jvmProcess; 63 64 68 72 public SSHJVMProcess() { 73 super(); 74 } 75 76 80 public SSHJVMProcess(MessageLogger messageLogger) { 81 this(messageLogger, messageLogger); 82 } 83 84 89 public SSHJVMProcess(MessageLogger inputMessageLogger, 90 MessageLogger errorMessageLogger) { 91 super(new JVMProcessImpl(inputMessageLogger, errorMessageLogger)); 92 jvmProcess = (JVMProcessImpl) targetProcess; 93 } 94 95 public static void main(String [] args) { 99 try { 100 SSHProcess rsh = new SSHJVMProcess(new StandardOutputMessageLogger()); 101 rsh.setHostname("solida"); 102 rsh.startProcess(); 103 } catch (Exception e) { 104 e.printStackTrace(); 105 } 106 } 107 108 112 116 public String getClasspath() { 117 return jvmProcess.getClasspath(); 118 } 119 120 124 public void setClasspath(String classpath) { 125 checkStarted(); 126 jvmProcess.setClasspath(classpath); 127 } 128 129 132 public String getBootClasspath() { 133 checkStarted(); 134 return jvmProcess.getBootClasspath(); 135 } 136 137 141 public void setBootClasspath(String bootClasspath) { 142 checkStarted(); 143 jvmProcess.setBootClasspath(bootClasspath); 144 } 145 146 150 public String getJavaPath() { 151 return jvmProcess.getJavaPath(); 152 } 153 154 158 public void setJavaPath(String javaPath) { 159 checkStarted(); 160 jvmProcess.setJavaPath(javaPath); 161 } 162 163 167 public String getPolicyFile() { 168 return jvmProcess.getPolicyFile(); 169 } 170 171 175 public void setPolicyFile(String policyFile) { 176 checkStarted(); 177 jvmProcess.setPolicyFile(policyFile); 178 } 179 180 public String getLog4jFile() { 181 return jvmProcess.getLog4jFile(); 182 } 183 184 public void setLog4jFile(String log4jFile) { 185 checkStarted(); 186 jvmProcess.setLog4jFile(log4jFile); 187 } 188 189 193 public String getClassname() { 194 return jvmProcess.getClassname(); 195 } 196 197 201 public void setClassname(String classname) { 202 checkStarted(); 203 jvmProcess.setClassname(classname); 204 } 205 206 210 public String getParameters() { 211 return jvmProcess.getParameters(); 212 } 213 214 218 public void setParameters(String parameters) { 219 checkStarted(); 220 jvmProcess.setParameters(parameters); 221 } 222 223 227 public void setJvmOptions(String parameters) { 228 jvmProcess.setJvmOptions(parameters); 229 } 230 } 237 | Popular Tags |