Class JvmLauncherRequest


  • public class JvmLauncherRequest
    extends Object
    A request to construct a JVM launcher.
    • 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 be null.
      • 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 be null.
        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.