1
//////////////////////////////////////////////////////////////////////
3
// JCSP ("CSP for Java") Libraries //
4
// Copyright (C) 1996-2008 Peter Welch and Paul Austin. //
5
// 2001-2004 Quickstone Technologies Limited. //
7
// This library is free software; you can redistribute it and/or //
8
// modify it under the terms of the GNU Lesser General Public //
9
// License as published by the Free Software Foundation; either //
10
// version 2.1 of the License, or (at your option) any later //
13
// This library is distributed in the hope that it will be //
14
// useful, but WITHOUT ANY WARRANTY; without even the implied //
15
// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR //
16
// PURPOSE. See the GNU Lesser General Public License for more //
19
// You should have received a copy of the GNU Lesser General //
20
// Public License along with this library; if not, write to the //
21
// Free Software Foundation, Inc., 59 Temple Place, Suite 330, //
22
// Boston, MA 02111-1307, USA. //
24
// Author contact: P.H.Welch@kent.ac.uk //
27
//////////////////////////////////////////////////////////////////////
29
package org.jcsp.net.remote;
32
import org.jcsp.lang.*;
33
import org.jcsp.net.*;
36
* Message sent from <code>RemoteProcess</code> to <code>SpawnerService</code> listing the details of
37
* the process that should be started and a network channel address for replying on.
39
* @author Quickstone Technologies Limited
41
class SpawnerMessage implements Serializable
43
public final CSProcess process;
44
public final NetChannelLocation caller;
45
public final NodeFactory factory;
46
public final ApplicationID applicationID;
47
public final String classPath;
50
* Constructs a new message.
52
* @param process the process to be spawned.
53
* @param caller the location of the <code>RemoteProcess</code>'s channel for replies.
54
* @param factory the optional factory for initializing the remote node.
55
* @param applicationID the application ID that the remote node should adopt.
56
* @param classPath the class path the remote JVM should use.
58
public SpawnerMessage(CSProcess process, NetChannelLocation caller, NodeFactory factory,
59
ApplicationID applicationID, String classPath)
61
this.process = process;
63
this.factory = factory;
64
this.applicationID = applicationID;
65
this.classPath = classPath;
b'\\ No newline at end of file'