Class ProcessAttributes


  • class ProcessAttributes
    extends java.lang.Object
    Immutable set of attributes used to start a process.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.Set<java.lang.Integer> allowedExitValues
      Set of accepted exit codes or null if all exit codes are allowed.
      private java.util.List<java.lang.String> command
      The external program and its arguments.
      private java.io.File directory
      Working directory, null in case of current working directory.
      private java.util.Map<java.lang.String,​java.lang.String> environment
      Environment variables which are added (removed in case of null values) to the started process.
    • Constructor Summary

      Constructors 
      Constructor Description
      ProcessAttributes​(java.util.List<java.lang.String> command, java.io.File directory, java.util.Map<java.lang.String,​java.lang.String> environment, java.util.Set<java.lang.Integer> allowedExitValues)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Set<java.lang.Integer> getAllowedExitValues()  
      java.util.List<java.lang.String> getCommand()  
      java.io.File getDirectory()  
      java.util.Map<java.lang.String,​java.lang.String> getEnvironment()  
      • Methods inherited from class java.lang.Object

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

      • command

        private final java.util.List<java.lang.String> command
        The external program and its arguments.
      • directory

        private final java.io.File directory
        Working directory, null in case of current working directory.
      • environment

        private final java.util.Map<java.lang.String,​java.lang.String> environment
        Environment variables which are added (removed in case of null values) to the started process.
      • allowedExitValues

        private final java.util.Set<java.lang.Integer> allowedExitValues
        Set of accepted exit codes or null if all exit codes are allowed.
    • Constructor Detail

      • ProcessAttributes

        public ProcessAttributes​(java.util.List<java.lang.String> command,
                                 java.io.File directory,
                                 java.util.Map<java.lang.String,​java.lang.String> environment,
                                 java.util.Set<java.lang.Integer> allowedExitValues)
    • Method Detail

      • getCommand

        public java.util.List<java.lang.String> getCommand()
      • getDirectory

        public java.io.File getDirectory()
      • getEnvironment

        public java.util.Map<java.lang.String,​java.lang.String> getEnvironment()
      • getAllowedExitValues

        public java.util.Set<java.lang.Integer> getAllowedExitValues()