Enum KillService.KillSource
- java.lang.Object
-
- java.lang.Enum<KillService.KillSource>
-
- com.netflix.genie.agent.execution.services.KillService.KillSource
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<KillService.KillSource>
- Enclosing interface:
- KillService
public static enum KillService.KillSource extends java.lang.Enum<KillService.KillSource>
Enumeration for the source of a request to kill the job.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description API_KILL_REQUEST
A request to the server, forwarded to the agent.FILES_LIMIT
The job has exceeded one of the files limit (files count, file size, etc.).REMOTE_STATUS_MONITOR
The job status was changed server-side while the job was running.SYSTEM_SIGNAL
A system signal (SIGINT), for example user ctrl-c or system shutdown.TIMEOUT
The job has exceeded its max execution duration.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static KillService.KillSource
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static KillService.KillSource[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SYSTEM_SIGNAL
public static final KillService.KillSource SYSTEM_SIGNAL
A system signal (SIGINT), for example user ctrl-c or system shutdown.
-
API_KILL_REQUEST
public static final KillService.KillSource API_KILL_REQUEST
A request to the server, forwarded to the agent.
-
TIMEOUT
public static final KillService.KillSource TIMEOUT
The job has exceeded its max execution duration.
-
FILES_LIMIT
public static final KillService.KillSource FILES_LIMIT
The job has exceeded one of the files limit (files count, file size, etc.).
-
REMOTE_STATUS_MONITOR
public static final KillService.KillSource REMOTE_STATUS_MONITOR
The job status was changed server-side while the job was running.
-
-
Method Detail
-
values
public static KillService.KillSource[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (KillService.KillSource c : KillService.KillSource.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static KillService.KillSource valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-