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 LoggablegetLoggable()Gets the object to forward all logging to.booleanisServer()Indicates whether the launched JVM denotes a server process or just some (usually short-lived) client/utility process.booleanisSpawned()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-trueto launch a server process,falseto 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-trueto launch a server process,falseto launch a client/utility process.loggable- The object to forward all logging to, must not benull.spawned-trueif 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:
trueto launch a server process,falseto 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:
trueif JVM should be spawned - outlive parent process.
-
-