1 31 package org.objectweb.proactive.core.process.rsh; 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 RSHJVMProcess extends RSHProcess implements JVMProcess { 62 protected JVMProcessImpl jvmProcess; 63 64 68 72 public RSHJVMProcess() { 73 super(); 74 } 75 76 80 public RSHJVMProcess(MessageLogger messageLogger) { 81 this(messageLogger, messageLogger); 82 } 83 84 89 public RSHJVMProcess(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 RSHProcess rsh = new RSHJVMProcess(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 133 public String getJavaPath() { 134 return jvmProcess.getJavaPath(); 135 } 136 137 141 public void setJavaPath(String javaPath) { 142 checkStarted(); 143 jvmProcess.setJavaPath(javaPath); 144 } 145 146 149 public String getBootClasspath() { 150 checkStarted(); 151 return jvmProcess.getBootClasspath(); 152 } 153 154 158 public void setBootClasspath(String bootClasspath) { 159 checkStarted(); 160 jvmProcess.setBootClasspath(bootClasspath); 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 231 } 238 | Popular Tags |