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 ssh)
        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.
        ssh - true to launch a remote JVM via SSH, false to launch a local JVM.
      • JvmLauncherRequest

        public JvmLauncherRequest​(boolean server,
                                  Loggable loggable,
                                  boolean ssh,
                                  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.
        ssh - true to launch a remote JVM via SSH, false to launch a local JVM.
        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.
      • isSsh

        public boolean isSsh()
        Indicates whether the JVM should be launched on a remote host via SSH or on the local machine.
        Returns:
        true to launch a remote JVM, false to launch a local JVM.
      • isSpawned

        public boolean isSpawned()
        Indicates whether the JVM should be launched as spawned process.
        Returns:
        true if JVM should be spawned - outlive parent process.