KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > proactive > core > descriptor > data > VirtualMachine


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.descriptor.data;
32
33 import org.objectweb.proactive.core.process.ExternalProcess;
34
35
36 /**
37  * A <code>VirtualMachine</code> is a conceptual entity that represents
38  * a JVM running a ProActiveRuntime
39  *
40  * @author ProActive Team
41  * @version 1.0, 2002/09/20
42  * @since ProActive 0.9.3
43  * @see ProActiveDescriptor
44  * @see VirtualNode
45  */

46 public interface VirtualMachine {
47
48     /**
49      * Sets the number of nodes that will be created on this VirtualMachine.
50      * @param nodeNumber
51      * @throws IOException
52      */

53     public void setHostsNumber(String JavaDoc nodeNumber) throws java.io.IOException JavaDoc;
54
55     /**
56      * Returns the number of nodes that will be created on this VirtualMachine
57      * @return String
58      */

59     public String JavaDoc getNodeNumber();
60
61     /**
62      * Sets the name of this VirtualMachine
63      * @param s
64      */

65     public void setName(String JavaDoc s);
66
67     /**
68      * Returns the name of this VirtualMachine
69      * @return String
70      */

71     public String JavaDoc getName();
72
73 // /**
74
// * Sets the acquisitionMethod field to the given value
75
// * @param s
76
// */
77
// public void setAcquisitionMethod(String s);
78
//
79
// /**
80
// * Returns the AcquisitionMethod value
81
// * @return String
82
// */
83
// public String getAcquisitionMethod();
84

85 // /**
86
// * Sets the port number of the acquisition process
87
// * @param s
88
// */
89
// public void setPortNumber(String s);
90
//
91
// /**
92
// * Return the Acquisition port number
93
// * @param s
94
// */
95
// public String getPortNumber();
96

97     /**
98      * Sets the process mapped to this VirtualMachine to the given process
99      * @param p
100      */

101     public void setProcess(ExternalProcess p);
102
103     /**
104      * Returns the process mapped to this VirtualMachine
105      * @return ExternalProcess
106      */

107     public ExternalProcess getProcess();
108
109     /**
110      * Returns the name of the machine where the process mapped to this virtual machine
111      * was launched.
112      * @return String
113      */

114     public String JavaDoc getHostName();
115
116     /**
117      * Sets the creatorId field to the given value
118      * @param value The Id of the VirtualNode that created this VirtualMachine
119      */

120     public void setCreatorId(String JavaDoc creatorId);
121
122     /**
123      * Returns the value of creatorId field.
124      * @return String The Id of the VirtualNode that created this VirtualMachine
125      */

126     public String JavaDoc getCreatorId();
127 }
128
Popular Tags