Class JvmLauncherRequest
- java.lang.Object
-
- org.codehaus.cargo.container.spi.jvm.JvmLauncherRequest
-
public class JvmLauncherRequest extends Object
A request to construct a JVM launcher.
-
-
Constructor Summary
Constructors Constructor Description JvmLauncherRequest(boolean server, Loggable loggable)
Creates a new JVM launch request with the specified properties.JvmLauncherRequest(boolean server, Loggable loggable, boolean spawned)
Creates a new JVM launch request with the specified properties.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Loggable
getLoggable()
Gets the object to forward all logging to.boolean
isServer()
Indicates whether the launched JVM denotes a server process or just some (usually short-lived) client/utility process.boolean
isSpawned()
Indicates whether the JVM should be launched as spawned process.
-
-
-
Constructor Detail
-
JvmLauncherRequest
public JvmLauncherRequest(boolean server, Loggable loggable)
Creates a new JVM launch request with the specified properties.- Parameters:
server
-true
to launch a server process,false
to launch a client/utility process.loggable
- The object to forward all logging to, must not benull
.
-
JvmLauncherRequest
public JvmLauncherRequest(boolean server, Loggable loggable, boolean spawned)
Creates a new JVM launch request with the specified properties.- Parameters:
server
-true
to launch a server process,false
to launch a client/utility process.loggable
- The object to forward all logging to, must not benull
.spawned
-true
if JVM should be spawned - outlive parent process.
-
-
Method Detail
-
isServer
public boolean isServer()
Indicates whether the launched JVM denotes a server process or just some (usually short-lived) client/utility process.- Returns:
true
to launch a server process,false
to launch a client/utility process.
-
getLoggable
public Loggable getLoggable()
Gets the object to forward all logging to.- Returns:
- The object to forward all logging to, never
null
.
-
isSpawned
public boolean isSpawned()
Indicates whether the JVM should be launched as spawned process.- Returns:
true
if JVM should be spawned - outlive parent process.
-
-