Module ojalgo

Class ProcessOptions

  • All Implemented Interfaces:
    java.io.Serializable

    public final class ProcessOptions
    extends java.lang.Object
    implements java.io.Serializable
    Options to control the child JVM process used by ProcessExecutorService. Immutable; use the builder to construct instances.

    Notes on inheritance:

    • Environment variables: a child ProcessBuilder inherits the parent environment by default. Any entries added via ProcessOptions.Builder.env(String, String) are applied on top of that.
    • System properties: a child JVM does not automatically inherit arbitrary -D properties; only those provided here are passed as -Dkey=value. Use the builder helpers to inherit selected properties if needed.
    • Classpath: by default the executor derives an effective classpath from test/main classpaths and build output directories; specifying ProcessOptions.Builder.classpath(String) overrides that.
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  ProcessOptions.Builder  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private ProcessOptions​(java.util.List<java.lang.String> jvmArgs, java.util.Map<java.lang.String,​java.lang.String> env, java.time.Duration timeout, java.lang.String classpath, java.lang.String xmx, boolean enableNativeAccessAllUnnamed, java.util.Map<java.lang.String,​java.lang.String> systemProperties)  
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • classpath

        public final java.lang.String classpath
      • enableNativeAccessAllUnnamed

        public final boolean enableNativeAccessAllUnnamed
      • env

        public final java.util.Map<java.lang.String,​java.lang.String> env
      • jvmArgs

        public final java.util.List<java.lang.String> jvmArgs
      • systemProperties

        public final java.util.Map<java.lang.String,​java.lang.String> systemProperties
      • timeout

        public final java.time.Duration timeout
      • xmx

        public final java.lang.String xmx
    • Constructor Detail

      • ProcessOptions

        private ProcessOptions​(java.util.List<java.lang.String> jvmArgs,
                               java.util.Map<java.lang.String,​java.lang.String> env,
                               java.time.Duration timeout,
                               java.lang.String classpath,
                               java.lang.String xmx,
                               boolean enableNativeAccessAllUnnamed,
                               java.util.Map<java.lang.String,​java.lang.String> systemProperties)