Enum Class Server.ExecFlag

java.lang.Object
java.lang.Enum<Server.ExecFlag>
uk.co.sculptor.kflibjava.Server.ExecFlag
All Implemented Interfaces:
Serializable, Comparable<Server.ExecFlag>, Constable
Enclosing class:
Server

public static enum Server.ExecFlag extends Enum<Server.ExecFlag>
Enumerator flags used to specify the executed process flags on the Server. Only useful if the Server is a Windows machine.
  • Enum Constant Details

    • NONE

      public static final Server.ExecFlag NONE
      No flag
    • SUSPENDED

      public static final Server.ExecFlag SUSPENDED
      The primary thread of the new process is created in a suspended state and does not run until the ResumeThread function is called.
    • NORMAL_PRIORITY

      public static final Server.ExecFlag NORMAL_PRIORITY
      Normal priority.
    • IDLE_PRIORITY

      public static final Server.ExecFlag IDLE_PRIORITY
      Idle priority.
    • HIGH_PRIORITY

      public static final Server.ExecFlag HIGH_PRIORITY
      High priority.
    • REALTIME_PRIORITY

      public static final Server.ExecFlag REALTIME_PRIORITY
      Real time priority.
    • NEW_PROCESS_GROUP

      public static final Server.ExecFlag NEW_PROCESS_GROUP
      The new process is the root process of a new process group.
    • DEFAULT_ERROR_MODE

      public static final Server.ExecFlag DEFAULT_ERROR_MODE
      The new process does not inherit the error mode of the calling process. Instead, the new process gets the default error mode.
    • DETACHED

      public static final Server.ExecFlag DETACHED
      For console processes, the new process does not inherit its parent's console (the default).
    • NEW_CONSOLE

      public static final Server.ExecFlag NEW_CONSOLE
      The new process has a new console, instead of inheriting its parent's console (the default). This flag cannot be used with DETACHED_PROCESS.
    • NO_WINDOW

      public static final Server.ExecFlag NO_WINDOW
      The process is a console application that is being run without a console window. Therefore, the console handle for the application is not set.
  • Method Details

    • values

      public static Server.ExecFlag[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Server.ExecFlag valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getScValue

      public static int getScValue(EnumSet<Server.ExecFlag> flags)
      Convert an EnumSet of Server ExecFlags to the Sculptor value used on the server.
      Parameters:
      flags - Server.ExecFlag Enumerator set
      Returns:
      The Sculptor value used on KfServer.
    • getLong

      public long getLong()
      Returns the Execution flag as the long value used on KfServer
      Returns:
      Execution flag as the long value used on KfServer