Package uk.co.sculptor.kflibjava
Enum Class Server.ExecFlag
- All Implemented Interfaces:
Serializable
,Comparable<Server.ExecFlag>
,Constable
- Enclosing class:
Server
Enumerator flags used to specify the executed process flags on the Server. Only useful if the Server is a
Windows machine.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe new process does not inherit the error mode of the calling process.For console processes, the new process does not inherit its parent's console (the default).High priority.Idle priority.The new process has a new console, instead of inheriting its parent's console (the default).The new process is the root process of a new process group.The process is a console application that is being run without a console window.No flagNormal priority.Real time priority.The primary thread of the new process is created in a suspended state and does not run until the ResumeThread function is called. -
Method Summary
Modifier and TypeMethodDescriptionlong
getLong()
Returns the Execution flag as the long value used on KfServerstatic int
getScValue
(EnumSet<Server.ExecFlag> flags) Convert an EnumSet of Server ExecFlags to the Sculptor value used on the server.static Server.ExecFlag
Returns the enum constant of this class with the specified name.static Server.ExecFlag[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
No flag -
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
Normal priority. -
IDLE_PRIORITY
Idle priority. -
HIGH_PRIORITY
High priority. -
REALTIME_PRIORITY
Real time priority. -
NEW_PROCESS_GROUP
The new process is the root process of a new process group. -
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
For console processes, the new process does not inherit its parent's console (the default). -
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
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
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
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 nameNullPointerException
- if the argument is null
-
getScValue
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
-