org.objectweb.proactive.core.process
Interface JVMProcess

All Superinterfaces:
ExternalProcess, java.io.Serializable, UniversalProcess
All Known Implementing Classes:
JVMProcessImpl, RSHJVMProcess, SSHJVMProcess

public interface JVMProcess
extends ExternalProcess

The JVMProcess class is able to start localy any class of the ProActive library by creating a Java Virtual Machine.

Since:
ProActive 0.9.4
Version:
1.0, 2002/09/20
Author:
ProActive Team

Field Summary
 
Fields inherited from interface org.objectweb.proactive.core.process.UniversalProcess
logger
 
Method Summary
 java.lang.String getBootClasspath()
          Returns the boot classpath associated to this process
 java.lang.String getClassname()
          Returns the class name that this process is about to start
 java.lang.String getClasspath()
          Returns the classpath associated to this process
 java.lang.String getJavaPath()
          Returns the java path associated to this process.
 java.lang.String getLog4jFile()
          Returns the location of the log4j property file.
 java.lang.String getParameters()
          Returns parameters associated to the class that this process is going to start
 java.lang.String getPolicyFile()
          Returns the location (path) to the policy file
 void setBootClasspath(java.lang.String bootClasspath)
          Sets the boot classpath associated to this process
 void setClassname(java.lang.String classname)
          Sets the value of the class to start for this process
 void setClasspath(java.lang.String classpath)
          Sets the classpath for this process
 void setJavaPath(java.lang.String javaPath)
          Sets the java path for this process
 void setJvmOptions(java.lang.String options)
          Sets the options of the jvm to start For instance: jvmProcess.set JvmOptions("-verbose -Xms300M -Xmx300m");
 void setLog4jFile(java.lang.String log4fFilePath)
          Sets the location of the log4j property file.
 void setParameters(java.lang.String parameters)
          Sets the parameters of the class to start with the given value
 void setPolicyFile(java.lang.String policyFilePath)
          Sets the location of the policy file
 
Methods inherited from interface org.objectweb.proactive.core.process.ExternalProcess
getErrorMessageLogger, getInputMessageLogger, getOutputMessageSink, setErrorMessageLogger, setInputMessageLogger, setOutputMessageSink
 
Methods inherited from interface org.objectweb.proactive.core.process.UniversalProcess
getCertificateLocation, getCommand, getEnvironment, getHostname, getPrivateKeyLocation, getSecurityFile, getUsername, isFinished, isStarted, setCertificateLocation, setEnvironment, setHostname, setPrivateKeyLocation, setSecurityFile, setUsername, startProcess, stopProcess, waitFor
 

Method Detail

getClasspath

public java.lang.String getClasspath()
Returns the classpath associated to this process

Returns:
String

setClasspath

public void setClasspath(java.lang.String classpath)
Sets the classpath for this process

Parameters:
classpath - The value of the classpath environment variable

getJavaPath

public java.lang.String getJavaPath()
Returns the java path associated to this process.

Returns:
String The path to the java command

setJavaPath

public void setJavaPath(java.lang.String javaPath)
Sets the java path for this process

Parameters:
javaPath - The value of the path to execute 'java' command

getBootClasspath

public java.lang.String getBootClasspath()
Returns the boot classpath associated to this process

Returns:
String the boot classpath of the java command

setBootClasspath

public void setBootClasspath(java.lang.String bootClasspath)
Sets the boot classpath associated to this process

Parameters:
bootClasspath - The boot classpath of the java command

getPolicyFile

public java.lang.String getPolicyFile()
Returns the location (path) to the policy file

Returns:
String The path to the policy file

setPolicyFile

public void setPolicyFile(java.lang.String policyFilePath)
Sets the location of the policy file

Parameters:
policyFilePath - The value of the path to the policy file

getLog4jFile

public java.lang.String getLog4jFile()
Returns the location of the log4j property file.

Returns:
String the location of the log4j property file

setLog4jFile

public void setLog4jFile(java.lang.String log4fFilePath)
Sets the location of the log4j property file.


getClassname

public java.lang.String getClassname()
Returns the class name that this process is about to start

Returns:
String The value of the class that this process is going to start

setClassname

public void setClassname(java.lang.String classname)
Sets the value of the class to start for this process

Parameters:
classname - The name of the class to start

getParameters

public java.lang.String getParameters()
Returns parameters associated to the class that this process is going to start

Returns:
String The value of the parameters of the class

setParameters

public void setParameters(java.lang.String parameters)
Sets the parameters of the class to start with the given value

Parameters:
parameters - Paramaters to be given in order to start the class

setJvmOptions

public void setJvmOptions(java.lang.String options)
Sets the options of the jvm to start

For instance:

 jvmProcess.set JvmOptions("-verbose -Xms300M -Xmx300m");
 

Parameters:
options - Options to be given in order to start the jvm


Copyright © April 2004 INRIA All Rights Reserved.