KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > proactive > core > process > JVMProcess


1 /*
2  * ################################################################
3  *
4  * ProActive: The Java(TM) library for Parallel, Distributed,
5  * Concurrent computing with Security and Mobility
6  *
7  * Copyright (C) 1997-2002 INRIA/University of Nice-Sophia Antipolis
8  * Contact: proactive-support@inria.fr
9  *
10  * This library is free software; you can redistribute it and/or
11  * modify it under the terms of the GNU Lesser General Public
12  * License as published by the Free Software Foundation; either
13  * version 2.1 of the License, or any later version.
14  *
15  * This library is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18  * Lesser General Public License for more details.
19  *
20  * You should have received a copy of the GNU Lesser General Public
21  * License along with this library; if not, write to the Free Software
22  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
23  * USA
24  *
25  * Initial developer(s): The ProActive Team
26  * http://www.inria.fr/oasis/ProActive/contacts.html
27  * Contributor(s):
28  *
29  * ################################################################
30  */

31 package org.objectweb.proactive.core.process;
32
33
34 /**
35  * <p>
36  * The JVMProcess class is able to start localy any class of the ProActive library by
37  * creating a Java Virtual Machine.
38  * </p>
39  * @author ProActive Team
40  * @version 1.0, 2002/09/20
41  * @since ProActive 0.9.4
42  */

43 public interface JVMProcess extends ExternalProcess {
44
45     /**
46      * Returns the classpath associated to this process
47      * @return String
48      */

49     public String JavaDoc getClasspath();
50
51     /**
52      * Sets the classpath for this process
53      * @param classpath The value of the classpath environment variable
54      */

55     public void setClasspath(String JavaDoc classpath);
56
57     /**
58      * Returns the java path associated to this process.
59      * @return String The path to the java command
60      */

61     public String JavaDoc getJavaPath();
62
63     /**
64      * Sets the java path for this process
65      * @param javaPath The value of the path to execute 'java' command
66      */

67     public void setJavaPath(String JavaDoc javaPath);
68
69     /** Returns the boot classpath associated to this process
70      * @return String the boot classpath of the java command
71      */

72     public String JavaDoc getBootClasspath();
73
74     /**
75      * Sets the boot classpath associated to this process
76      * @param bootClasspath The boot classpath of the java command
77      */

78     public void setBootClasspath(String JavaDoc bootClasspath);
79
80     /**
81      * Returns the location (path) to the policy file
82      * @return String The path to the policy file
83      */

84     public String JavaDoc getPolicyFile();
85
86     /**
87      * Sets the location of the policy file
88      * @param policyFilePath The value of the path to the policy file
89      */

90     public void setPolicyFile(String JavaDoc policyFilePath);
91
92     /**
93      * Returns the location of the log4j property file.
94      * @return String the location of the log4j property file
95      */

96     public String JavaDoc getLog4jFile();
97
98     /**
99      * Sets the location of the log4j property file.
100      * @param The value of the path to the log4j property file
101      */

102     public void setLog4jFile(String JavaDoc log4fFilePath);
103
104     /**
105      * Returns the class name that this process is about to start
106      * @return String The value of the class that this process is going to start
107      */

108     public String JavaDoc getClassname();
109
110     /**
111      * Sets the value of the class to start for this process
112      * @param classname The name of the class to start
113      */

114     public void setClassname(String JavaDoc classname);
115
116     /**
117      * Returns parameters associated to the class that this process is going to start
118      * @return String The value of the parameters of the class
119      */

120     public String JavaDoc getParameters();
121
122     /**
123      * Sets the parameters of the class to start with the given value
124      * @param parameters Paramaters to be given in order to start the class
125      */

126     public void setParameters(String JavaDoc parameters);
127
128     /**
129      * Sets the options of the jvm to start
130      * <p>
131      * For instance:
132      * </p>
133      * <pre>
134      * jvmProcess.set JvmOptions("-verbose -Xms300M -Xmx300m");
135      * </pre>
136      * @param options Options to be given in order to start the jvm
137      */

138     public void setJvmOptions(String JavaDoc options);
139 }
140
Popular Tags